From 1e8346e53d2f193e0ab92bdb7b67b294f068c724 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 17 May 2026 04:00:27 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...r.ISubpackageByokClient.CreateByokKey.g.cs | 76 + ...r.ISubpackageByokClient.DeleteByokKey.g.cs | 32 + ...r.ISubpackageByokClient.UpdateByokKey.g.cs | 74 + ...Client.CreateObservabilityDestination.g.cs | 82 + ...Client.DeleteObservabilityDestination.g.cs | 32 + ...Client.UpdateObservabilityDestination.g.cs | 78 + ...eObservabilityDestinationRequestType.g.cs} | 14 +- ...bilityDestinationRequestTypeNullable.g.cs} | 14 +- ...eObservabilityDestinationResponseData.g.cs | 297 + ...tinationResponseDataDiscriminatorType.g.cs | 53 + ...ResponseDataDiscriminatorTypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant10Type.g.cs | 53 + ...tionResponseDataVariant10TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant11Type.g.cs | 53 + ...tionResponseDataVariant11TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant12Type.g.cs | 53 + ...tionResponseDataVariant12TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant13Type.g.cs | 53 + ...tionResponseDataVariant13TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant14Type.g.cs | 53 + ...tionResponseDataVariant14TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant15Type.g.cs | 53 + ...tionResponseDataVariant15TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant16Type.g.cs | 53 + ...tionResponseDataVariant16TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant17Type.g.cs | 53 + ...tionResponseDataVariant17TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant1Type.g.cs | 53 + ...ationResponseDataVariant1TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant2Type.g.cs | 53 + ...ationResponseDataVariant2TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant3Type.g.cs | 53 + ...ationResponseDataVariant3TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant4Type.g.cs | 53 + ...ationResponseDataVariant4TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant5Type.g.cs | 53 + ...ationResponseDataVariant5TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant6Type.g.cs | 53 + ...ationResponseDataVariant6TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant7Type.g.cs | 53 + ...ationResponseDataVariant7TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant8Type.g.cs | 53 + ...ationResponseDataVariant8TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant9Type.g.cs | 53 + ...ationResponseDataVariant9TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant10Type.g.cs | 53 + ...tionResponseDataVariant10TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant11Type.g.cs | 53 + ...tionResponseDataVariant11TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant12Type.g.cs | 53 + ...tionResponseDataVariant12TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant13Type.g.cs | 53 + ...tionResponseDataVariant13TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant14Type.g.cs | 53 + ...tionResponseDataVariant14TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant15Type.g.cs | 53 + ...tionResponseDataVariant15TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant16Type.g.cs | 53 + ...tionResponseDataVariant16TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant17Type.g.cs | 53 + ...tionResponseDataVariant17TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant5Type.g.cs} | 14 +- ...tionResponseDataVariant5TypeNullable.g.cs} | 14 +- ...tyDestinationResponseDataVariant6Type.g.cs | 53 + ...ationResponseDataVariant6TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant7Type.g.cs | 53 + ...ationResponseDataVariant7TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant8Type.g.cs | 53 + ...ationResponseDataVariant8TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant9Type.g.cs | 53 + ...ationResponseDataVariant9TypeNullable.g.cs | 60 + ...bservabilityDestinationVariant10Type.g.cs} | 14 +- ...lityDestinationVariant10TypeNullable.g.cs} | 14 +- ...bservabilityDestinationVariant11Type.g.cs} | 14 +- ...lityDestinationVariant11TypeNullable.g.cs} | 14 +- ...ObservabilityDestinationVariant12Type.g.cs | 53 + ...ilityDestinationVariant12TypeNullable.g.cs | 60 + ...ObservabilityDestinationVariant13Type.g.cs | 53 + ...ilityDestinationVariant13TypeNullable.g.cs | 60 + ...ObservabilityDestinationVariant14Type.g.cs | 53 + ...ilityDestinationVariant14TypeNullable.g.cs | 60 + ...ObservabilityDestinationVariant15Type.g.cs | 53 + ...ilityDestinationVariant15TypeNullable.g.cs | 60 + ...ObservabilityDestinationVariant16Type.g.cs | 53 + ...ilityDestinationVariant16TypeNullable.g.cs | 60 + ...ObservabilityDestinationVariant17Type.g.cs | 53 + ...ilityDestinationVariant17TypeNullable.g.cs | 60 + ...ObservabilityDestinationVariant5Type.g.cs} | 14 +- ...ilityDestinationVariant5TypeNullable.g.cs} | 14 +- ...ObservabilityDestinationVariant6Type.g.cs} | 14 +- ...ilityDestinationVariant6TypeNullable.g.cs} | 14 +- ...ObservabilityDestinationVariant7Type.g.cs} | 14 +- ...ilityDestinationVariant7TypeNullable.g.cs} | 14 +- ...ObservabilityDestinationVariant8Type.g.cs} | 14 +- ...ilityDestinationVariant8TypeNullable.g.cs} | 14 +- ....ObservabilityDestinationVariant9Type.g.cs | 53 + ...bilityDestinationVariant9TypeNullable.g.cs | 60 + ...s.ObservabilityPosthogDestinationType.g.cs | 53 - ...abilityPosthogDestinationTypeNullable.g.cs | 60 - ...ters.ObservabilityRampDestinationType.g.cs | 53 - ...erters.ObservabilityS3DestinationType.g.cs | 53 - ...bservabilityS3DestinationTypeNullable.g.cs | 60 - ...rs.ObservabilitySentryDestinationType.g.cs | 53 - ...vabilitySentryDestinationTypeNullable.g.cs | 60 - ...ers.ObservabilityWeaveDestinationType.g.cs | 53 - ...rvabilityWeaveDestinationTypeNullable.g.cs | 60 - ...abilityWebhookDestinationConfigMethod.g.cs | 53 - ...ebhookDestinationConfigMethodNullable.g.cs | 60 - ...s.ObservabilityWebhookDestinationType.g.cs | 53 - ...abilityWebhookDestinationTypeNullable.g.cs | 60 - ...ionRequestFilterRulesGroupsItemsLogic.g.cs | 53 + ...stFilterRulesGroupsItemsLogicNullable.g.cs | 60 + ...ilterRulesGroupsItemsRulesItemsField.g.cs} | 21 +- ...lesGroupsItemsRulesItemsFieldNullable.g.cs | 60 + ...terRulesGroupsItemsRulesItemsOperator.g.cs | 53 + ...GroupsItemsRulesItemsOperatorNullable.g.cs | 60 + ...FilterRulesGroupsItemsRulesItemsValue.g.cs | 162 + ...eObservabilityDestinationResponseData.g.cs | 297 + ...criminatorMappingNewrelicConfigRegion.g.cs | 53 + ...orMappingNewrelicConfigRegionNullable.g.cs | 60 + ...scriminatorMappingWebhookConfigMethod.g.cs | 53 + ...torMappingWebhookConfigMethodNullable.g.cs | 60 + ...tinationResponseDataDiscriminatorType.g.cs | 53 + ...ResponseDataDiscriminatorTypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant10Type.g.cs | 53 + ...tionResponseDataVariant10TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant11Type.g.cs | 53 + ...tionResponseDataVariant11TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant12Type.g.cs | 53 + ...tionResponseDataVariant12TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant13Type.g.cs | 53 + ...tionResponseDataVariant13TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant14Type.g.cs | 53 + ...tionResponseDataVariant14TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant15Type.g.cs | 53 + ...tionResponseDataVariant15TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant16Type.g.cs | 53 + ...tionResponseDataVariant16TypeNullable.g.cs | 60 + ...yDestinationResponseDataVariant17Type.g.cs | 53 + ...tionResponseDataVariant17TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant1Type.g.cs | 53 + ...ationResponseDataVariant1TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant2Type.g.cs | 53 + ...ationResponseDataVariant2TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant3Type.g.cs | 53 + ...ationResponseDataVariant3TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant4Type.g.cs | 53 + ...ationResponseDataVariant4TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant5Type.g.cs | 53 + ...ationResponseDataVariant5TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant6Type.g.cs | 53 + ...ationResponseDataVariant6TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant7Type.g.cs | 53 + ...ationResponseDataVariant7TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant8Type.g.cs | 53 + ...ationResponseDataVariant8TypeNullable.g.cs | 60 + ...tyDestinationResponseDataVariant9Type.g.cs | 53 + ...ationResponseDataVariant9TypeNullable.g.cs | 60 + .../OpenRouter.JsonSerializerContext.g.cs | 1752 +- ...OpenRouter.JsonSerializerContextTypes.g.cs | 2096 +- ...ter.Models.CreateBYOKKeyRequest.Json.g.cs} | 22 +- ...penRouter.Models.CreateBYOKKeyRequest.g.cs | 126 + ...er.Models.CreateBYOKKeyResponse.Json.g.cs} | 22 +- ...enRouter.Models.CreateBYOKKeyResponse.g.cs | 47 + ...odels.CreateByokKeyResponseData.Json.g.cs} | 22 +- ...uter.Models.CreateByokKeyResponseData.g.cs | 176 + ...ObservabilityDestinationRequest.Json.g.cs} | 22 +- ...CreateObservabilityDestinationRequest.g.cs | 142 + ...abilityDestinationRequestConfig.Json.g.cs} | 22 +- ...ObservabilityDestinationRequestConfig.g.cs | 19 + ...bilityDestinationRequestConfig2.Json.g.cs} | 22 +- ...servabilityDestinationRequestConfig2.g.cs} | 4 +- ...teObservabilityDestinationRequestType.g.cs | 141 + ...bservabilityDestinationResponse.Json.g.cs} | 22 +- ...reateObservabilityDestinationResponse.g.cs | 48 + ...vabilityDestinationResponseData.Json.g.cs} | 22 +- ...eObservabilityDestinationResponseData.g.cs | 1548 ++ ...nationResponseDataDiscriminator.Json.g.cs} | 22 +- ...yDestinationResponseDataDiscriminator.g.cs | 45 + ...tinationResponseDataDiscriminatorType.g.cs | 141 + ...DestinationResponseDataVariant1.Json.g.cs} | 22 +- ...bilityDestinationResponseDataVariant1.g.cs | 175 + ...DestinationResponseDataVariant10.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant10.g.cs | 175 + ...yDestinationResponseDataVariant10Type.g.cs | 45 + ...DestinationResponseDataVariant11.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant11.g.cs | 175 + ...yDestinationResponseDataVariant11Type.g.cs | 45 + ...DestinationResponseDataVariant12.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant12.g.cs | 175 + ...yDestinationResponseDataVariant12Type.g.cs | 45 + ...DestinationResponseDataVariant13.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant13.g.cs | 175 + ...yDestinationResponseDataVariant13Type.g.cs | 45 + ...DestinationResponseDataVariant14.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant14.g.cs | 175 + ...yDestinationResponseDataVariant14Type.g.cs | 45 + ...DestinationResponseDataVariant15.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant15.g.cs | 175 + ...yDestinationResponseDataVariant15Type.g.cs | 45 + ...DestinationResponseDataVariant16.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant16.g.cs | 175 + ...yDestinationResponseDataVariant16Type.g.cs | 45 + ...DestinationResponseDataVariant17.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant17.g.cs | 175 + ...yDestinationResponseDataVariant17Type.g.cs | 45 + ...tyDestinationResponseDataVariant1Type.g.cs | 45 + ...yDestinationResponseDataVariant2.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant2.g.cs | 175 + ...tyDestinationResponseDataVariant2Type.g.cs | 45 + ...yDestinationResponseDataVariant3.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant3.g.cs | 175 + ...tyDestinationResponseDataVariant3Type.g.cs | 45 + ...yDestinationResponseDataVariant4.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant4.g.cs | 175 + ...tyDestinationResponseDataVariant4Type.g.cs | 45 + ...yDestinationResponseDataVariant5.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant5.g.cs | 175 + ...tyDestinationResponseDataVariant5Type.g.cs | 45 + ...yDestinationResponseDataVariant6.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant6.g.cs | 175 + ...tyDestinationResponseDataVariant6Type.g.cs | 45 + ...yDestinationResponseDataVariant7.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant7.g.cs | 175 + ...tyDestinationResponseDataVariant7Type.g.cs | 45 + ...yDestinationResponseDataVariant8.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant8.g.cs | 175 + ...tyDestinationResponseDataVariant8Type.g.cs | 45 + ...yDestinationResponseDataVariant9.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant9.g.cs | 175 + ...tyDestinationResponseDataVariant9Type.g.cs | 45 + ...er.Models.DeleteBYOKKeyResponse.Json.g.cs} | 22 +- ...enRouter.Models.DeleteBYOKKeyResponse.g.cs | 47 + ...bservabilityDestinationResponse.Json.g.cs} | 22 +- ...eleteObservabilityDestinationResponse.g.cs | 47 + ...bilityDestinationResponseDataVariant1.g.cs | 4 +- ...ilityDestinationResponseDataVariant10.g.cs | 16 +- ...yDestinationResponseDataVariant10Type.g.cs | 45 + ...ilityDestinationResponseDataVariant11.g.cs | 16 +- ...yDestinationResponseDataVariant11Type.g.cs | 45 + ...ilityDestinationResponseDataVariant12.g.cs | 16 +- ...yDestinationResponseDataVariant12Type.g.cs | 45 + ...ilityDestinationResponseDataVariant13.g.cs | 16 +- ...DestinationResponseDataVariant13Type.g.cs} | 16 +- ...ilityDestinationResponseDataVariant14.g.cs | 16 +- ...yDestinationResponseDataVariant14Type.g.cs | 45 + ...ilityDestinationResponseDataVariant15.g.cs | 16 +- ...yDestinationResponseDataVariant15Type.g.cs | 45 + ...ilityDestinationResponseDataVariant16.g.cs | 16 +- ...yDestinationResponseDataVariant16Type.g.cs | 45 + ...ilityDestinationResponseDataVariant17.g.cs | 16 +- ...yDestinationResponseDataVariant17Type.g.cs | 45 + ...bilityDestinationResponseDataVariant2.g.cs | 4 +- ...bilityDestinationResponseDataVariant3.g.cs | 4 +- ...bilityDestinationResponseDataVariant4.g.cs | 4 +- ...bilityDestinationResponseDataVariant5.g.cs | 16 +- ...tyDestinationResponseDataVariant5Type.g.cs | 45 + ...bilityDestinationResponseDataVariant6.g.cs | 16 +- ...tyDestinationResponseDataVariant6Type.g.cs | 45 + ...bilityDestinationResponseDataVariant7.g.cs | 16 +- ...tyDestinationResponseDataVariant7Type.g.cs | 45 + ...bilityDestinationResponseDataVariant8.g.cs | 16 +- ...tyDestinationResponseDataVariant8Type.g.cs | 45 + ...bilityDestinationResponseDataVariant9.g.cs | 16 +- ...tyDestinationResponseDataVariant9Type.g.cs | 45 + ...riminatorMappingClickhouseConfig.Json.g.cs | 92 - ...orMappingClickhouseConfigHeaders.Json.g.cs | 92 - ...natorMappingDatadogConfigHeaders.Json.g.cs | 92 - ...dels.ObservabilityDestinationVariant1.g.cs | 4 +- ...els.ObservabilityDestinationVariant10.g.cs | 16 +- ...bservabilityDestinationVariant10Type.g.cs} | 16 +- ...els.ObservabilityDestinationVariant11.g.cs | 16 +- ...bservabilityDestinationVariant11Type.g.cs} | 16 +- ...els.ObservabilityDestinationVariant12.g.cs | 16 +- ...bservabilityDestinationVariant12Type.g.cs} | 16 +- ...els.ObservabilityDestinationVariant13.g.cs | 16 +- ...bservabilityDestinationVariant13Type.g.cs} | 18 +- ...els.ObservabilityDestinationVariant14.g.cs | 16 +- ...bservabilityDestinationVariant14Type.g.cs} | 16 +- ...els.ObservabilityDestinationVariant15.g.cs | 16 +- ...bservabilityDestinationVariant15Type.g.cs} | 16 +- ...els.ObservabilityDestinationVariant16.g.cs | 16 +- ...bservabilityDestinationVariant16Type.g.cs} | 16 +- ...els.ObservabilityDestinationVariant17.g.cs | 16 +- ...bservabilityDestinationVariant17Type.g.cs} | 16 +- ...dels.ObservabilityDestinationVariant2.g.cs | 4 +- ...dels.ObservabilityDestinationVariant3.g.cs | 4 +- ...dels.ObservabilityDestinationVariant4.g.cs | 4 +- ...dels.ObservabilityDestinationVariant5.g.cs | 16 +- ...ObservabilityDestinationVariant5Type.g.cs} | 16 +- ...dels.ObservabilityDestinationVariant6.g.cs | 16 +- ...ObservabilityDestinationVariant6Type.g.cs} | 16 +- ...dels.ObservabilityDestinationVariant7.g.cs | 16 +- ....ObservabilityDestinationVariant7Type.g.cs | 45 + ...dels.ObservabilityDestinationVariant8.g.cs | 16 +- ...ObservabilityDestinationVariant8Type.g.cs} | 16 +- ...dels.ObservabilityDestinationVariant9.g.cs | 16 +- ...ObservabilityDestinationVariant9Type.g.cs} | 16 +- ...bilityGrafanaDestinationConfigHeaders.g.cs | 19 - ...ilityLangfuseDestinationConfigHeaders.g.cs | 19 - ...bilityLangsmithDestinationConfig.Json.g.cs | 92 - ...angsmithDestinationConfigHeaders.Json.g.cs | 92 - ...lityLangsmithDestinationConfigHeaders.g.cs | 19 - ...NewrelicDestinationConfigHeaders.Json.g.cs | 92 - ...ilityNewrelicDestinationConfigHeaders.g.cs | 19 - ...bilityNewrelicDestinationConfigRegion.g.cs | 51 - ...lityOpikDestinationConfigHeaders.Json.g.cs | 92 - ...ollectorDestinationConfigHeaders.Json.g.cs | 92 - ...bilityPosthogDestinationConfigHeaders.g.cs | 19 - ...lityRampDestinationConfigHeaders.Json.g.cs | 92 - ...bilityS3DestinationConfigHeaders.Json.g.cs | 92 - ...abilitySentryDestinationConfigHeaders.g.cs | 19 - ...bilitySnowflakeDestinationConfig.Json.g.cs | 92 - ...nowflakeDestinationConfigHeaders.Json.g.cs | 92 - ...litySnowflakeDestinationConfigHeaders.g.cs | 19 - ...vabilityWeaveDestinationConfigHeaders.g.cs | 19 - ...abilityWebhookDestinationConfigMethod.g.cs | 51 - ...uter.Models.UpdateBYOKKeyRequest.Json.g.cs | 92 + ...penRouter.Models.UpdateBYOKKeyRequest.g.cs | 101 + ...ter.Models.UpdateBYOKKeyResponse.Json.g.cs | 92 + ...enRouter.Models.UpdateBYOKKeyResponse.g.cs | 47 + ...Models.UpdateByokKeyResponseData.Json.g.cs | 92 + ...uter.Models.UpdateByokKeyResponseData.g.cs | 176 + ...ObservabilityDestinationRequest.Json.g.cs} | 22 +- ...UpdateObservabilityDestinationRequest.g.cs | 112 + ...abilityDestinationRequestConfig.Json.g.cs} | 22 +- ...ObservabilityDestinationRequestConfig.g.cs | 19 + ...bilityDestinationRequestConfig2.Json.g.cs} | 22 +- ...servabilityDestinationRequestConfig2.g.cs} | 4 +- ...tyDestinationRequestFilterRules.Json.g.cs} | 22 +- ...vabilityDestinationRequestFilterRules.g.cs | 56 + ...onRequestFilterRulesGroupsItems.Json.g.cs} | 22 +- ...tinationRequestFilterRulesGroupsItems.g.cs | 57 + ...ionRequestFilterRulesGroupsItemsLogic.g.cs | 51 + ...ilterRulesGroupsItemsRulesItems.Json.g.cs} | 22 +- ...questFilterRulesGroupsItemsRulesItems.g.cs | 67 + ...FilterRulesGroupsItemsRulesItemsField.g.cs | 111 + ...terRulesGroupsItemsRulesItemsOperator.g.cs | 117 + ...rRulesGroupsItemsRulesItemsValue.Json.g.cs | 92 + ...FilterRulesGroupsItemsRulesItemsValue.g.cs | 295 + ...ObservabilityDestinationResponse.Json.g.cs | 92 + ...pdateObservabilityDestinationResponse.g.cs | 48 + ...vabilityDestinationResponseData.Json.g.cs} | 22 +- ...eObservabilityDestinationResponseData.g.cs | 1548 ++ ...inationResponseDataDiscriminator.Json.g.cs | 92 + ...yDestinationResponseDataDiscriminator.g.cs | 45 + ...aDiscriminatorMappingArizeConfig.Json.g.cs | 92 + ...eDataDiscriminatorMappingArizeConfig.g.cs} | 10 +- ...minatorMappingArizeConfigHeaders.Json.g.cs | 92 + ...scriminatorMappingArizeConfigHeaders.g.cs} | 2 +- ...riminatorMappingBraintrustConfig.Json.g.cs | 92 + ...DiscriminatorMappingBraintrustConfig.g.cs} | 10 +- ...orMappingBraintrustConfigHeaders.Json.g.cs | 92 + ...minatorMappingBraintrustConfigHeaders.g.cs | 19 + ...riminatorMappingClickhouseConfig.Json.g.cs | 92 + ...DiscriminatorMappingClickhouseConfig.g.cs} | 10 +- ...orMappingClickhouseConfigHeaders.Json.g.cs | 92 + ...minatorMappingClickhouseConfigHeaders.g.cs | 19 + ...iscriminatorMappingDatadogConfig.Json.g.cs | 92 + ...ataDiscriminatorMappingDatadogConfig.g.cs} | 10 +- ...natorMappingDatadogConfigHeaders.Json.g.cs | 92 + ...criminatorMappingDatadogConfigHeaders.g.cs | 19 + ...iscriminatorMappingGrafanaConfig.Json.g.cs | 92 + ...ataDiscriminatorMappingGrafanaConfig.g.cs} | 10 +- ...natorMappingGrafanaConfigHeaders.Json.g.cs | 92 + ...criminatorMappingGrafanaConfigHeaders.g.cs | 19 + ...scriminatorMappingLangfuseConfig.Json.g.cs | 92 + ...taDiscriminatorMappingLangfuseConfig.g.cs} | 10 +- ...atorMappingLangfuseConfigHeaders.Json.g.cs | 92 + ...riminatorMappingLangfuseConfigHeaders.g.cs | 19 + ...riminatorMappingLangsmithConfig.Json.g.cs} | 22 +- ...aDiscriminatorMappingLangsmithConfig.g.cs} | 10 +- ...torMappingLangsmithConfigHeaders.Json.g.cs | 92 + ...iminatorMappingLangsmithConfigHeaders.g.cs | 19 + ...scriminatorMappingNewrelicConfig.Json.g.cs | 92 + ...taDiscriminatorMappingNewrelicConfig.g.cs} | 16 +- ...atorMappingNewrelicConfigHeaders.Json.g.cs | 92 + ...riminatorMappingNewrelicConfigHeaders.g.cs | 19 + ...criminatorMappingNewrelicConfigRegion.g.cs | 51 + ...aDiscriminatorMappingOpikConfig.Json.g.cs} | 22 +- ...seDataDiscriminatorMappingOpikConfig.g.cs} | 10 +- ...iminatorMappingOpikConfigHeaders.Json.g.cs | 92 + ...iscriminatorMappingOpikConfigHeaders.g.cs} | 2 +- ...inatorMappingOtelCollectorConfig.Json.g.cs | 92 + ...criminatorMappingOtelCollectorConfig.g.cs} | 10 +- ...appingOtelCollectorConfigHeaders.Json.g.cs | 92 + ...torMappingOtelCollectorConfigHeaders.g.cs} | 2 +- ...iscriminatorMappingPosthogConfig.Json.g.cs | 92 + ...ataDiscriminatorMappingPosthogConfig.g.cs} | 10 +- ...natorMappingPosthogConfigHeaders.Json.g.cs | 92 + ...criminatorMappingPosthogConfigHeaders.g.cs | 19 + ...taDiscriminatorMappingRampConfig.Json.g.cs | 92 + ...seDataDiscriminatorMappingRampConfig.g.cs} | 10 +- ...iminatorMappingRampConfigHeaders.Json.g.cs | 92 + ...iscriminatorMappingRampConfigHeaders.g.cs} | 2 +- ...ataDiscriminatorMappingS3Config.Json.g.cs} | 22 +- ...onseDataDiscriminatorMappingS3Config.g.cs} | 10 +- ...criminatorMappingS3ConfigHeaders.Json.g.cs | 92 + ...aDiscriminatorMappingS3ConfigHeaders.g.cs} | 2 +- ...DiscriminatorMappingSentryConfig.Json.g.cs | 92 + ...DataDiscriminatorMappingSentryConfig.g.cs} | 10 +- ...inatorMappingSentryConfigHeaders.Json.g.cs | 92 + ...scriminatorMappingSentryConfigHeaders.g.cs | 19 + ...criminatorMappingSnowflakeConfig.Json.g.cs | 92 + ...aDiscriminatorMappingSnowflakeConfig.g.cs} | 10 +- ...torMappingSnowflakeConfigHeaders.Json.g.cs | 92 + ...iminatorMappingSnowflakeConfigHeaders.g.cs | 19 + ...aDiscriminatorMappingWeaveConfig.Json.g.cs | 92 + ...eDataDiscriminatorMappingWeaveConfig.g.cs} | 10 +- ...minatorMappingWeaveConfigHeaders.Json.g.cs | 92 + ...scriminatorMappingWeaveConfigHeaders.g.cs} | 2 +- ...iscriminatorMappingWebhookConfig.Json.g.cs | 92 + ...ataDiscriminatorMappingWebhookConfig.g.cs} | 16 +- ...natorMappingWebhookConfigHeaders.Json.g.cs | 92 + ...riminatorMappingWebhookConfigHeaders.g.cs} | 4 +- ...scriminatorMappingWebhookConfigMethod.g.cs | 51 + ...tinationResponseDataDiscriminatorType.g.cs | 141 + ...yDestinationResponseDataVariant1.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant1.g.cs | 175 + ...DestinationResponseDataVariant10.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant10.g.cs | 175 + ...yDestinationResponseDataVariant10Type.g.cs | 45 + ...DestinationResponseDataVariant11.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant11.g.cs | 175 + ...yDestinationResponseDataVariant11Type.g.cs | 45 + ...DestinationResponseDataVariant12.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant12.g.cs | 175 + ...yDestinationResponseDataVariant12Type.g.cs | 45 + ...DestinationResponseDataVariant13.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant13.g.cs | 175 + ...yDestinationResponseDataVariant13Type.g.cs | 45 + ...DestinationResponseDataVariant14.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant14.g.cs | 175 + ...yDestinationResponseDataVariant14Type.g.cs | 45 + ...DestinationResponseDataVariant15.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant15.g.cs | 175 + ...yDestinationResponseDataVariant15Type.g.cs | 45 + ...DestinationResponseDataVariant16.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant16.g.cs | 175 + ...yDestinationResponseDataVariant16Type.g.cs | 45 + ...DestinationResponseDataVariant17.Json.g.cs | 92 + ...ilityDestinationResponseDataVariant17.g.cs | 175 + ...yDestinationResponseDataVariant17Type.g.cs | 45 + ...tyDestinationResponseDataVariant1Type.g.cs | 45 + ...yDestinationResponseDataVariant2.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant2.g.cs | 175 + ...tyDestinationResponseDataVariant2Type.g.cs | 45 + ...yDestinationResponseDataVariant3.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant3.g.cs | 175 + ...tyDestinationResponseDataVariant3Type.g.cs | 45 + ...yDestinationResponseDataVariant4.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant4.g.cs | 175 + ...tyDestinationResponseDataVariant4Type.g.cs | 45 + ...yDestinationResponseDataVariant5.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant5.g.cs | 175 + ...tyDestinationResponseDataVariant5Type.g.cs | 45 + ...yDestinationResponseDataVariant6.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant6.g.cs | 175 + ...tyDestinationResponseDataVariant6Type.g.cs | 45 + ...yDestinationResponseDataVariant7.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant7.g.cs | 175 + ...tyDestinationResponseDataVariant7Type.g.cs | 45 + ...yDestinationResponseDataVariant8.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant8.g.cs | 175 + ...tyDestinationResponseDataVariant8Type.g.cs | 45 + ...yDestinationResponseDataVariant9.Json.g.cs | 92 + ...bilityDestinationResponseDataVariant9.g.cs | 175 + ...tyDestinationResponseDataVariant9Type.g.cs | 45 + ...er.SubpackageByokClient.CreateByokKey.g.cs | 653 + ...er.SubpackageByokClient.DeleteByokKey.g.cs | 544 + ...er.SubpackageByokClient.UpdateByokKey.g.cs | 655 + ...Client.CreateObservabilityDestination.g.cs | 698 + ...Client.DeleteObservabilityDestination.g.cs | 544 + ...Client.UpdateObservabilityDestination.g.cs | 698 + src/libs/OpenRouter/openapi.yaml | 21492 +++++++++------- 475 files changed, 48138 insertions(+), 12848 deletions(-) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.CreateByokKey.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.DeleteByokKey.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.UpdateByokKey.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.CreateObservabilityDestination.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.DeleteObservabilityDestination.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.UpdateObservabilityDestination.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs => OpenRouter.JsonConverters.CreateObservabilityDestinationRequestType.g.cs} (66%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullable.g.cs} (67%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseData.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullable.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs => OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5Type.g.cs} (60%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs => OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullable.g.cs} (62%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullable.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant10Type.g.cs} (73%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullable.g.cs} (74%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant11Type.g.cs} (73%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullable.g.cs} (74%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullable.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant5Type.g.cs} (73%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullable.g.cs} (75%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant6Type.g.cs} (73%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullable.g.cs} (75%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant7Type.g.cs} (69%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullable.g.cs} (71%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant8Type.g.cs} (69%) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullable.g.cs} (71%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs => OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs} (56%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseData.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs => OpenRouter.Models.CreateBYOKKeyRequest.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs => OpenRouter.Models.CreateBYOKKeyResponse.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs => OpenRouter.Models.CreateByokKeyResponseData.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationRequest.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationRequestConfig.Json.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.Json.g.cs} (82%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs => OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestType.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationResponse.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationResponseData.Json.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.Json.g.cs} (80%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs => OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.Json.g.cs} (81%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9Type.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs => OpenRouter.Models.DeleteBYOKKeyResponse.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs => OpenRouter.Models.DeleteObservabilityDestinationResponse.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12Type.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityS3DestinationType.g.cs => OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13Type.g.cs} (56%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9Type.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant10Type.g.cs} (57%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant11Type.g.cs} (59%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityRampDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant12Type.g.cs} (60%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant13Type.g.cs} (61%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilitySentryDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant14Type.g.cs} (59%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant15Type.g.cs} (63%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant16Type.g.cs} (59%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant17Type.g.cs} (59%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant5Type.g.cs} (59%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant6Type.g.cs} (63%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7Type.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant8Type.g.cs} (63%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOpikDestinationType.g.cs => OpenRouter.Models.ObservabilityDestinationVariant9Type.g.cs} (60%) delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequest.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.Json.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.Json.g.cs} (82%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.g.cs} (76%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.Json.g.cs} (81%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs} (80%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs} (78%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseData.Json.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.g.cs} (82%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.g.cs} (80%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.g.cs} (81%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.g.cs} (81%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.Json.g.cs} (77%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.g.cs} (67%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.Json.g.cs} (78%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.g.cs} (81%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.g.cs} (82%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.g.cs} (74%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.g.cs} (78%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.g.cs} (79%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.g.cs} (82%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.Json.g.cs} (78%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.g.cs} (89%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.g.cs} (78%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.g.cs} (85%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.g.cs} (83%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.g.cs} (82%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.g.cs} (65%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.Json.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs => OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.g.cs} (76%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.Json.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.CreateByokKey.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.DeleteByokKey.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.UpdateByokKey.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.CreateObservabilityDestination.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.DeleteObservabilityDestination.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.UpdateObservabilityDestination.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.CreateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.CreateByokKey.g.cs new file mode 100644 index 0000000..4bfbef9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.CreateByokKey.g.cs @@ -0,0 +1,76 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageByokClient + { + /// + /// Create a BYOK provider credential
+ /// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateByokKeyAsync( + + global::OpenRouter.CreateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a BYOK provider credential
+ /// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateByokKeyAsResponseAsync( + + global::OpenRouter.CreateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create a BYOK provider credential
+ /// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Whether this credential should be created in a disabled state. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// The raw provider API key or credential. This value is encrypted at rest and never returned in API responses. + /// + /// + /// Optional human-readable name for the credential. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateByokKeyAsync( + string key, + global::OpenRouter.BYOKProviderSlug provider, + global::System.Collections.Generic.IList? allowedModels = default, + global::System.Collections.Generic.IList? allowedUserIds = default, + bool? disabled = default, + bool? isFallback = default, + string? name = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.DeleteByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.DeleteByokKey.g.cs new file mode 100644 index 0000000..42dbb70 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.DeleteByokKey.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageByokClient + { + /// + /// Delete a BYOK provider credential
+ /// Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeleteByokKeyAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete a BYOK provider credential
+ /// Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DeleteByokKeyAsResponseAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.UpdateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.UpdateByokKey.g.cs new file mode 100644 index 0000000..ce52a29 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageByokClient.UpdateByokKey.g.cs @@ -0,0 +1,74 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageByokClient + { + /// + /// Update a BYOK provider credential
+ /// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateByokKeyAsync( + global::System.Guid id, + + global::OpenRouter.UpdateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update a BYOK provider credential
+ /// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateByokKeyAsResponseAsync( + global::System.Guid id, + + global::OpenRouter.UpdateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update a BYOK provider credential
+ /// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Whether this credential is disabled. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses. + /// + /// + /// Optional human-readable name for the credential. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateByokKeyAsync( + global::System.Guid id, + global::System.Collections.Generic.IList? allowedModels = default, + global::System.Collections.Generic.IList? allowedUserIds = default, + bool? disabled = default, + bool? isFallback = default, + string? key = default, + string? name = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.CreateObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.CreateObservabilityDestination.g.cs new file mode 100644 index 0000000..7fe8a3d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.CreateObservabilityDestination.g.cs @@ -0,0 +1,82 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageObservabilityClient + { + /// + /// Create an observability destination
+ /// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateObservabilityDestinationAsync( + + global::OpenRouter.CreateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create an observability destination
+ /// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> CreateObservabilityDestinationAsResponseAsync( + + global::OpenRouter.CreateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Create an observability destination
+ /// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided. + /// + /// + /// Provider-specific configuration. The shape depends on `type` and is validated server-side. + /// + /// + /// Whether this destination should be enabled immediately.
+ /// Default Value: true + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Human-readable name for the destination. + /// + /// + /// When true, request/response bodies are not forwarded — only metadata.
+ /// Default Value: false + /// + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + /// + /// The destination type. Only stable destination types are accepted. + /// + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task CreateObservabilityDestinationAsync( + object config, + string name, + global::OpenRouter.CreateObservabilityDestinationRequestType type, + global::System.Collections.Generic.IList? apiKeyHashes = default, + bool? enabled = default, + global::OpenRouter.ObservabilityFilterRulesConfig? filterRules = default, + bool? privacyMode = default, + double? samplingRate = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.DeleteObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.DeleteObservabilityDestination.g.cs new file mode 100644 index 0000000..45400fa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.DeleteObservabilityDestination.g.cs @@ -0,0 +1,32 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageObservabilityClient + { + /// + /// Delete an observability destination
+ /// Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task DeleteObservabilityDestinationAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Delete an observability destination
+ /// Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> DeleteObservabilityDestinationAsResponseAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.UpdateObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.UpdateObservabilityDestination.g.cs new file mode 100644 index 0000000..2d8f246 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageObservabilityClient.UpdateObservabilityDestination.g.cs @@ -0,0 +1,78 @@ +#nullable enable + +namespace OpenRouter +{ + public partial interface ISubpackageObservabilityClient + { + /// + /// Update an observability destination
+ /// Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateObservabilityDestinationAsync( + global::System.Guid id, + + global::OpenRouter.UpdateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update an observability destination
+ /// Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task> UpdateObservabilityDestinationAsResponseAsync( + global::System.Guid id, + + global::OpenRouter.UpdateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + /// + /// Update an observability destination
+ /// Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided. + /// + /// + /// Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value. + /// + /// + /// Whether the destination is enabled. + /// + /// + /// Optional structured filter rules. `null` clears the rules. Omitting keeps the current value. + /// + /// + /// Human-readable name for the destination. + /// + /// + /// When true, request/response bodies are not forwarded — only metadata. + /// + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + global::System.Threading.Tasks.Task UpdateObservabilityDestinationAsync( + global::System.Guid id, + global::System.Collections.Generic.IList? apiKeyHashes = default, + object? config = default, + bool? enabled = default, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? filterRules = default, + string? name = default, + bool? privacyMode = default, + double? samplingRate = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default); + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationRequestType.g.cs similarity index 66% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationRequestType.g.cs index ffd233e..8c9c116 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationRequestType.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityOtelCollectorDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateObservabilityDestinationRequestTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityOtelCollectorDestinationType Read( + public override global::OpenRouter.CreateObservabilityDestinationRequestType Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityOtelCollectorDestinationTypeJsonConverter : glo var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.CreateObservabilityDestinationRequestTypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityOtelCollectorDestinationTypeJsonConverter : glo case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityOtelCollectorDestinationType)numValue; + return (global::OpenRouter.CreateObservabilityDestinationRequestType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityOtelCollectorDestinationType); + return default(global::OpenRouter.CreateObservabilityDestinationRequestType); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityOtelCollectorDestinationTypeJsonConverter : glo /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityOtelCollectorDestinationType value, + global::OpenRouter.CreateObservabilityDestinationRequestType value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationRequestTypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullable.g.cs similarity index 67% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullable.g.cs index 81cc48f..7794d1b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityOtelCollectorDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class CreateObservabilityDestinationRequestTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityOtelCollectorDestinationType? Read( + public override global::OpenRouter.CreateObservabilityDestinationRequestType? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityOtelCollectorDestinationTypeNullableJsonConvert var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.CreateObservabilityDestinationRequestTypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityOtelCollectorDestinationTypeNullableJsonConvert case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityOtelCollectorDestinationType)numValue; + return (global::OpenRouter.CreateObservabilityDestinationRequestType)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityOtelCollectorDestinationType?); + return default(global::OpenRouter.CreateObservabilityDestinationRequestType?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityOtelCollectorDestinationTypeNullableJsonConvert /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityOtelCollectorDestinationType? value, + global::OpenRouter.CreateObservabilityDestinationRequestType? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityOtelCollectorDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationRequestTypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseData.g.cs new file mode 100644 index 0000000..5686b85 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseData.g.cs @@ -0,0 +1,297 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class CreateObservabilityDestinationResponseDataJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseData Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? arize = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Arize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1)}"); + arize = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? braintrust = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Braintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2)}"); + braintrust = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? clickhouse = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Clickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3)}"); + clickhouse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? datadog = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Datadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4)}"); + datadog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? grafana = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Grafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5)}"); + grafana = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? langfuse = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Langfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6)}"); + langfuse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? langsmith = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Langsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7)}"); + langsmith = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? newrelic = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Newrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8)}"); + newrelic = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? opik = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Opik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9)}"); + opik = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? otelCollector = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.OtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10)}"); + otelCollector = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? posthog = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Posthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11)}"); + posthog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? ramp = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Ramp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12)}"); + ramp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? s3 = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.S3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13)}"); + s3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? sentry = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Sentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14)}"); + sentry = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? snowflake = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Snowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15)}"); + snowflake = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? weave = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Weave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16)}"); + weave = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? webhook = default; + if (discriminator?.Type == global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType.Webhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17)}"); + webhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.CreateObservabilityDestinationResponseData( + discriminator?.Type, + arize, + + braintrust, + + clickhouse, + + datadog, + + grafana, + + langfuse, + + langsmith, + + newrelic, + + opik, + + otelCollector, + + posthog, + + ramp, + + s3, + + sentry, + + snowflake, + + weave, + + webhook + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseData value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsArize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Arize!, typeInfo); + } + else if (value.IsBraintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Braintrust!, typeInfo); + } + else if (value.IsClickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Clickhouse!, typeInfo); + } + else if (value.IsDatadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Datadog!, typeInfo); + } + else if (value.IsGrafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grafana!, typeInfo); + } + else if (value.IsLangfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + } + else if (value.IsLangsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langsmith!, typeInfo); + } + else if (value.IsNewrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Newrelic!, typeInfo); + } + else if (value.IsOpik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Opik!, typeInfo); + } + else if (value.IsOtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OtelCollector!, typeInfo); + } + else if (value.IsPosthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Posthog!, typeInfo); + } + else if (value.IsRamp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ramp!, typeInfo); + } + else if (value.IsS3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + } + else if (value.IsSentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentry!, typeInfo); + } + else if (value.IsSnowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Snowflake!, typeInfo); + } + else if (value.IsWeave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Weave!, typeInfo); + } + else if (value.IsWebhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs new file mode 100644 index 0000000..57592b0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..7a4d12a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10Type.g.cs new file mode 100644 index 0000000..3b9abe6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs new file mode 100644 index 0000000..121bcc7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11Type.g.cs new file mode 100644 index 0000000..dbd293a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs new file mode 100644 index 0000000..8b24f2b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12Type.g.cs new file mode 100644 index 0000000..9ecb3f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs new file mode 100644 index 0000000..7907803 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13Type.g.cs new file mode 100644 index 0000000..e6da85c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs new file mode 100644 index 0000000..9c55650 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14Type.g.cs new file mode 100644 index 0000000..4361fae --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs new file mode 100644 index 0000000..7423311 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15Type.g.cs new file mode 100644 index 0000000..f49e56f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs new file mode 100644 index 0000000..bed963f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16Type.g.cs new file mode 100644 index 0000000..7560183 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs new file mode 100644 index 0000000..4e9fa51 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17Type.g.cs new file mode 100644 index 0000000..fee9080 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs new file mode 100644 index 0000000..63ac2a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1Type.g.cs new file mode 100644 index 0000000..a63a36a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs new file mode 100644 index 0000000..235729a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2Type.g.cs new file mode 100644 index 0000000..56b1b47 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs new file mode 100644 index 0000000..74c9c54 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3Type.g.cs new file mode 100644 index 0000000..c41a4ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs new file mode 100644 index 0000000..257dd8e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4Type.g.cs new file mode 100644 index 0000000..c3bcdb5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs new file mode 100644 index 0000000..ab17e2d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5Type.g.cs new file mode 100644 index 0000000..6067000 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs new file mode 100644 index 0000000..875ab8c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6Type.g.cs new file mode 100644 index 0000000..d366284 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs new file mode 100644 index 0000000..5994191 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7Type.g.cs new file mode 100644 index 0000000..f66a47d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs new file mode 100644 index 0000000..7c03e44 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8Type.g.cs new file mode 100644 index 0000000..0107da5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs new file mode 100644 index 0000000..54deb08 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9Type.g.cs new file mode 100644 index 0000000..6130ec8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs new file mode 100644 index 0000000..25cec45 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class CreateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10Type.g.cs new file mode 100644 index 0000000..28befd7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant10TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant10TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullable.g.cs new file mode 100644 index 0000000..4a99e29 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant10TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11Type.g.cs new file mode 100644 index 0000000..64a28ba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant11TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant11TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullable.g.cs new file mode 100644 index 0000000..6f2edfb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant11TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12Type.g.cs new file mode 100644 index 0000000..0707efa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant12TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant12TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullable.g.cs new file mode 100644 index 0000000..f7606b4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant12TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13Type.g.cs new file mode 100644 index 0000000..891dfb6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant13TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant13TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullable.g.cs new file mode 100644 index 0000000..132d040 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant13TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14Type.g.cs new file mode 100644 index 0000000..ff57ab3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant14TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant14TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullable.g.cs new file mode 100644 index 0000000..c5c82e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant14TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15Type.g.cs new file mode 100644 index 0000000..11f6d96 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant15TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant15TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullable.g.cs new file mode 100644 index 0000000..adb98ff --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant15TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16Type.g.cs new file mode 100644 index 0000000..022a77a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant16TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant16TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullable.g.cs new file mode 100644 index 0000000..ac58975 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant16TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17Type.g.cs new file mode 100644 index 0000000..8a838eb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant17TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant17TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullable.g.cs new file mode 100644 index 0000000..1656779 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant17TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5Type.g.cs similarity index 60% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5Type.g.cs index 7e434fa..4f1b828 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegion.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityNewrelicDestinationConfigRegionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetObservabilityDestinationResponseDataVariant5TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion Read( + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityNewrelicDestinationConfigRegionJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant5TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityNewrelicDestinationConfigRegionJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion)numValue; + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion); + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityNewrelicDestinationConfigRegionJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion value, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullable.g.cs similarity index 62% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullable.g.cs index 390fc80..397bc97 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class GetObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Read( + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityNewrelicDestinationConfigRegionNullableJsonConv var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToEnum(stringValue); + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant5TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityNewrelicDestinationConfigRegionNullableJsonConv case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion)numValue; + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion?); + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityNewrelicDestinationConfigRegionNullableJsonConv /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? value, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegionExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6Type.g.cs new file mode 100644 index 0000000..4a5fd12 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant6TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullable.g.cs new file mode 100644 index 0000000..c1ef931 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant6TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7Type.g.cs new file mode 100644 index 0000000..a7d540a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant7TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant7TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullable.g.cs new file mode 100644 index 0000000..d14a400 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant7TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8Type.g.cs new file mode 100644 index 0000000..7efd831 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant8TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant8TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullable.g.cs new file mode 100644 index 0000000..3af7fe1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant8TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9Type.g.cs new file mode 100644 index 0000000..c576fbc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant9TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant9TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullable.g.cs new file mode 100644 index 0000000..29a5a09 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class GetObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.GetObservabilityDestinationResponseDataVariant9TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant10Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant10Type.g.cs index f0e62ba..e262412 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant10Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilitySnowflakeDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant10TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilitySnowflakeDestinationType Read( + public override global::OpenRouter.ObservabilityDestinationVariant10Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilitySnowflakeDestinationTypeJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ObservabilityDestinationVariant10TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilitySnowflakeDestinationTypeJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilitySnowflakeDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant10Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilitySnowflakeDestinationType); + return default(global::OpenRouter.ObservabilityDestinationVariant10Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilitySnowflakeDestinationTypeJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilitySnowflakeDestinationType value, + global::OpenRouter.ObservabilityDestinationVariant10Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant10TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullable.g.cs similarity index 74% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullable.g.cs index 5c9ef04..bb39a4c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityLangsmithDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant10TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityLangsmithDestinationType? Read( + public override global::OpenRouter.ObservabilityDestinationVariant10Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityLangsmithDestinationTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.ObservabilityDestinationVariant10TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityLangsmithDestinationTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityLangsmithDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant10Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityLangsmithDestinationType?); + return default(global::OpenRouter.ObservabilityDestinationVariant10Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityLangsmithDestinationTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityLangsmithDestinationType? value, + global::OpenRouter.ObservabilityDestinationVariant10Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant10TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant11Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant11Type.g.cs index f1a06e7..905ebac 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangsmithDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant11Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityLangsmithDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant11TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityLangsmithDestinationType Read( + public override global::OpenRouter.ObservabilityDestinationVariant11Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityLangsmithDestinationTypeJsonConverter : global: var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ObservabilityDestinationVariant11TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityLangsmithDestinationTypeJsonConverter : global: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityLangsmithDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant11Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityLangsmithDestinationType); + return default(global::OpenRouter.ObservabilityDestinationVariant11Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityLangsmithDestinationTypeJsonConverter : global: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityLangsmithDestinationType value, + global::OpenRouter.ObservabilityDestinationVariant11Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityLangsmithDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant11TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullable.g.cs similarity index 74% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullable.g.cs index 0c03665..0b6d952 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilitySnowflakeDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant11TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilitySnowflakeDestinationType? Read( + public override global::OpenRouter.ObservabilityDestinationVariant11Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilitySnowflakeDestinationTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.ObservabilityDestinationVariant11TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilitySnowflakeDestinationTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilitySnowflakeDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant11Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilitySnowflakeDestinationType?); + return default(global::OpenRouter.ObservabilityDestinationVariant11Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilitySnowflakeDestinationTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilitySnowflakeDestinationType? value, + global::OpenRouter.ObservabilityDestinationVariant11Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilitySnowflakeDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant11TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12Type.g.cs new file mode 100644 index 0000000..2cb1926 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant12TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant12Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant12TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant12Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant12Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant12TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullable.g.cs new file mode 100644 index 0000000..bbe5688 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant12TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant12Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant12TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant12Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant12Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant12TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13Type.g.cs new file mode 100644 index 0000000..92d81b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant13TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant13Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant13TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant13Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant13Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant13TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullable.g.cs new file mode 100644 index 0000000..feb4d84 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant13TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant13Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant13TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant13Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant13Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant13TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14Type.g.cs new file mode 100644 index 0000000..2dbadd5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant14TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant14Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant14TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant14Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant14Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant14TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullable.g.cs new file mode 100644 index 0000000..e721f7d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant14TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant14Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant14TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant14Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant14Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant14TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15Type.g.cs new file mode 100644 index 0000000..3d25030 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant15TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant15Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant15TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant15Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant15Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant15TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullable.g.cs new file mode 100644 index 0000000..a201616 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant15TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant15Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant15TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant15Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant15Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant15TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16Type.g.cs new file mode 100644 index 0000000..134561f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant16TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant16Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant16TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant16Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant16Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant16TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullable.g.cs new file mode 100644 index 0000000..54050c8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant16TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant16Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant16TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant16Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant16Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant16TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17Type.g.cs new file mode 100644 index 0000000..312d656 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant17TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant17Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant17TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant17Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant17Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant17TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullable.g.cs new file mode 100644 index 0000000..7c84ee9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant17TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant17Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant17TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant17Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant17Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant17TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant5Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant5Type.g.cs index ee231ed..79e3c59 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant5Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityNewrelicDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant5TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityNewrelicDestinationType Read( + public override global::OpenRouter.ObservabilityDestinationVariant5Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityNewrelicDestinationTypeJsonConverter : global:: var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ObservabilityDestinationVariant5TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityNewrelicDestinationTypeJsonConverter : global:: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityNewrelicDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant5Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityNewrelicDestinationType); + return default(global::OpenRouter.ObservabilityDestinationVariant5Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityNewrelicDestinationTypeJsonConverter : global:: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityNewrelicDestinationType value, + global::OpenRouter.ObservabilityDestinationVariant5Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant5TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullable.g.cs similarity index 75% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullable.g.cs index bf002d9..8dc99e4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityNewrelicDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant5TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityNewrelicDestinationType? Read( + public override global::OpenRouter.ObservabilityDestinationVariant5Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityNewrelicDestinationTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.ObservabilityDestinationVariant5TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityNewrelicDestinationTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityNewrelicDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant5Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityNewrelicDestinationType?); + return default(global::OpenRouter.ObservabilityDestinationVariant5Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityNewrelicDestinationTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityNewrelicDestinationType? value, + global::OpenRouter.ObservabilityDestinationVariant5Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityNewrelicDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant5TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant6Type.g.cs similarity index 73% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant6Type.g.cs index c243bae..03ef543 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant6Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityLangfuseDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityLangfuseDestinationType Read( + public override global::OpenRouter.ObservabilityDestinationVariant6Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityLangfuseDestinationTypeJsonConverter : global:: var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ObservabilityDestinationVariant6TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityLangfuseDestinationTypeJsonConverter : global:: case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityLangfuseDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant6Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityLangfuseDestinationType); + return default(global::OpenRouter.ObservabilityDestinationVariant6Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityLangfuseDestinationTypeJsonConverter : global:: /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityLangfuseDestinationType value, + global::OpenRouter.ObservabilityDestinationVariant6Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant6TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullable.g.cs similarity index 75% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullable.g.cs index e8a665b..634eab2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityLangfuseDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityLangfuseDestinationType? Read( + public override global::OpenRouter.ObservabilityDestinationVariant6Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityLangfuseDestinationTypeNullableJsonConverter : var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.ObservabilityDestinationVariant6TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityLangfuseDestinationTypeNullableJsonConverter : case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityLangfuseDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant6Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityLangfuseDestinationType?); + return default(global::OpenRouter.ObservabilityDestinationVariant6Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityLangfuseDestinationTypeNullableJsonConverter : /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityLangfuseDestinationType? value, + global::OpenRouter.ObservabilityDestinationVariant6Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityLangfuseDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant6TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant7Type.g.cs similarity index 69% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant7Type.g.cs index 8a1043e..6f29594 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant7Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityGrafanaDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant7TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityGrafanaDestinationType Read( + public override global::OpenRouter.ObservabilityDestinationVariant7Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityGrafanaDestinationTypeJsonConverter : global::S var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ObservabilityDestinationVariant7TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityGrafanaDestinationTypeJsonConverter : global::S case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityGrafanaDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant7Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityGrafanaDestinationType); + return default(global::OpenRouter.ObservabilityDestinationVariant7Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityGrafanaDestinationTypeJsonConverter : global::S /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityGrafanaDestinationType value, + global::OpenRouter.ObservabilityDestinationVariant7Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant7TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullable.g.cs similarity index 71% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullable.g.cs index 9a28323..89266ae 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityOpikDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant7TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityOpikDestinationType? Read( + public override global::OpenRouter.ObservabilityDestinationVariant7Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityOpikDestinationTypeNullableJsonConverter : glob var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.ObservabilityDestinationVariant7TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityOpikDestinationTypeNullableJsonConverter : glob case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityOpikDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant7Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityOpikDestinationType?); + return default(global::OpenRouter.ObservabilityDestinationVariant7Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityOpikDestinationTypeNullableJsonConverter : glob /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityOpikDestinationType? value, + global::OpenRouter.ObservabilityDestinationVariant7Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant7TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant8Type.g.cs similarity index 69% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant8Type.g.cs index 254fe70..c020413 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityOpikDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant8Type.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityOpikDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant8TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityOpikDestinationType Read( + public override global::OpenRouter.ObservabilityDestinationVariant8Type Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityOpikDestinationTypeJsonConverter : global::Syst var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToEnum(stringValue) ?? default; + return global::OpenRouter.ObservabilityDestinationVariant8TypeExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityOpikDestinationTypeJsonConverter : global::Syst case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityOpikDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant8Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityOpikDestinationType); + return default(global::OpenRouter.ObservabilityDestinationVariant8Type); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,12 +42,12 @@ public sealed class ObservabilityOpikDestinationTypeJsonConverter : global::Syst /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityOpikDestinationType value, + global::OpenRouter.ObservabilityDestinationVariant8Type value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::OpenRouter.ObservabilityOpikDestinationTypeExtensions.ToValueString(value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant8TypeExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullable.g.cs similarity index 71% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullable.g.cs index a299673..ceb2889 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityGrafanaDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class ObservabilityDestinationVariant8TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityGrafanaDestinationType? Read( + public override global::OpenRouter.ObservabilityDestinationVariant8Type? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityGrafanaDestinationTypeNullableJsonConverter : g var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.ObservabilityDestinationVariant8TypeExtensions.ToEnum(stringValue); } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityGrafanaDestinationTypeNullableJsonConverter : g case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityGrafanaDestinationType)numValue; + return (global::OpenRouter.ObservabilityDestinationVariant8Type)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityGrafanaDestinationType?); + return default(global::OpenRouter.ObservabilityDestinationVariant8Type?); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,7 +42,7 @@ public sealed class ObservabilityGrafanaDestinationTypeNullableJsonConverter : g /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityGrafanaDestinationType? value, + global::OpenRouter.ObservabilityDestinationVariant8Type? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -53,7 +53,7 @@ public override void Write( } else { - writer.WriteStringValue(global::OpenRouter.ObservabilityGrafanaDestinationTypeExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant8TypeExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9Type.g.cs new file mode 100644 index 0000000..85192e8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant9TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant9Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant9TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant9Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant9Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant9TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullable.g.cs new file mode 100644 index 0000000..985b42c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ObservabilityDestinationVariant9TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ObservabilityDestinationVariant9Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ObservabilityDestinationVariant9TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ObservabilityDestinationVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ObservabilityDestinationVariant9Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ObservabilityDestinationVariant9Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ObservabilityDestinationVariant9TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs deleted file mode 100644 index 079dfd8..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityPosthogDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityPosthogDestinationType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityPosthogDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityPosthogDestinationType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityPosthogDestinationType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs deleted file mode 100644 index cdd9f26..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityPosthogDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityPosthogDestinationType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityPosthogDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityPosthogDestinationType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityPosthogDestinationType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilityPosthogDestinationTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs deleted file mode 100644 index c179598..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityRampDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityRampDestinationType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityRampDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityRampDestinationType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityRampDestinationType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs deleted file mode 100644 index 8551df7..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityS3DestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityS3DestinationType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityS3DestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityS3DestinationType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityS3DestinationType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs deleted file mode 100644 index 343928f..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityS3DestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityS3DestinationType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityS3DestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityS3DestinationType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityS3DestinationType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilityS3DestinationTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs deleted file mode 100644 index 86e11a0..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilitySentryDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilitySentryDestinationType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilitySentryDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilitySentryDestinationType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilitySentryDestinationType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs deleted file mode 100644 index a202ce9..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilitySentryDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilitySentryDestinationType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilitySentryDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilitySentryDestinationType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilitySentryDestinationType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilitySentryDestinationTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs deleted file mode 100644 index cbf4342..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityWeaveDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityWeaveDestinationType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityWeaveDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityWeaveDestinationType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityWeaveDestinationType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs deleted file mode 100644 index c4280a9..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityWeaveDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityWeaveDestinationType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityWeaveDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityWeaveDestinationType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityWeaveDestinationType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilityWeaveDestinationTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs deleted file mode 100644 index a4bc531..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethod.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityWebhookDestinationConfigMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityWebhookDestinationConfigMethod Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityWebhookDestinationConfigMethod)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityWebhookDestinationConfigMethod); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityWebhookDestinationConfigMethod value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs deleted file mode 100644 index 165db1b..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityWebhookDestinationConfigMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityWebhookDestinationConfigMethod)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityWebhookDestinationConfigMethod?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilityWebhookDestinationConfigMethodExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs deleted file mode 100644 index 879840d..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationType.g.cs +++ /dev/null @@ -1,53 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityWebhookDestinationTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityWebhookDestinationType Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityWebhookDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityWebhookDestinationType); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityWebhookDestinationType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs deleted file mode 100644 index df243ae..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullable.g.cs +++ /dev/null @@ -1,60 +0,0 @@ -#nullable enable - -namespace OpenRouter.JsonConverters -{ - /// - public sealed class ObservabilityWebhookDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ObservabilityWebhookDestinationType? Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - switch (reader.TokenType) - { - case global::System.Text.Json.JsonTokenType.String: - { - var stringValue = reader.GetString(); - if (stringValue != null) - { - return global::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityWebhookDestinationType)numValue; - } - case global::System.Text.Json.JsonTokenType.Null: - { - return default(global::OpenRouter.ObservabilityWebhookDestinationType?); - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityWebhookDestinationType? value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilityWebhookDestinationTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs new file mode 100644 index 0000000..b4931f4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs new file mode 100644 index 0000000..b6e4d66 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs similarity index 56% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs index 108f0f6..1a02aa1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullable.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs @@ -3,10 +3,10 @@ namespace OpenRouter.JsonConverters { /// - public sealed class ObservabilityRampDestinationTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ObservabilityRampDestinationType? Read( + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class ObservabilityRampDestinationTypeNullableJsonConverter : glob var stringValue = reader.GetString(); if (stringValue != null) { - return global::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToEnum(stringValue); + return global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,11 +26,11 @@ public sealed class ObservabilityRampDestinationTypeNullableJsonConverter : glob case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::OpenRouter.ObservabilityRampDestinationType)numValue; + return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField)numValue; } case global::System.Text.Json.JsonTokenType.Null: { - return default(global::OpenRouter.ObservabilityRampDestinationType?); + return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField); } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -42,19 +42,12 @@ public sealed class ObservabilityRampDestinationTypeNullableJsonConverter : glob /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ObservabilityRampDestinationType? value, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - if (value == null) - { - writer.WriteNullValue(); - } - else - { - writer.WriteStringValue(global::OpenRouter.ObservabilityRampDestinationTypeExtensions.ToValueString(value.Value)); - } + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToValueString(value)); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs new file mode 100644 index 0000000..fc8fcb8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs new file mode 100644 index 0000000..62cb37d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs new file mode 100644 index 0000000..21ab6f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs new file mode 100644 index 0000000..ee800d8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs @@ -0,0 +1,162 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); + var __rawJson = __jsonDocument.RootElement.GetRawText(); + var __jsonProps = new global::System.Collections.Generic.HashSet(); + if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name); + } + } + + var __score0 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score0++; + } + } + } + var __score1 = 0; + { + var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); + if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) + { + foreach (var __prop in __ti.Properties) + { + if (__jsonProps.Contains(__prop.Name)) __score1++; + } + } + } + var __bestScore = 0; + var __bestIndex = -1; + if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } + if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } + + string? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = default; + double? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = default; + if (__bestIndex >= 0) + { + if (__bestIndex == 0) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + else if (__bestIndex == 1) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + } + + if (updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 == null && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + if (updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 == null && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 == null) + { + try + { + + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + + var __value = new global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue( + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, + + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!, typeInfo); + } + else if (value.IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!.Value, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseData.g.cs new file mode 100644 index 0000000..f3e2638 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseData.g.cs @@ -0,0 +1,297 @@ +#nullable enable +#pragma warning disable CS0618 // Type or member is obsolete + +namespace OpenRouter.JsonConverters +{ + /// + public class UpdateObservabilityDestinationResponseDataJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseData Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + + var readerCopy = reader; + var discriminatorTypeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator)}"); + var discriminator = global::System.Text.Json.JsonSerializer.Deserialize(ref readerCopy, discriminatorTypeInfo); + + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? arize = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Arize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1)}"); + arize = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? braintrust = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Braintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2)}"); + braintrust = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? clickhouse = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Clickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3)}"); + clickhouse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? datadog = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Datadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4)}"); + datadog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? grafana = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Grafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5)}"); + grafana = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? langfuse = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Langfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6)}"); + langfuse = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? langsmith = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Langsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7)}"); + langsmith = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? newrelic = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Newrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8)}"); + newrelic = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? opik = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Opik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9)}"); + opik = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? otelCollector = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.OtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10)}"); + otelCollector = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? posthog = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Posthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11)}"); + posthog = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? ramp = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Ramp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12)}"); + ramp = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? s3 = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.S3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13)}"); + s3 = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? sentry = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Sentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14)}"); + sentry = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? snowflake = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Snowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15)}"); + snowflake = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? weave = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Weave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16)}"); + weave = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? webhook = default; + if (discriminator?.Type == global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType.Webhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {nameof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17)}"); + webhook = global::System.Text.Json.JsonSerializer.Deserialize(ref reader, typeInfo); + } + + var __value = new global::OpenRouter.UpdateObservabilityDestinationResponseData( + discriminator?.Type, + arize, + + braintrust, + + clickhouse, + + datadog, + + grafana, + + langfuse, + + langsmith, + + newrelic, + + opik, + + otelCollector, + + posthog, + + ramp, + + s3, + + sentry, + + snowflake, + + weave, + + webhook + ); + + return __value; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseData value, + global::System.Text.Json.JsonSerializerOptions options) + { + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); + var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + + if (value.IsArize) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Arize!, typeInfo); + } + else if (value.IsBraintrust) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Braintrust!, typeInfo); + } + else if (value.IsClickhouse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Clickhouse!, typeInfo); + } + else if (value.IsDatadog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Datadog!, typeInfo); + } + else if (value.IsGrafana) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Grafana!, typeInfo); + } + else if (value.IsLangfuse) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langfuse!, typeInfo); + } + else if (value.IsLangsmith) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Langsmith!, typeInfo); + } + else if (value.IsNewrelic) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Newrelic!, typeInfo); + } + else if (value.IsOpik) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Opik!, typeInfo); + } + else if (value.IsOtelCollector) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.OtelCollector!, typeInfo); + } + else if (value.IsPosthog) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Posthog!, typeInfo); + } + else if (value.IsRamp) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Ramp!, typeInfo); + } + else if (value.IsS3) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.S3!, typeInfo); + } + else if (value.IsSentry) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentry!, typeInfo); + } + else if (value.IsSnowflake) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Snowflake!, typeInfo); + } + else if (value.IsWeave) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Weave!, typeInfo); + } + else if (value.IsWebhook) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Webhook!, typeInfo); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs new file mode 100644 index 0000000..a0f516c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullable.g.cs new file mode 100644 index 0000000..28a9c25 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs new file mode 100644 index 0000000..a5cc9c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullable.g.cs new file mode 100644 index 0000000..5addc7d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs new file mode 100644 index 0000000..40fc69e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs new file mode 100644 index 0000000..100916a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs new file mode 100644 index 0000000..1f7b4a1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs new file mode 100644 index 0000000..22d0fcd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs new file mode 100644 index 0000000..a8a1bf0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs new file mode 100644 index 0000000..0862c0b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs new file mode 100644 index 0000000..49d54bc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs new file mode 100644 index 0000000..6b79732 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs new file mode 100644 index 0000000..6b4757d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs new file mode 100644 index 0000000..8b33332 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs new file mode 100644 index 0000000..92528e7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs new file mode 100644 index 0000000..d0ca785 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs new file mode 100644 index 0000000..1c6ed74 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs new file mode 100644 index 0000000..87f1ce4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs new file mode 100644 index 0000000..9cc8a16 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs new file mode 100644 index 0000000..7c1bcd0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs new file mode 100644 index 0000000..5dd03c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs new file mode 100644 index 0000000..b1719fd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs new file mode 100644 index 0000000..0e08e99 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs new file mode 100644 index 0000000..67956e9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs new file mode 100644 index 0000000..21a0498 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs new file mode 100644 index 0000000..e5f89fb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs new file mode 100644 index 0000000..1215630 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs new file mode 100644 index 0000000..d6be8f5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs new file mode 100644 index 0000000..7af131a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs new file mode 100644 index 0000000..4a92cbd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs new file mode 100644 index 0000000..3f22a56 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs new file mode 100644 index 0000000..08a86d8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs new file mode 100644 index 0000000..f757c8b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs new file mode 100644 index 0000000..5eb7d1b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs new file mode 100644 index 0000000..45ce31d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs new file mode 100644 index 0000000..6ec0d0d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs new file mode 100644 index 0000000..876ff12 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs new file mode 100644 index 0000000..8684d63 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs new file mode 100644 index 0000000..b9b9381 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9TypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9TypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs new file mode 100644 index 0000000..9eee152 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class UpdateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9TypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9TypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index dc0797d..88e5b2a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -1941,86 +1941,162 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -2037,10 +2113,146 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -2335,8 +2547,14 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -4842,86 +5060,162 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -4938,10 +5232,146 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -5236,8 +5666,14 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -5463,8 +5899,15 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListBYOKKeysResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateBYOKKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateByokKeyResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateBYOKKeyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetByokKeyResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetBYOKKeyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteBYOKKeyResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateBYOKKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateByokKeyResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateBYOKKeyResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatDebugOptions))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatAudioOutput))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile))] @@ -5797,13 +6240,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParamType), TypeInfoPropertyName = "AnthropicImageBlockParamType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicImageBlockParam))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamCitations))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceMediaType), TypeInfoPropertyName = "AnthropicBase64PdfSourceMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceType), TypeInfoPropertyName = "AnthropicBase64PdfSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceMediaType), TypeInfoPropertyName = "AnthropicPlainTextSourceMediaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceType), TypeInfoPropertyName = "AnthropicPlainTextSourceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSource))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items2")] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -7743,86 +8179,162 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -7839,10 +8351,146 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -8137,8 +8785,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -8205,6 +8859,13 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceMediaType), TypeInfoPropertyName = "AnthropicBase64PdfSourceMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSourceType), TypeInfoPropertyName = "AnthropicBase64PdfSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicBase64PdfSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceMediaType), TypeInfoPropertyName = "AnthropicPlainTextSourceMediaType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSourceType), TypeInfoPropertyName = "AnthropicPlainTextSourceType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicPlainTextSource))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items), TypeInfoPropertyName = "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator))] @@ -8497,7 +9158,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsGetParametersCategory), TypeInfoPropertyName = "ModelsGetParametersCategory2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponseData))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ModelsCountResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsLogic2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator2")] @@ -8507,37 +9168,24 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityFilterRulesConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityGrafanaDestinationType), TypeInfoPropertyName = "ObservabilityGrafanaDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangfuseDestinationType), TypeInfoPropertyName = "ObservabilityLangfuseDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityLangsmithDestinationType), TypeInfoPropertyName = "ObservabilityLangsmithDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion), TypeInfoPropertyName = "ObservabilityNewrelicDestinationConfigRegion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityNewrelicDestinationType), TypeInfoPropertyName = "ObservabilityNewrelicDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOpikDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOpikDestinationType), TypeInfoPropertyName = "ObservabilityOpikDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationType), TypeInfoPropertyName = "ObservabilityOtelCollectorDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityPosthogDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityPosthogDestinationType), TypeInfoPropertyName = "ObservabilityPosthogDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityRampDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityRampDestinationType), TypeInfoPropertyName = "ObservabilityRampDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityS3DestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityS3DestinationType), TypeInfoPropertyName = "ObservabilityS3DestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySentryDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySentryDestinationType), TypeInfoPropertyName = "ObservabilitySentryDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilitySnowflakeDestinationType), TypeInfoPropertyName = "ObservabilitySnowflakeDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWeaveDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWeaveDestinationType), TypeInfoPropertyName = "ObservabilityWeaveDestinationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWebhookDestinationConfigMethod), TypeInfoPropertyName = "ObservabilityWebhookDestinationConfigMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWebhookDestinationConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityWebhookDestinationType), TypeInfoPropertyName = "ObservabilityWebhookDestinationType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestination), TypeInfoPropertyName = "ObservabilityDestination2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant1Type), TypeInfoPropertyName = "ObservabilityDestinationVariant1Type2")] @@ -8548,22 +9196,75 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant4Type), TypeInfoPropertyName = "ObservabilityDestinationVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant5Type), TypeInfoPropertyName = "ObservabilityDestinationVariant5Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant6Type), TypeInfoPropertyName = "ObservabilityDestinationVariant6Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant7Type), TypeInfoPropertyName = "ObservabilityDestinationVariant7Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant8Type), TypeInfoPropertyName = "ObservabilityDestinationVariant8Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant9Type), TypeInfoPropertyName = "ObservabilityDestinationVariant9Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant10Type), TypeInfoPropertyName = "ObservabilityDestinationVariant10Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant11Type), TypeInfoPropertyName = "ObservabilityDestinationVariant11Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant12Type), TypeInfoPropertyName = "ObservabilityDestinationVariant12Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant13Type), TypeInfoPropertyName = "ObservabilityDestinationVariant13Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant14Type), TypeInfoPropertyName = "ObservabilityDestinationVariant14Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant15Type), TypeInfoPropertyName = "ObservabilityDestinationVariant15Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant16Type), TypeInfoPropertyName = "ObservabilityDestinationVariant16Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationVariant17Type), TypeInfoPropertyName = "ObservabilityDestinationVariant17Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorType), TypeInfoPropertyName = "ObservabilityDestinationDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListObservabilityDestinationsResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationRequestType), TypeInfoPropertyName = "CreateObservabilityDestinationRequestType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseData), TypeInfoPropertyName = "CreateObservabilityDestinationResponseData2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant8Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant9Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant10Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant11Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant12Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant13Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant14Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant15Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant16Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataVariant17Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType), TypeInfoPropertyName = "CreateObservabilityDestinationResponseDataDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateObservabilityDestinationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseData), TypeInfoPropertyName = "GetObservabilityDestinationResponseData2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant1Type2")] @@ -8574,21 +9275,83 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant4Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant5Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant6Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant7Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant8Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant9Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant10Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant11Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant12Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant13Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant14Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant15Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant16Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataVariant17Type2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType), TypeInfoPropertyName = "GetObservabilityDestinationResponseDataDiscriminatorType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetObservabilityDestinationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteObservabilityDestinationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue), TypeInfoPropertyName = "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseData), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseData2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant1Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant2Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant3Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant4Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant5Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant6Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant7Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant8Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant9Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant10Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant11Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant12Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant13Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant14Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant15Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant16Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataVariant17Type2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType), TypeInfoPropertyName = "UpdateObservabilityDestinationResponseDataDiscriminatorType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateObservabilityDestinationResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole), TypeInfoPropertyName = "OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OrganizationListOrganizationMembersResponse200))] @@ -8596,115 +9359,6 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems), TypeInfoPropertyName = "ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters), TypeInfoPropertyName = "ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersListProvidersResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderSort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfRerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankCreateRerankResponse200))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestAspectRatio), TypeInfoPropertyName = "VideoGenerationRequestAspectRatio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageType), TypeInfoPropertyName = "FrameImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageFrameType), TypeInfoPropertyName = "FrameImageFrameType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImageImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImageType), TypeInfoPropertyName = "ContentPartImageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestProviderOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestProvider))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestResolution), TypeInfoPropertyName = "VideoGenerationRequestResolution2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponseStatus), TypeInfoPropertyName = "VideoGenerationResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationUsage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedAspectRatiosItems), TypeInfoPropertyName = "VideoModelSupportedAspectRatiosItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedFrameImagesItems), TypeInfoPropertyName = "VideoModelSupportedFrameImagesItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedResolutionsItems), TypeInfoPropertyName = "VideoModelSupportedResolutionsItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedSizesItems), TypeInfoPropertyName = "VideoModelSupportedSizesItems2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelsListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Workspace))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListWorkspacesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateWorkspaceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateWorkspaceResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateWorkspaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteWorkspaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMemberRole), TypeInfoPropertyName = "WorkspaceMemberRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMember))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForApiKeyRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysPostRequestBodyContentApplicationJsonSchemaLimitResetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class SourceGenerationContextChunk2 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -10644,86 +11298,162 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeJsonConverter), - typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullableJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), @@ -10740,10 +11470,146 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter), typeof(global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter), @@ -11038,8 +11904,14 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter), + typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter), + + typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter), + typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter), typeof(global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter), @@ -11106,6 +11978,115 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquartersObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ProvidersListProvidersResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort), TypeInfoPropertyName = "RerankPostRequestBodyContentApplicationJsonSchemaProviderSort2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfRerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollectionObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.RerankCreateRerankResponse200))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestAspectRatio), TypeInfoPropertyName = "VideoGenerationRequestAspectRatio2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageType), TypeInfoPropertyName = "FrameImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImageFrameType), TypeInfoPropertyName = "FrameImageFrameType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FrameImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImageImageUrl))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImageType), TypeInfoPropertyName = "ContentPartImageType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ContentPartImage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestProviderOptions))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestProvider))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequestResolution), TypeInfoPropertyName = "VideoGenerationRequestResolution2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponseStatus), TypeInfoPropertyName = "VideoGenerationResponseStatus2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoGenerationResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedAspectRatiosItems), TypeInfoPropertyName = "VideoModelSupportedAspectRatiosItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedFrameImagesItems), TypeInfoPropertyName = "VideoModelSupportedFrameImagesItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedResolutionsItems), TypeInfoPropertyName = "VideoModelSupportedResolutionsItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelSupportedSizesItems), TypeInfoPropertyName = "VideoModelSupportedSizesItems2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModel))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.VideoModelsListResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.Workspace))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ListWorkspacesResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateWorkspaceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateWorkspaceResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateWorkspaceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.GetWorkspaceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DeleteWorkspaceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceResponseData))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateWorkspaceResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMemberRole), TypeInfoPropertyName = "WorkspaceMemberRole2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.WorkspaceMember))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkAddWorkspaceMembersResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.BulkRemoveWorkspaceMembersResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ExchangeAuthCodeForApiKeyRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfAuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethodObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateAuthKeysCodeRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateEmbeddingsRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysPostRequestBodyContentApplicationJsonSchemaLimitResetObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.UpdateKeysRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetObject2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -11178,6 +12159,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -12205,36 +13188,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsFieldNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperatorNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodNullableJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter()); - options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant2TypeJsonConverter()); @@ -12243,8 +13200,72 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant3TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant4TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant2TypeJsonConverter()); @@ -12253,8 +13274,76 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeNullableJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRoleNullableJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItemsJsonConverter()); @@ -12402,7 +13491,10 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.AnthropicUsageIterationJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValueJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.ObservabilityDestinationJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItemsJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItemsJsonConverter()); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 8dd44b6..7a1a370 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -2660,2759 +2660,2759 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.GetByokKeyResponseData? Type658 { get; set; } + public global::OpenRouter.CreateBYOKKeyRequest? Type658 { get; set; } /// /// /// - public global::OpenRouter.GetBYOKKeyResponse? Type659 { get; set; } + public global::OpenRouter.CreateByokKeyResponseData? Type659 { get; set; } /// /// /// - public global::OpenRouter.ChatDebugOptions? Type660 { get; set; } + public global::OpenRouter.CreateBYOKKeyResponse? Type660 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type661 { get; set; } + public global::OpenRouter.GetByokKeyResponseData? Type661 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type662 { get; set; } + public global::OpenRouter.GetBYOKKeyResponse? Type662 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type663 { get; set; } + public global::OpenRouter.DeleteBYOKKeyResponse? Type663 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type664 { get; set; } + public global::OpenRouter.UpdateBYOKKeyRequest? Type664 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type665 { get; set; } + public global::OpenRouter.UpdateByokKeyResponseData? Type665 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type666 { get; set; } + public global::OpenRouter.UpdateBYOKKeyResponse? Type666 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type667 { get; set; } + public global::OpenRouter.ChatDebugOptions? Type667 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControlType? Type668 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type668 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type669 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingFileFile? Type669 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type670 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail? Type670 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type671 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingImageUrlImageUrl? Type671 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type672 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorMappingInputAudioInputAudio? Type672 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1? Type673 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type673 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant1Type? Type674 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type674 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2? Type675 { get; set; } + public global::OpenRouter.ChatContentCacheControlType? Type675 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant2Type? Type676 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type676 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3? Type677 { get; set; } + public global::OpenRouter.ChatContentTextType? Type677 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant3Type? Type678 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type678 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant4? Type679 { get; set; } + public global::OpenRouter.ChatContentItems? Type679 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant5? Type680 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1? Type680 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsVariant6? Type681 { get; set; } + public global::OpenRouter.ChatContentItemsVariant1Type? Type681 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminator? Type682 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2? Type682 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItemsDiscriminatorType? Type683 { get; set; } + public global::OpenRouter.ChatContentItemsVariant2Type? Type683 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type684 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3? Type684 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type685 { get; set; } + public global::OpenRouter.ChatContentItemsVariant3Type? Type685 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type686 { get; set; } + public global::OpenRouter.ChatContentItemsVariant4? Type686 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type687 { get; set; } + public global::OpenRouter.ChatContentItemsVariant5? Type687 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type688 { get; set; } + public global::OpenRouter.ChatContentItemsVariant6? Type688 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type689 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminator? Type689 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1? Type690 { get; set; } + public global::OpenRouter.ChatContentItemsDiscriminatorType? Type690 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type691 { get; set; } + public global::System.Collections.Generic.IList? Type691 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2? Type692 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingAssistantContent? Type692 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type693 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type693 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3? Type694 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type694 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type695 { get; set; } + public global::System.Collections.Generic.IList? Type695 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type696 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type696 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type697 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1? Type697 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type698 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant1Type? Type698 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type699 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2? Type699 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type700 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant2Type? Type700 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type701 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3? Type701 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type702 { get; set; } + public global::OpenRouter.ReasoningDetailUnionVariant3Type? Type702 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type703 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminator? Type703 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type704 { get; set; } + public global::OpenRouter.ReasoningDetailUnionDiscriminatorType? Type704 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type705 { get; set; } + public global::System.Collections.Generic.IList? Type705 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type706 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type706 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type707 { get; set; } + public global::OpenRouter.ChatToolCallType? Type707 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type708 { get; set; } + public global::OpenRouter.ChatToolCall? Type708 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type709 { get; set; } + public global::OpenRouter.ChatContentText? Type709 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type710 { get; set; } + public global::System.Collections.Generic.IList? Type710 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type711 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorMappingDeveloperContent? Type711 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1? Type712 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type712 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant1Role? Type713 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type713 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type714 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type714 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2? Type715 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type715 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant2Role? Type716 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type716 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant3? Type717 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type717 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant4? Type718 { get; set; } + public global::OpenRouter.ChatMessages? Type718 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesVariant5? Type719 { get; set; } + public global::OpenRouter.ChatMessagesVariant1? Type719 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminator? Type720 { get; set; } + public global::OpenRouter.ChatMessagesVariant1Role? Type720 { get; set; } /// /// /// - public global::OpenRouter.ChatMessagesDiscriminatorRole? Type721 { get; set; } + public global::System.Collections.Generic.IList? Type721 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type722 { get; set; } + public global::OpenRouter.ChatMessagesVariant2? Type722 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type723 { get; set; } + public global::OpenRouter.ChatMessagesVariant2Role? Type723 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type724 { get; set; } + public global::OpenRouter.ChatMessagesVariant3? Type724 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type725 { get; set; } + public global::OpenRouter.ChatMessagesVariant4? Type725 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type726 { get; set; } + public global::OpenRouter.ChatMessagesVariant5? Type726 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type727 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminator? Type727 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type728 { get; set; } + public global::OpenRouter.ChatMessagesDiscriminatorRole? Type728 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type729 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type729 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type730 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type730 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type731 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1? Type731 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type732 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant1Id? Type732 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type733 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2? Type733 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type734 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant2Id? Type734 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type735 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3? Type735 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type736 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant3Id? Type736 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type737 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4? Type737 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type738 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant4Id? Type738 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type739 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5? Type739 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type740 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant5Id? Type740 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type741 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6? Type741 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type742 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant6Id? Type742 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type743 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7? Type743 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type744 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant7Id? Type744 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type745 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsVariant8? Type745 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type746 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminator? Type746 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1? Type747 { get; set; } + public global::OpenRouter.ChatRequestPluginsItemsDiscriminatorId? Type747 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type748 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type748 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant2? Type749 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type749 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3? Type750 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type750 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type751 { get; set; } + public global::OpenRouter.OneOf? Type751 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4? Type752 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type752 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type753 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type753 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5? Type754 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1? Type754 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type755 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant1Type? Type755 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type756 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant2? Type756 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type757 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3? Type757 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type758 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant3Type? Type758 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type759 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4? Type759 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type760 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant4Type? Type760 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type761 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5? Type761 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type762 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatVariant5Type? Type762 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type763 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminator? Type763 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type764 { get; set; } + public global::OpenRouter.ChatRequestResponseFormatDiscriminatorType? Type764 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type765 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type765 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type766 { get; set; } + public global::OpenRouter.ChatRequestStop? Type766 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type767 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type767 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type768 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type768 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type769 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type769 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type770 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type770 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type771 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type771 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type772 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type772 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type773 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type773 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type774 { get; set; } + public global::OpenRouter.ChatToolChoice? Type774 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type775 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type775 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type776 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type776 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type777 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type777 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type778 { get; set; } + public global::OpenRouter.WebSearchConfig? Type778 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type779 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type779 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type780 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type780 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type781 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type781 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type782 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type782 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type783 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type783 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type784 { get; set; } + public global::OpenRouter.ChatRequest? Type784 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type785 { get; set; } + public global::System.Collections.Generic.Dictionary? Type785 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type786 { get; set; } + public global::System.Collections.Generic.IList? Type786 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type787 { get; set; } + public global::System.Collections.Generic.IList? Type787 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type788 { get; set; } + public global::System.Collections.Generic.IList? Type788 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type789 { get; set; } + public global::OpenRouter.OneOf? Type789 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type790 { get; set; } + public global::System.Collections.Generic.IList? Type790 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type791 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type791 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type792 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type792 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type793 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type793 { get; set; } /// /// /// - public global::OpenRouter.CostDetails? Type794 { get; set; } + public global::System.Collections.Generic.IList? Type794 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type795 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type795 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type796 { get; set; } + public global::System.Collections.Generic.IList? Type796 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type797 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type797 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type798 { get; set; } + public global::OpenRouter.ChatChoice? Type798 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type799 { get; set; } + public global::OpenRouter.ChatResultObject? Type799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type800 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type800 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type801 { get; set; } + public global::OpenRouter.CostDetails? Type801 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type802 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type802 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type803 { get; set; } + public global::OpenRouter.ChatUsage? Type803 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type804 { get; set; } + public global::OpenRouter.OneOf? Type804 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type805 { get; set; } + public global::OpenRouter.OneOf? Type805 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type806 { get; set; } + public global::OpenRouter.ChatResult? Type806 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type807 { get; set; } + public global::System.Collections.Generic.IList? Type807 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type808 { get; set; } + public global::System.DateTimeOffset? Type808 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type809 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type809 { get; set; } /// /// /// - public global::OpenRouter.MultimodalMedia? Type810 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type810 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudioType? Type811 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type811 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputAudio? Type812 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type812 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideoType? Type813 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type813 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputVideo? Type814 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type814 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFileType? Type815 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type815 { get; set; } /// /// /// - public global::OpenRouter.ContentPartInputFile? Type816 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type816 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type817 { get; set; } + public global::OpenRouter.MultimodalMedia? Type817 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type818 { get; set; } + public global::OpenRouter.ContentPartInputAudioType? Type818 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type819 { get; set; } + public global::OpenRouter.ContentPartInputAudio? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::OpenRouter.ContentPartInputVideoType? Type820 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type821 { get; set; } + public global::OpenRouter.ContentPartInputVideo? Type821 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type822 { get; set; } + public global::OpenRouter.ContentPartInputFileType? Type822 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type823 { get; set; } + public global::OpenRouter.ContentPartInputFile? Type823 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type824 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type824 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type825 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type825 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type826 { get; set; } + public global::System.Collections.Generic.IList? Type826 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type827 { get; set; } + public global::System.Collections.Generic.IList? Type827 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type828 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type828 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type829 { get; set; } + public global::System.Collections.Generic.IList? Type829 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type830 { get; set; } + public global::System.Collections.Generic.IList>? Type830 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type831 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type831 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type832 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type832 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type833 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type833 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type834 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type834 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type835 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type835 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type836 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort? Type836 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type837 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type837 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type838 { get; set; } + public global::OpenRouter.OneOf? Type838 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type839 { get; set; } + public global::System.Collections.Generic.IList? Type839 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type840 { get; set; } + public global::System.Collections.Generic.IList? Type840 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type841 { get; set; } + public global::System.Collections.Generic.IList? Type841 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type842 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type842 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type843 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type843 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type844 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type844 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type845 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type845 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type846 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails? Type846 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type847 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type847 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type848 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type848 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type849 { get; set; } + public global::System.Collections.Generic.IList? Type849 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type850 { get; set; } + public global::OpenRouter.InputModality? Type850 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type851 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type851 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type852 { get; set; } + public global::OpenRouter.OutputModality? Type852 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type853 { get; set; } + public global::OpenRouter.ModelGroup? Type853 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type854 { get; set; } + public global::OpenRouter.ModelArchitecture? Type854 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type855 { get; set; } + public global::System.Collections.Generic.IList? Type855 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type856 { get; set; } + public global::OpenRouter.OneOf? Type856 { get; set; } /// /// /// - public global::OpenRouter.Model? Type857 { get; set; } + public global::System.Collections.Generic.IList? Type857 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type858 { get; set; } + public global::OpenRouter.DefaultParameters? Type858 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type859 { get; set; } + public global::OpenRouter.ModelLinks? Type859 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type860 { get; set; } + public global::OpenRouter.PerRequestLimits? Type860 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type861 { get; set; } + public global::OpenRouter.PublicPricing? Type861 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type862 { get; set; } + public global::OpenRouter.Parameter? Type862 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type863 { get; set; } + public global::OpenRouter.TopProviderInfo? Type863 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type864 { get; set; } + public global::OpenRouter.Model? Type864 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type865 { get; set; } + public global::System.Collections.Generic.IList? Type865 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type866 { get; set; } + public global::System.Collections.Generic.IList? Type866 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type867 { get; set; } + public global::OpenRouter.ModelsListResponse? Type867 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type868 { get; set; } + public global::OpenRouter.PercentileStats? Type868 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type869 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type869 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type870 { get; set; } + public global::OpenRouter.EndpointStatus? Type870 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type871 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type871 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type872 { get; set; } + public global::OpenRouter.PublicEndpoint? Type872 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseDataApiType? Type873 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type873 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type874 { get; set; } + public global::System.Collections.Generic.IList? Type874 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type875 { get; set; } + public global::OpenRouter.InstructType2? Type875 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponseData? Type876 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type876 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type877 { get; set; } + public global::OpenRouter.OneOf? Type877 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type878 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type878 { get; set; } /// /// /// - public global::OpenRouter.GenerationResponse? Type879 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type879 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput0? Type880 { get; set; } + public global::OpenRouter.GenerationResponseDataApiType? Type880 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput1? Type881 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type881 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataInput? Type882 { get; set; } + public global::OpenRouter.ProviderResponse? Type882 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentDataOutput? Type883 { get; set; } + public global::OpenRouter.GenerationResponseData? Type883 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentData? Type884 { get; set; } + public global::OpenRouter.OneOf? Type884 { get; set; } /// /// /// - public global::OpenRouter.GenerationContentResponse? Type885 { get; set; } + public global::System.Collections.Generic.IList? Type885 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinAction? Type886 { get; set; } + public global::OpenRouter.GenerationResponse? Type886 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinSlug? Type887 { get; set; } + public global::OpenRouter.GenerationContentDataInput0? Type887 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterBuiltinEntry? Type888 { get; set; } + public global::OpenRouter.GenerationContentDataInput1? Type888 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterAction? Type889 { get; set; } + public global::OpenRouter.GenerationContentDataInput? Type889 { get; set; } /// /// /// - public global::OpenRouter.ContentFilterEntry? Type890 { get; set; } + public global::OpenRouter.GenerationContentDataOutput? Type890 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type891 { get; set; } + public global::OpenRouter.GenerationContentData? Type891 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type892 { get; set; } + public global::OpenRouter.GenerationContentResponse? Type892 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type893 { get; set; } + public global::OpenRouter.ContentFilterBuiltinAction? Type893 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type894 { get; set; } + public global::OpenRouter.ContentFilterBuiltinSlug? Type894 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type895 { get; set; } + public global::OpenRouter.ContentFilterBuiltinEntry? Type895 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type896 { get; set; } + public global::OpenRouter.ContentFilterAction? Type896 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type897 { get; set; } + public global::OpenRouter.ContentFilterEntry? Type897 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type898 { get; set; } + public global::OpenRouter.GuardrailInterval? Type898 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type899 { get; set; } + public global::OpenRouter.Guardrail? Type899 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type900 { get; set; } + public global::System.Collections.Generic.IList? Type900 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type901 { get; set; } + public global::System.Collections.Generic.IList? Type901 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type902 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type902 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type903 { get; set; } + public global::System.Collections.Generic.IList? Type903 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type904 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type904 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type905 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type905 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type906 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type906 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type907 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type907 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type908 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type908 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type909 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type909 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type910 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type910 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type911 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type911 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type912 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type912 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type913 { get; set; } + public global::OpenRouter.KeyAssignment? Type913 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type914 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type914 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type915 { get; set; } + public global::System.Collections.Generic.IList? Type915 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type916 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type916 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type917 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type917 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type918 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type918 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type919 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type919 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type920 { get; set; } + public global::OpenRouter.MemberAssignment? Type920 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type921 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type921 { get; set; } /// /// /// - public global::System.DateTime? Type922 { get; set; } + public global::System.Collections.Generic.IList? Type922 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type923 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type923 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type924 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type924 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type925 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type925 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type926 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type926 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type927 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type927 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type928 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type928 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type929 { get; set; } + public global::System.DateTime? Type929 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type930 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type930 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type931 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type931 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type932 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type932 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type933 { get; set; } + public global::System.Collections.Generic.IList? Type933 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type934 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type934 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type935 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type935 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type936 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type936 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type937 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type937 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type938 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type938 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type939 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type939 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type940 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type940 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type941 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type941 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type942 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type942 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type943 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type943 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type944 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type944 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type945 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type945 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type946 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type946 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type947 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type947 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type948 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type948 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type949 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1? Type949 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type950 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant1Type? Type950 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type951 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2? Type951 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type952 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerVariant2Type? Type952 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type953 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminator? Type953 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type954 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0TriggerDiscriminatorType? Type954 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type955 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type955 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type956 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type956 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type957 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type957 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type958 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type958 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type959 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type959 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type960 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type960 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type961 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type961 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type962 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type962 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type963 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type963 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type964 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type964 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type965 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2TriggerType? Type965 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type966 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type966 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type967 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type967 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type968 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type968 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type969 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type969 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type970 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type970 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type971 { get; set; } + public global::System.Collections.Generic.IList? Type971 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type972 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type972 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type973 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1? Type973 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type974 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant1Type? Type974 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type975 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2? Type975 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type976 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant2Type? Type976 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type977 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3? Type977 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type978 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant3Type? Type978 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type979 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4? Type979 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type980 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant4Type? Type980 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type981 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5? Type981 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type982 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsVariant5Type? Type982 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type983 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminator? Type983 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type984 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItemsDiscriminatorType? Type984 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type985 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type985 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type986 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type986 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type987 { get; set; } + public global::System.Collections.Generic.IList? Type987 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type988 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type988 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type989 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type989 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type990 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type990 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type991 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1? Type991 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type992 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant1Type? Type992 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type993 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceVariant2? Type993 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type994 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminator? Type994 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type995 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSourceDiscriminatorType? Type995 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type996 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type996 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type997 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type997 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type998 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type998 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type999 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type999 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1000 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type1000 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1001 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type1001 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1002 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type1002 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1003 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type1003 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1004 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type1004 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1005 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type1005 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1006 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant1? Type1006 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type1007 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsVariant2? Type1007 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type1008 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminator? Type1008 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1009 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsDiscriminatorType? Type1009 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type1010 { get; set; } + public global::System.Collections.Generic.IList? Type1010 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type1011 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type1011 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1012 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type1012 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1013 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type1013 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1014 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type1014 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1015 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type1015 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1016 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type1016 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1017 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type1017 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1018 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type1018 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type1019 { get; set; } + public global::OpenRouter.OneOf? Type1019 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1020 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type1020 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1021 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type1021 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1022 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type1022 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1023 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type1023 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1024 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type1024 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1025 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type1025 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1026 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type1026 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1027 { get; set; } + public global::System.Collections.Generic.IList? Type1027 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1028 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type1028 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1029 { get; set; } + public global::System.Collections.Generic.IList? Type1029 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1030 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type1030 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1031 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type1031 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1032 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type1032 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1033 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type1033 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1034 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type1034 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1035 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type1035 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1036 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type1036 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1037 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type1037 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1038 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type1038 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1039 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type1039 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1040 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type1040 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1041 { get; set; } + public global::System.Collections.Generic.IList? Type1041 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1042 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type1042 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1043 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type1043 { get; set; } /// /// /// - public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1044 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type1044 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1045 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type1045 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1046 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type1046 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type1047 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type1047 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type1048 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type1048 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type1049 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type1049 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type1050 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlockType? Type1050 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type1051 { get; set; } + public global::OpenRouter.MessagesAdvisorToolResultBlock? Type1051 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type1052 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type1052 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type1053 { get; set; } + public global::System.Collections.Generic.IList? Type1053 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1054 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type1054 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1055 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type1055 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type1056 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type1056 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1057 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type1057 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1058 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type1058 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1059 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type1059 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type1060 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type1060 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1061 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudgetType? Type1061 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1062 { get; set; } + public global::OpenRouter.MessagesOutputConfigTaskBudget? Type1062 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1063 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type1063 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1064 { get; set; } + public global::OpenRouter.OneOf? Type1064 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1065 { get; set; } + public global::OpenRouter.OneOf? Type1065 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1066 { get; set; } + public global::OpenRouter.OneOf? Type1066 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1067 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type1067 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1068 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1? Type1068 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1069 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant1Id? Type1069 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1070 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2? Type1070 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1071 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant2Id? Type1071 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1072 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3? Type1072 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1073 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant3Id? Type1073 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1074 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4? Type1074 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1075 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant4Id? Type1075 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1076 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5? Type1076 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1077 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant5Id? Type1077 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type1078 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6? Type1078 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type1079 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant6Id? Type1079 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingDisplay? Type1080 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7? Type1080 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1081 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant7Id? Type1081 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type1082 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsVariant8? Type1082 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1083 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminator? Type1083 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type1084 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItemsDiscriminatorId? Type1084 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1085 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type1085 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type1086 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type1086 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type1087 { get; set; } + public global::OpenRouter.AnthropicThinkingDisplay? Type1087 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1088 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type1088 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type1089 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type1089 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1090 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type1090 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type1091 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type1091 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1092 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type1092 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type1093 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type1093 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1094 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type1094 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type1095 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type1095 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type1096 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type1096 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1097 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type1097 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1098 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type1098 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type1099 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type1099 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1100 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type1100 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1101 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type1101 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type1102 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type1102 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1103 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type1103 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1104 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type1104 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type1105 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type1105 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1106 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type1106 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1107 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type1107 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1108 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type1108 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1109 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type1109 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type1110 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type1110 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAllowedCallersItems? Type1111 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type1111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1112 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type1112 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1113 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type1113 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1114 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type1114 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type1115 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type1115 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1116 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type1116 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1117 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type1117 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1118 { get; set; } + public global::OpenRouter.AnthropicAllowedCallersItems? Type1118 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1119 { get; set; } + public global::System.Collections.Generic.IList? Type1119 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems5? Type1120 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type1120 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems11? Type1121 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type1121 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type1122 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type1122 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type1123 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5CachingType? Type1123 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1124 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Caching? Type1124 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1125 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Name? Type1125 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1126 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf5Type? Type1126 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1127 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems5? Type1127 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type1128 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems11? Type1128 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1129 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type1129 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1130 { get; set; } + public global::OpenRouter.MessagesRequest? Type1130 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1131 { get; set; } + public global::OpenRouter.OneOf? Type1131 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1132 { get; set; } + public global::System.Collections.Generic.IList? Type1132 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1133 { get; set; } + public global::System.Collections.Generic.IList? Type1133 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1134 { get; set; } + public global::System.Collections.Generic.IList? Type1134 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1135 { get; set; } + public global::OpenRouter.AnthropicContainer? Type1135 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1136 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type1136 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1137 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type1137 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1138 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type1138 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1139 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type1139 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1140 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type1140 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type1141 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type1141 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type1142 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant1? Type1142 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type1143 { get; set; } + public global::System.Collections.Generic.IList? Type1143 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1144 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentVariant2? Type1144 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1145 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminator? Type1145 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type1146 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContentDiscriminatorType? Type1146 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1147 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type1147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1148 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type1148 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1149 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type1149 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1150 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type1150 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1151 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type1151 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1152 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type1152 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCaller? Type1153 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type1153 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1154 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant1? Type1154 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1155 { get; set; } + public global::System.Collections.Generic.IList? Type1155 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1156 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant2? Type1156 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1157 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentVariant3? Type1157 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1158 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminator? Type1158 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1159 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContentDiscriminatorType? Type1159 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1160 { get; set; } + public global::OpenRouter.ORAnthropicNullableCaller? Type1160 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1161 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1? Type1161 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1162 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant1Type? Type1162 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type1163 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2? Type1163 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1? Type1164 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant2Type? Type1164 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1165 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3? Type1165 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2? Type1166 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerVariant3Type? Type1166 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1167 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminator? Type1167 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3? Type1168 { get; set; } + public global::OpenRouter.ORAnthropicNullableCallerDiscriminatorType? Type1168 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1169 { get; set; } + public global::OpenRouter.OrAnthropicServerToolUseBlockType? Type1169 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4? Type1170 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type1170 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1171 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1? Type1171 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5? Type1172 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant1Type? Type1172 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1173 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2? Type1173 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1174 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant2Type? Type1174 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1175 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3? Type1175 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1176 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant3Type? Type1176 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1177 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4? Type1177 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1178 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant4Type? Type1178 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1179 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5? Type1179 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1180 { get; set; } + public global::OpenRouter.AnthropicTextCitationVariant5Type? Type1180 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1181 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminator? Type1181 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1182 { get; set; } + public global::OpenRouter.AnthropicTextCitationDiscriminatorType? Type1182 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1183 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type1183 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1184 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type1184 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1185 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type1185 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1186 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type1186 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1187 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type1187 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1188 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type1188 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1189 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type1189 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type1190 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant1? Type1190 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type1191 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant2? Type1191 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type1192 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant3? Type1192 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type1193 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentVariant4? Type1193 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1194 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminator? Type1194 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1195 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContentDiscriminatorType? Type1195 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1196 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type1196 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1197 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type1197 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1198 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type1198 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type1199 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type1199 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1? Type1200 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type1200 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant1Type? Type1201 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant1? Type1201 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2? Type1202 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentVariant2? Type1202 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant2Type? Type1203 { get; set; } + public global::System.Collections.Generic.IList? Type1203 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3? Type1204 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminator? Type1204 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerVariant3Type? Type1205 { get; set; } + public global::OpenRouter.AnthropicToolSearchContentDiscriminatorType? Type1205 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminator? Type1206 { get; set; } + public global::OpenRouter.AnthropicCaller? Type1206 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1207 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1? Type1207 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type1208 { get; set; } + public global::OpenRouter.AnthropicCallerVariant1Type? Type1208 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type1209 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2? Type1209 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type1210 { get; set; } + public global::OpenRouter.AnthropicCallerVariant2Type? Type1210 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type1211 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3? Type1211 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1212 { get; set; } + public global::OpenRouter.AnthropicCallerVariant3Type? Type1212 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1213 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminator? Type1213 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type1214 { get; set; } + public global::OpenRouter.AnthropicCallerDiscriminatorType? Type1214 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1215 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type1215 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1216 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type1216 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1217 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type1217 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1218 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type1218 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1219 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type1219 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type1220 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type1220 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type1221 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type1221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1222 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1? Type1222 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1223 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant1Type? Type1223 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1224 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentVariant2? Type1224 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type1225 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminator? Type1225 { get; set; } /// /// /// - public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1226 { get; set; } + public global::OpenRouter.AnthropicWebFetchContentDiscriminatorType? Type1226 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type1227 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type1227 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1228 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type1228 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1229 { get; set; } + public global::System.Collections.Generic.IList? Type1229 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1230 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type1230 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1231 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type1231 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1232 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type1232 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1233 { get; set; } + public global::OpenRouter.OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent? Type1233 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1234 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type1234 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1235 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1? Type1235 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1236 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant1Type? Type1236 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1237 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2? Type1237 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1238 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant2Type? Type1238 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1239 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3? Type1239 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1240 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant3Type? Type1240 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1241 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4? Type1241 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1242 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant4Type? Type1242 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1243 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5? Type1243 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1244 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant5Type? Type1244 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1245 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6? Type1245 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1246 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant6Type? Type1246 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1247 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant7? Type1247 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1248 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8? Type1248 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1249 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant8Type? Type1249 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1250 { get; set; } + public global::System.Collections.Generic.IList? Type1250 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1251 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9? Type1251 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1252 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant9Type? Type1252 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1253 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10? Type1253 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1254 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant10Type? Type1254 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1255 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11? Type1255 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1256 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant11Type? Type1256 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1257 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12? Type1257 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultRole? Type1258 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant12Type? Type1258 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1259 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13? Type1259 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1260 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant13Type? Type1260 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type1261 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14? Type1261 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1262 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockVariant14Type? Type1262 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type1263 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminator? Type1263 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultType? Type1264 { get; set; } + public global::OpenRouter.ORAnthropicContentBlockDiscriminatorType? Type1264 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type1265 { get; set; } + public global::OpenRouter.MessagesResultRole? Type1265 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type1266 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type1266 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type1267 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type1267 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type1268 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type1268 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1269 { get; set; } + public global::OpenRouter.OneOf? Type1269 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type1270 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type1270 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type1271 { get; set; } + public global::OpenRouter.MessagesResultType? Type1271 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type1272 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type1272 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1273 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type1273 { get; set; } /// /// /// - public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1274 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type1274 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type1275 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type1275 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type1276 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type1276 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type1277 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type1277 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1278 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type1278 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1279 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type1279 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultContextManagement? Type1280 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIterationType? Type1280 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1281 { get; set; } + public global::OpenRouter.AnthropicAdvisorMessageUsageIteration? Type1281 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type1282 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type1282 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1283 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type1283 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1284 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type1284 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type1285 { get; set; } + public global::System.Collections.Generic.IList? Type1285 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type1286 { get; set; } + public global::OpenRouter.MessagesResultContextManagementAppliedEditsItems? Type1286 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type1287 { get; set; } + public global::OpenRouter.MessagesResultContextManagement? Type1287 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type1288 { get; set; } + public global::System.Collections.Generic.IList? Type1288 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type1289 { get; set; } + public global::OpenRouter.MessagesResult? Type1289 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type1290 { get; set; } + public global::System.Collections.Generic.IList? Type1290 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig? Type1291 { get; set; } + public global::OpenRouter.OneOf? Type1291 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1292 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type1292 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1293 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type1293 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1294 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type1294 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1295 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type1295 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1296 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type1296 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1297 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type1297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1298 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? Type1298 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityFilterRulesConfig? Type1299 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsLogic? Type1299 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1300 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsField? Type1300 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig? Type1301 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator? Type1301 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig? Type1302 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue? Type1302 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig? Type1303 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItemsRulesItems? Type1303 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityGrafanaDestinationConfig? Type1304 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfigGroupsItems? Type1304 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityGrafanaDestinationType? Type1305 { get; set; } + public global::System.Collections.Generic.IList? Type1305 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangfuseDestinationConfig? Type1306 { get; set; } + public global::OpenRouter.ObservabilityFilterRulesConfig? Type1306 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangfuseDestinationType? Type1307 { get; set; } + public global::System.Collections.Generic.IList? Type1307 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangsmithDestinationConfig? Type1308 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? Type1308 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityLangsmithDestinationType? Type1309 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? Type1309 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Type1310 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? Type1310 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestinationConfig? Type1311 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? Type1311 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityNewrelicDestinationType? Type1312 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? Type1312 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOpikDestinationConfig? Type1313 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? Type1313 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOpikDestinationType? Type1314 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Type1314 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? Type1315 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? Type1315 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityOtelCollectorDestinationType? Type1316 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? Type1316 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityPosthogDestinationConfig? Type1317 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? Type1317 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityPosthogDestinationType? Type1318 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? Type1318 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityRampDestinationConfig? Type1319 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? Type1319 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityRampDestinationType? Type1320 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? Type1320 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3DestinationConfig? Type1321 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? Type1321 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityS3DestinationType? Type1322 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? Type1322 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySentryDestinationConfig? Type1323 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? Type1323 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySentryDestinationType? Type1324 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Type1324 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySnowflakeDestinationConfig? Type1325 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? Type1325 { get; set; } /// /// /// - public global::OpenRouter.ObservabilitySnowflakeDestinationType? Type1326 { get; set; } + public global::OpenRouter.ObservabilityDestination? Type1326 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWeaveDestinationConfig? Type1327 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1? Type1327 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWeaveDestinationType? Type1328 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1328 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Type1329 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2? Type1329 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestinationConfig? Type1330 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1330 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityWebhookDestinationType? Type1331 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3? Type1331 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestination? Type1332 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1332 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1? Type1333 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4? Type1333 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant1Type? Type1334 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1334 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2? Type1335 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5? Type1335 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant2Type? Type1336 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant5Type? Type1336 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3? Type1337 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6? Type1337 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant3Type? Type1338 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant6Type? Type1338 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4? Type1339 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7? Type1339 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant4Type? Type1340 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant7Type? Type1340 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant5? Type1341 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8? Type1341 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant6? Type1342 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant8Type? Type1342 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant7? Type1343 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9? Type1343 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant8? Type1344 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant9Type? Type1344 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant9? Type1345 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10? Type1345 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant10? Type1346 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant10Type? Type1346 { get; set; } /// /// /// @@ -5420,483 +5420,919 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant12? Type1348 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant11Type? Type1348 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant13? Type1349 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12? Type1349 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant14? Type1350 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant12Type? Type1350 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant15? Type1351 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13? Type1351 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant16? Type1352 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant13Type? Type1352 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationVariant17? Type1353 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14? Type1353 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1354 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant14Type? Type1354 { get; set; } /// /// /// - public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1355 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15? Type1355 { get; set; } /// /// /// - public global::OpenRouter.ListObservabilityDestinationsResponse? Type1356 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant15Type? Type1356 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1357 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16? Type1357 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseData? Type1358 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant16Type? Type1358 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1359 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17? Type1359 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1360 { get; set; } + public global::OpenRouter.ObservabilityDestinationVariant17Type? Type1360 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1361 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminator? Type1361 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1362 { get; set; } + public global::OpenRouter.ObservabilityDestinationDiscriminatorType? Type1362 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1363 { get; set; } + public global::OpenRouter.ListObservabilityDestinationsResponse? Type1363 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1364 { get; set; } + public global::System.Collections.Generic.IList? Type1364 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1365 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequestType? Type1365 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1366 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationRequest? Type1366 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1367 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseData? Type1367 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1368 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Type1368 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1369 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type? Type1369 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1370 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Type1370 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1371 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type? Type1371 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1372 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Type1372 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1373 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type? Type1373 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1374 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Type1374 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1375 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type? Type1375 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1376 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Type1376 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1377 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type? Type1377 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1378 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Type1378 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1379 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type? Type1379 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1380 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Type1380 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1381 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type? Type1381 { get; set; } /// /// /// - public global::OpenRouter.GetObservabilityDestinationResponse? Type1382 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Type1382 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1383 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type? Type1383 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1384 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Type1384 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1385 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type? Type1385 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1386 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? Type1386 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1387 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type? Type1387 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1388 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Type1388 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1389 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type? Type1389 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1390 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Type1390 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1391 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type? Type1391 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type1392 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? Type1392 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1393 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type? Type1393 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1394 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Type1394 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1395 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type? Type1395 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1396 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Type1396 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1397 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type? Type1397 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1398 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Type1398 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1399 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type? Type1399 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1400 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Type1400 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1401 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type? Type1401 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1402 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? Type1402 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1403 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type1403 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1404 { get; set; } + public global::OpenRouter.CreateObservabilityDestinationResponse? Type1404 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1405 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseData? Type1405 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1406 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1? Type1406 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1407 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant1Type? Type1407 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type1408 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2? Type1408 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1409 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant2Type? Type1409 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1410 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3? Type1410 { get; set; } /// /// /// - public global::OpenRouter.FrameImageImageUrl? Type1411 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant3Type? Type1411 { get; set; } /// /// /// - public global::OpenRouter.FrameImageType? Type1412 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4? Type1412 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1413 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant4Type? Type1413 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1414 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5? Type1414 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type1415 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type? Type1415 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type1416 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6? Type1416 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type1417 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type? Type1417 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1418 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7? Type1418 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1419 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type? Type1419 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1420 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8? Type1420 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1421 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type? Type1421 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1422 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9? Type1422 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1423 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type? Type1423 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1424 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10? Type1424 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1425 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type? Type1425 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1426 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11? Type1426 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1427 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type? Type1427 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1428 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12? Type1428 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1429 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type? Type1429 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1430 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13? Type1430 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1431 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type? Type1431 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1432 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14? Type1432 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1433 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type? Type1433 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1434 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15? Type1434 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1435 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type? Type1435 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1436 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16? Type1436 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1437 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type? Type1437 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1438 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17? Type1438 { get; set; } /// /// /// - public global::OpenRouter.Workspace? Type1439 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type? Type1439 { get; set; } /// /// /// - public global::OpenRouter.ListWorkspacesResponse? Type1440 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminator? Type1440 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1441 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponseDataDiscriminatorType? Type1441 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceRequest? Type1442 { get; set; } + public global::OpenRouter.GetObservabilityDestinationResponse? Type1442 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponseData? Type1443 { get; set; } + public global::OpenRouter.DeleteObservabilityDestinationResponse? Type1443 { get; set; } /// /// /// - public global::OpenRouter.CreateWorkspaceResponse? Type1444 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Type1444 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponseData? Type1445 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? Type1445 { get; set; } /// /// /// - public global::OpenRouter.GetWorkspaceResponse? Type1446 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? Type1446 { get; set; } /// /// /// - public global::OpenRouter.DeleteWorkspaceResponse? Type1447 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Type1447 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceRequest? Type1448 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? Type1448 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponseData? Type1449 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? Type1449 { get; set; } /// /// /// - public global::OpenRouter.UpdateWorkspaceResponse? Type1450 { get; set; } + public global::System.Collections.Generic.IList? Type1450 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1451 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? Type1451 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMemberRole? Type1452 { get; set; } + public global::System.Collections.Generic.IList? Type1452 { get; set; } /// /// /// - public global::OpenRouter.WorkspaceMember? Type1453 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationRequest? Type1453 { get; set; } /// /// /// - public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1454 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseData? Type1454 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1455 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Type1455 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1456 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type? Type1456 { get; set; } /// /// /// - public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1457 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Type1457 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1458 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type? Type1458 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1459 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Type1459 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1460 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type? Type1460 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1461 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Type1461 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1462 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type? Type1462 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1463 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Type1463 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1464 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type? Type1464 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1465 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Type1465 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1466 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type? Type1466 { get; set; } /// /// /// - public byte[]? Type1467 { get; set; } + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Type1467 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type? Type1468 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Type1469 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type? Type1470 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Type1471 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type? Type1472 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? Type1473 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type? Type1474 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Type1475 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type? Type1476 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Type1477 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type? Type1478 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? Type1479 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type? Type1480 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Type1481 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type? Type1482 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Type1483 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type? Type1484 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Type1485 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type? Type1486 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Type1487 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type? Type1488 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? Type1489 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type1490 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponse? Type1491 { get; set; } + /// + /// + /// + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type1492 { get; set; } + /// + /// + /// + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type1493 { get; set; } + /// + /// + /// + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type1494 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1495 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type1496 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type1497 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type1498 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1499 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1500 { get; set; } + /// + /// + /// + public global::OpenRouter.ProvidersListProvidersResponse200? Type1501 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1502 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderDataCollection? Type1503 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems? Type1504 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice? Type1505 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems? Type1506 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderOrderItems? Type1507 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProviderSort? Type1508 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type1509 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1510 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1511 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1512 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1513 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type1514 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type1515 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type1516 { get; set; } + /// + /// + /// + public global::OpenRouter.RerankCreateRerankResponse200? Type1517 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1518 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1519 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageImageUrl? Type1520 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageType? Type1521 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImageFrameType? Type1522 { get; set; } + /// + /// + /// + public global::OpenRouter.FrameImage? Type1523 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImageImageUrl? Type1524 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImageType? Type1525 { get; set; } + /// + /// + /// + public global::OpenRouter.ContentPartImage? Type1526 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1527 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestProvider? Type1528 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequestResolution? Type1529 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationRequest? Type1530 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1531 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1532 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponseStatus? Type1533 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationUsage? Type1534 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoGenerationResponse? Type1535 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1536 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1537 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1538 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelSupportedSizesItems? Type1539 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModel? Type1540 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1541 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1542 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1543 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1544 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1545 { get; set; } + /// + /// + /// + public global::OpenRouter.VideoModelsListResponse? Type1546 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1547 { get; set; } + /// + /// + /// + public global::OpenRouter.Workspace? Type1548 { get; set; } + /// + /// + /// + public global::OpenRouter.ListWorkspacesResponse? Type1549 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1550 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceRequest? Type1551 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponseData? Type1552 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateWorkspaceResponse? Type1553 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponseData? Type1554 { get; set; } + /// + /// + /// + public global::OpenRouter.GetWorkspaceResponse? Type1555 { get; set; } + /// + /// + /// + public global::OpenRouter.DeleteWorkspaceResponse? Type1556 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceRequest? Type1557 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponseData? Type1558 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateWorkspaceResponse? Type1559 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersRequest? Type1560 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMemberRole? Type1561 { get; set; } + /// + /// + /// + public global::OpenRouter.WorkspaceMember? Type1562 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkAddWorkspaceMembersResponse? Type1563 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type1564 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersRequest? Type1565 { get; set; } + /// + /// + /// + public global::OpenRouter.BulkRemoveWorkspaceMembersResponse? Type1566 { get; set; } + /// + /// + /// + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1567 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1568 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1569 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateEmbeddingsRequest? Type1570 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateKeysRequest? Type1571 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1572 { get; set; } + /// + /// + /// + public global::OpenRouter.UpdateKeysRequest? Type1573 { get; set; } + /// + /// + /// + public global::OpenRouter.OneOf? Type1574 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1575 { get; set; } + /// + /// + /// + public byte[]? Type1576 { get; set; } /// /// @@ -6313,70 +6749,78 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType103 { get; set; } + public global::System.Collections.Generic.List? ListType103 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType104 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType105 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType104 { get; set; } + public global::System.Collections.Generic.List? ListType106 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType105 { get; set; } + public global::System.Collections.Generic.List? ListType107 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType106 { get; set; } + public global::System.Collections.Generic.List? ListType108 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType107 { get; set; } + public global::System.Collections.Generic.List? ListType109 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType108 { get; set; } + public global::System.Collections.Generic.List? ListType110 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType109 { get; set; } + public global::System.Collections.Generic.List? ListType111 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType110 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType111 { get; set; } + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } } } \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.Json.g.cs index 63bddde..d68a36c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityS3DestinationConfig + public sealed partial class CreateBYOKKeyRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityS3DestinationConfig? FromJson( + public static global::OpenRouter.CreateBYOKKeyRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityS3DestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityS3DestinationConfig; + typeof(global::OpenRouter.CreateBYOKKeyRequest), + jsonSerializerContext) as global::OpenRouter.CreateBYOKKeyRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityS3DestinationConfig? FromJson( + public static global::OpenRouter.CreateBYOKKeyRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityS3DestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityS3DestinationConfig; + typeof(global::OpenRouter.CreateBYOKKeyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateBYOKKeyRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.g.cs new file mode 100644 index 0000000..f197a49 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyRequest.g.cs @@ -0,0 +1,126 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CreateBYOKKeyRequest + { + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_user_ids")] + public global::System.Collections.Generic.IList? AllowedUserIds { get; set; } + + /// + /// Whether this credential should be created in a disabled state. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + public bool? Disabled { get; set; } + + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_fallback")] + public bool? IsFallback { get; set; } + + /// + /// The raw provider API key or credential. This value is encrypted at rest and never returned in API responses. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Key { get; set; } + + /// + /// Optional human-readable name for the credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.BYOKProviderSlugJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.BYOKProviderSlug Provider { get; set; } + + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public global::System.Guid? WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The raw provider API key or credential. This value is encrypted at rest and never returned in API responses. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Whether this credential should be created in a disabled state. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// Optional human-readable name for the credential. + /// + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateBYOKKeyRequest( + string key, + global::OpenRouter.BYOKProviderSlug provider, + global::System.Collections.Generic.IList? allowedModels, + global::System.Collections.Generic.IList? allowedUserIds, + bool? disabled, + bool? isFallback, + string? name, + global::System.Guid? workspaceId) + { + this.AllowedModels = allowedModels; + this.AllowedUserIds = allowedUserIds; + this.Disabled = disabled; + this.IsFallback = isFallback; + this.Key = key ?? throw new global::System.ArgumentNullException(nameof(key)); + this.Name = name; + this.Provider = provider; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateBYOKKeyRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.Json.g.cs index 0d16efd..e314f46 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityOpikDestinationConfig + public sealed partial class CreateBYOKKeyResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityOpikDestinationConfig? FromJson( + public static global::OpenRouter.CreateBYOKKeyResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityOpikDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityOpikDestinationConfig; + typeof(global::OpenRouter.CreateBYOKKeyResponse), + jsonSerializerContext) as global::OpenRouter.CreateBYOKKeyResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityOpikDestinationConfig? FromJson( + public static global::OpenRouter.CreateBYOKKeyResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityOpikDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOpikDestinationConfig; + typeof(global::OpenRouter.CreateBYOKKeyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateBYOKKeyResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.g.cs new file mode 100644 index 0000000..edb0b3b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateBYOKKeyResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CreateBYOKKeyResponse + { + /// + /// The created BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.CreateByokKeyResponseData Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The created BYOK credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateBYOKKeyResponse( + global::OpenRouter.CreateByokKeyResponseData data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public CreateBYOKKeyResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.Json.g.cs index 8d14da8..93985e5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityRampDestinationConfig + public sealed partial class CreateByokKeyResponseData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityRampDestinationConfig? FromJson( + public static global::OpenRouter.CreateByokKeyResponseData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityRampDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityRampDestinationConfig; + typeof(global::OpenRouter.CreateByokKeyResponseData), + jsonSerializerContext) as global::OpenRouter.CreateByokKeyResponseData; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityRampDestinationConfig? FromJson( + public static global::OpenRouter.CreateByokKeyResponseData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityRampDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityRampDestinationConfig; + typeof(global::OpenRouter.CreateByokKeyResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateByokKeyResponseData; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.g.cs new file mode 100644 index 0000000..9450cc4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateByokKeyResponseData.g.cs @@ -0,0 +1,176 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The created BYOK credential. + /// + public sealed partial class CreateByokKeyResponseData + { + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_api_key_hashes")] + public global::System.Collections.Generic.IList? AllowedApiKeyHashes { get; set; } + + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_user_ids")] + public global::System.Collections.Generic.IList? AllowedUserIds { get; set; } + + /// + /// ISO timestamp of when the credential was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this credential is currently disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Disabled { get; set; } + + /// + /// Stable public identifier for this BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_fallback")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsFallback { get; set; } + + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Optional human-readable name for the credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.BYOKProviderSlugJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.BYOKProviderSlug Provider { get; set; } + + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int SortOrder { get; set; } + + /// + /// ID of the workspace this credential belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// ISO timestamp of when the credential was created. + /// + /// + /// Whether this credential is currently disabled. + /// + /// + /// Stable public identifier for this BYOK credential. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + /// + /// ID of the workspace this credential belongs to. + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Optional human-readable name for the credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateByokKeyResponseData( + string createdAt, + bool disabled, + global::System.Guid id, + bool isFallback, + string label, + global::OpenRouter.BYOKProviderSlug provider, + int sortOrder, + global::System.Guid workspaceId, + global::System.Collections.Generic.IList? allowedApiKeyHashes, + global::System.Collections.Generic.IList? allowedModels, + global::System.Collections.Generic.IList? allowedUserIds, + string? name) + { + this.AllowedApiKeyHashes = allowedApiKeyHashes; + this.AllowedModels = allowedModels; + this.AllowedUserIds = allowedUserIds; + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Disabled = disabled; + this.Id = id; + this.IsFallback = isFallback; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Name = name; + this.Provider = provider; + this.SortOrder = sortOrder; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateByokKeyResponseData() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.Json.g.cs index cc2d18b..248d227 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityWebhookDestinationConfig + public sealed partial class CreateObservabilityDestinationRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityWebhookDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityWebhookDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityWebhookDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationRequest), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityWebhookDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityWebhookDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWebhookDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs new file mode 100644 index 0000000..ffc43a5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequest.g.cs @@ -0,0 +1,142 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CreateObservabilityDestinationRequest + { + /// + /// Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// Provider-specific configuration. The shape depends on `type` and is validated server-side. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required object Config { get; set; } + + /// + /// Whether this destination should be enabled immediately.
+ /// Default Value: true + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + public global::OpenRouter.ObservabilityFilterRulesConfig? FilterRules { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded — only metadata.
+ /// Default Value: false + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + public bool? PrivacyMode { get; set; } + + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + public double? SamplingRate { get; set; } + + /// + /// The destination type. Only stable destination types are accepted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationRequestTypeJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.CreateObservabilityDestinationRequestType Type { get; set; } + + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + public global::System.Guid? WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Provider-specific configuration. The shape depends on `type` and is validated server-side. + /// + /// + /// Human-readable name for the destination. + /// + /// + /// The destination type. Only stable destination types are accepted. + /// + /// + /// Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided. + /// + /// + /// Whether this destination should be enabled immediately.
+ /// Default Value: true + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// When true, request/response bodies are not forwarded — only metadata.
+ /// Default Value: false + /// + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationRequest( + object config, + string name, + global::OpenRouter.CreateObservabilityDestinationRequestType type, + global::System.Collections.Generic.IList? apiKeyHashes, + bool? enabled, + global::OpenRouter.ObservabilityFilterRulesConfig? filterRules, + bool? privacyMode, + double? samplingRate, + global::System.Guid? workspaceId) + { + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.Enabled = enabled; + this.FilterRules = filterRules; + this.Name = name ?? throw new global::System.ArgumentNullException(nameof(name)); + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.Type = type; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.Json.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.Json.g.cs index 7faf241..e3d2952 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityOtelCollectorDestinationConfig + public sealed partial class CreateObservabilityDestinationRequestConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationRequestConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationRequestConfig), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationRequestConfig; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityOtelCollectorDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationRequestConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationRequestConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationRequestConfig; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.g.cs new file mode 100644 index 0000000..9a990a0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Provider-specific configuration. The shape depends on `type` and is validated server-side. + /// + public sealed partial class CreateObservabilityDestinationRequestConfig + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.Json.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.Json.g.cs index b5368a9..ba181d1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityWebhookDestinationConfigHeaders + public sealed partial class CreateObservabilityDestinationRequestConfig2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationRequestConfig2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders; + typeof(global::OpenRouter.CreateObservabilityDestinationRequestConfig2), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationRequestConfig2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationRequestConfig2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWebhookDestinationConfigHeaders; + typeof(global::OpenRouter.CreateObservabilityDestinationRequestConfig2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationRequestConfig2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.g.cs index 3fcfd62..0b700e1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestConfig2.g.cs @@ -4,9 +4,9 @@ namespace OpenRouter { /// - /// + /// Any type /// - public sealed partial class ObservabilityWebhookDestinationConfigHeaders + public sealed partial class CreateObservabilityDestinationRequestConfig2 { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestType.g.cs new file mode 100644 index 0000000..66226a4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationRequestType.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The destination type. Only stable destination types are accepted. + /// + public enum CreateObservabilityDestinationRequestType + { + /// + /// + /// + Arize, + /// + /// + /// + Braintrust, + /// + /// + /// + Clickhouse, + /// + /// + /// + Datadog, + /// + /// + /// + Grafana, + /// + /// + /// + Langfuse, + /// + /// + /// + Langsmith, + /// + /// + /// + Newrelic, + /// + /// + /// + Opik, + /// + /// + /// + OtelCollector, + /// + /// + /// + Posthog, + /// + /// + /// + Ramp, + /// + /// + /// + S3, + /// + /// + /// + Sentry, + /// + /// + /// + Snowflake, + /// + /// + /// + Weave, + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationRequestTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationRequestType value) + { + return value switch + { + CreateObservabilityDestinationRequestType.Arize => "arize", + CreateObservabilityDestinationRequestType.Braintrust => "braintrust", + CreateObservabilityDestinationRequestType.Clickhouse => "clickhouse", + CreateObservabilityDestinationRequestType.Datadog => "datadog", + CreateObservabilityDestinationRequestType.Grafana => "grafana", + CreateObservabilityDestinationRequestType.Langfuse => "langfuse", + CreateObservabilityDestinationRequestType.Langsmith => "langsmith", + CreateObservabilityDestinationRequestType.Newrelic => "newrelic", + CreateObservabilityDestinationRequestType.Opik => "opik", + CreateObservabilityDestinationRequestType.OtelCollector => "otel-collector", + CreateObservabilityDestinationRequestType.Posthog => "posthog", + CreateObservabilityDestinationRequestType.Ramp => "ramp", + CreateObservabilityDestinationRequestType.S3 => "s3", + CreateObservabilityDestinationRequestType.Sentry => "sentry", + CreateObservabilityDestinationRequestType.Snowflake => "snowflake", + CreateObservabilityDestinationRequestType.Weave => "weave", + CreateObservabilityDestinationRequestType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationRequestType? ToEnum(string value) + { + return value switch + { + "arize" => CreateObservabilityDestinationRequestType.Arize, + "braintrust" => CreateObservabilityDestinationRequestType.Braintrust, + "clickhouse" => CreateObservabilityDestinationRequestType.Clickhouse, + "datadog" => CreateObservabilityDestinationRequestType.Datadog, + "grafana" => CreateObservabilityDestinationRequestType.Grafana, + "langfuse" => CreateObservabilityDestinationRequestType.Langfuse, + "langsmith" => CreateObservabilityDestinationRequestType.Langsmith, + "newrelic" => CreateObservabilityDestinationRequestType.Newrelic, + "opik" => CreateObservabilityDestinationRequestType.Opik, + "otel-collector" => CreateObservabilityDestinationRequestType.OtelCollector, + "posthog" => CreateObservabilityDestinationRequestType.Posthog, + "ramp" => CreateObservabilityDestinationRequestType.Ramp, + "s3" => CreateObservabilityDestinationRequestType.S3, + "sentry" => CreateObservabilityDestinationRequestType.Sentry, + "snowflake" => CreateObservabilityDestinationRequestType.Snowflake, + "weave" => CreateObservabilityDestinationRequestType.Weave, + "webhook" => CreateObservabilityDestinationRequestType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.Json.g.cs index 9c4e9b9..c590c90 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityLangfuseDestinationConfig + public sealed partial class CreateObservabilityDestinationResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityLangfuseDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityLangfuseDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationResponse), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityLangfuseDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangfuseDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.g.cs new file mode 100644 index 0000000..6fc955b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponse.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CreateObservabilityDestinationResponse + { + /// + /// The newly created observability destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.CreateObservabilityDestinationResponseData Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The newly created observability destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponse( + global::OpenRouter.CreateObservabilityDestinationResponseData data) + { + this.Data = data; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.Json.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.Json.g.cs index ffd08f3..15f4279 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilitySentryDestinationConfig + public readonly partial struct CreateObservabilityDestinationResponseData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilitySentryDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponseData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilitySentryDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilitySentryDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationResponseData), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseData?; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilitySentryDestinationConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponseData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilitySentryDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySentryDestinationConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseData?; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.g.cs new file mode 100644 index 0000000..fbed755 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseData.g.cs @@ -0,0 +1,1548 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// The newly created observability destination. + /// + public readonly partial struct CreateObservabilityDestinationResponseData : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type { get; } + + /// + /// arize variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Arize { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? Arize { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Arize))] +#endif + public bool IsArize => Arize != null; + + /// + /// + /// + public bool TryPickArize( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? value) + { + value = Arize; + return IsArize; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1 PickArize() => IsArize + ? Arize! + : throw new global::System.InvalidOperationException($"Expected union variant 'Arize' but the value was {ToString()}."); + + /// + /// braintrust variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Braintrust { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? Braintrust { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Braintrust))] +#endif + public bool IsBraintrust => Braintrust != null; + + /// + /// + /// + public bool TryPickBraintrust( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? value) + { + value = Braintrust; + return IsBraintrust; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2 PickBraintrust() => IsBraintrust + ? Braintrust! + : throw new global::System.InvalidOperationException($"Expected union variant 'Braintrust' but the value was {ToString()}."); + + /// + /// clickhouse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Clickhouse { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? Clickhouse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Clickhouse))] +#endif + public bool IsClickhouse => Clickhouse != null; + + /// + /// + /// + public bool TryPickClickhouse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? value) + { + value = Clickhouse; + return IsClickhouse; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3 PickClickhouse() => IsClickhouse + ? Clickhouse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Clickhouse' but the value was {ToString()}."); + + /// + /// datadog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Datadog { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? Datadog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Datadog))] +#endif + public bool IsDatadog => Datadog != null; + + /// + /// + /// + public bool TryPickDatadog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? value) + { + value = Datadog; + return IsDatadog; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4 PickDatadog() => IsDatadog + ? Datadog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Datadog' but the value was {ToString()}."); + + /// + /// grafana variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Grafana { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? Grafana { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Grafana))] +#endif + public bool IsGrafana => Grafana != null; + + /// + /// + /// + public bool TryPickGrafana( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? value) + { + value = Grafana; + return IsGrafana; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5 PickGrafana() => IsGrafana + ? Grafana! + : throw new global::System.InvalidOperationException($"Expected union variant 'Grafana' but the value was {ToString()}."); + + /// + /// langfuse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Langfuse { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? Langfuse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langfuse))] +#endif + public bool IsLangfuse => Langfuse != null; + + /// + /// + /// + public bool TryPickLangfuse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? value) + { + value = Langfuse; + return IsLangfuse; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6 PickLangfuse() => IsLangfuse + ? Langfuse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); + + /// + /// langsmith variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Langsmith { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? Langsmith { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langsmith))] +#endif + public bool IsLangsmith => Langsmith != null; + + /// + /// + /// + public bool TryPickLangsmith( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? value) + { + value = Langsmith; + return IsLangsmith; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7 PickLangsmith() => IsLangsmith + ? Langsmith! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langsmith' but the value was {ToString()}."); + + /// + /// newrelic variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Newrelic { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? Newrelic { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Newrelic))] +#endif + public bool IsNewrelic => Newrelic != null; + + /// + /// + /// + public bool TryPickNewrelic( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? value) + { + value = Newrelic; + return IsNewrelic; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8 PickNewrelic() => IsNewrelic + ? Newrelic! + : throw new global::System.InvalidOperationException($"Expected union variant 'Newrelic' but the value was {ToString()}."); + + /// + /// opik variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Opik { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? Opik { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Opik))] +#endif + public bool IsOpik => Opik != null; + + /// + /// + /// + public bool TryPickOpik( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? value) + { + value = Opik; + return IsOpik; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9 PickOpik() => IsOpik + ? Opik! + : throw new global::System.InvalidOperationException($"Expected union variant 'Opik' but the value was {ToString()}."); + + /// + /// otel-collector variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? OtelCollector { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? OtelCollector { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OtelCollector))] +#endif + public bool IsOtelCollector => OtelCollector != null; + + /// + /// + /// + public bool TryPickOtelCollector( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? value) + { + value = OtelCollector; + return IsOtelCollector; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10 PickOtelCollector() => IsOtelCollector + ? OtelCollector! + : throw new global::System.InvalidOperationException($"Expected union variant 'OtelCollector' but the value was {ToString()}."); + + /// + /// posthog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Posthog { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? Posthog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Posthog))] +#endif + public bool IsPosthog => Posthog != null; + + /// + /// + /// + public bool TryPickPosthog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? value) + { + value = Posthog; + return IsPosthog; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11 PickPosthog() => IsPosthog + ? Posthog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Posthog' but the value was {ToString()}."); + + /// + /// ramp variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Ramp { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? Ramp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Ramp))] +#endif + public bool IsRamp => Ramp != null; + + /// + /// + /// + public bool TryPickRamp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? value) + { + value = Ramp; + return IsRamp; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12 PickRamp() => IsRamp + ? Ramp! + : throw new global::System.InvalidOperationException($"Expected union variant 'Ramp' but the value was {ToString()}."); + + /// + /// s3 variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? S3 { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? S3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(S3))] +#endif + public bool IsS3 => S3 != null; + + /// + /// + /// + public bool TryPickS3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? value) + { + value = S3; + return IsS3; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13 PickS3() => IsS3 + ? S3! + : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); + + /// + /// sentry variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Sentry { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? Sentry { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sentry))] +#endif + public bool IsSentry => Sentry != null; + + /// + /// + /// + public bool TryPickSentry( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? value) + { + value = Sentry; + return IsSentry; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14 PickSentry() => IsSentry + ? Sentry! + : throw new global::System.InvalidOperationException($"Expected union variant 'Sentry' but the value was {ToString()}."); + + /// + /// snowflake variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Snowflake { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? Snowflake { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Snowflake))] +#endif + public bool IsSnowflake => Snowflake != null; + + /// + /// + /// + public bool TryPickSnowflake( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? value) + { + value = Snowflake; + return IsSnowflake; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15 PickSnowflake() => IsSnowflake + ? Snowflake! + : throw new global::System.InvalidOperationException($"Expected union variant 'Snowflake' but the value was {ToString()}."); + + /// + /// weave variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Weave { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? Weave { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Weave))] +#endif + public bool IsWeave => Weave != null; + + /// + /// + /// + public bool TryPickWeave( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? value) + { + value = Weave; + return IsWeave; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16 PickWeave() => IsWeave + ? Weave! + : throw new global::System.InvalidOperationException($"Expected union variant 'Weave' but the value was {ToString()}."); + + /// + /// webhook variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Webhook { get; init; } +#else + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? Webhook { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Webhook))] +#endif + public bool IsWebhook => Webhook != null; + + /// + /// + /// + public bool TryPickWebhook( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? value) + { + value = Webhook; + return IsWebhook; + } + + /// + /// + /// + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17 PickWebhook() => IsWebhook + ? Webhook! + : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1?(CreateObservabilityDestinationResponseData @this) => @this.Arize; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? value) + { + Arize = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromArize(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2?(CreateObservabilityDestinationResponseData @this) => @this.Braintrust; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? value) + { + Braintrust = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromBraintrust(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3?(CreateObservabilityDestinationResponseData @this) => @this.Clickhouse; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? value) + { + Clickhouse = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromClickhouse(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4?(CreateObservabilityDestinationResponseData @this) => @this.Datadog; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? value) + { + Datadog = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromDatadog(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5?(CreateObservabilityDestinationResponseData @this) => @this.Grafana; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? value) + { + Grafana = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromGrafana(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6?(CreateObservabilityDestinationResponseData @this) => @this.Langfuse; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? value) + { + Langfuse = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromLangfuse(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7?(CreateObservabilityDestinationResponseData @this) => @this.Langsmith; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? value) + { + Langsmith = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromLangsmith(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8?(CreateObservabilityDestinationResponseData @this) => @this.Newrelic; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? value) + { + Newrelic = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromNewrelic(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9?(CreateObservabilityDestinationResponseData @this) => @this.Opik; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? value) + { + Opik = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromOpik(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10?(CreateObservabilityDestinationResponseData @this) => @this.OtelCollector; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? value) + { + OtelCollector = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromOtelCollector(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11?(CreateObservabilityDestinationResponseData @this) => @this.Posthog; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? value) + { + Posthog = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromPosthog(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12?(CreateObservabilityDestinationResponseData @this) => @this.Ramp; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? value) + { + Ramp = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromRamp(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13?(CreateObservabilityDestinationResponseData @this) => @this.S3; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? value) + { + S3 = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromS3(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14?(CreateObservabilityDestinationResponseData @this) => @this.Sentry; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? value) + { + Sentry = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromSentry(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15?(CreateObservabilityDestinationResponseData @this) => @this.Snowflake; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? value) + { + Snowflake = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromSnowflake(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16?(CreateObservabilityDestinationResponseData @this) => @this.Weave; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? value) + { + Weave = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromWeave(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17 value) => new CreateObservabilityDestinationResponseData((global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17?(CreateObservabilityDestinationResponseData @this) => @this.Webhook; + + /// + /// + /// + public CreateObservabilityDestinationResponseData(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? value) + { + Webhook = value; + } + + /// + /// + /// + public static CreateObservabilityDestinationResponseData FromWebhook(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? value) => new CreateObservabilityDestinationResponseData(value); + + /// + /// + /// + public CreateObservabilityDestinationResponseData( + global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? type, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? arize, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? braintrust, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? clickhouse, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? datadog, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? grafana, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? langfuse, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? langsmith, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? newrelic, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? opik, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? otelCollector, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? posthog, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? ramp, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? s3, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? sentry, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? snowflake, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? weave, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? webhook + ) + { + Type = type; + + Arize = arize; + Braintrust = braintrust; + Clickhouse = clickhouse; + Datadog = datadog; + Grafana = grafana; + Langfuse = langfuse; + Langsmith = langsmith; + Newrelic = newrelic; + Opik = opik; + OtelCollector = otelCollector; + Posthog = posthog; + Ramp = ramp; + S3 = s3; + Sentry = sentry; + Snowflake = snowflake; + Weave = weave; + Webhook = webhook; + } + + /// + /// + /// + public object? Object => + Webhook as object ?? + Weave as object ?? + Snowflake as object ?? + Sentry as object ?? + S3 as object ?? + Ramp as object ?? + Posthog as object ?? + OtelCollector as object ?? + Opik as object ?? + Newrelic as object ?? + Langsmith as object ?? + Langfuse as object ?? + Grafana as object ?? + Datadog as object ?? + Clickhouse as object ?? + Braintrust as object ?? + Arize as object + ; + + /// + /// + /// + public override string? ToString() => + Arize?.ToString() ?? + Braintrust?.ToString() ?? + Clickhouse?.ToString() ?? + Datadog?.ToString() ?? + Grafana?.ToString() ?? + Langfuse?.ToString() ?? + Langsmith?.ToString() ?? + Newrelic?.ToString() ?? + Opik?.ToString() ?? + OtelCollector?.ToString() ?? + Posthog?.ToString() ?? + Ramp?.ToString() ?? + S3?.ToString() ?? + Sentry?.ToString() ?? + Snowflake?.ToString() ?? + Weave?.ToString() ?? + Webhook?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && IsWebhook; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? arize = null, + global::System.Func? braintrust = null, + global::System.Func? clickhouse = null, + global::System.Func? datadog = null, + global::System.Func? grafana = null, + global::System.Func? langfuse = null, + global::System.Func? langsmith = null, + global::System.Func? newrelic = null, + global::System.Func? opik = null, + global::System.Func? otelCollector = null, + global::System.Func? posthog = null, + global::System.Func? ramp = null, + global::System.Func? s3 = null, + global::System.Func? sentry = null, + global::System.Func? snowflake = null, + global::System.Func? weave = null, + global::System.Func? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize && arize != null) + { + return arize(Arize!); + } + else if (IsBraintrust && braintrust != null) + { + return braintrust(Braintrust!); + } + else if (IsClickhouse && clickhouse != null) + { + return clickhouse(Clickhouse!); + } + else if (IsDatadog && datadog != null) + { + return datadog(Datadog!); + } + else if (IsGrafana && grafana != null) + { + return grafana(Grafana!); + } + else if (IsLangfuse && langfuse != null) + { + return langfuse(Langfuse!); + } + else if (IsLangsmith && langsmith != null) + { + return langsmith(Langsmith!); + } + else if (IsNewrelic && newrelic != null) + { + return newrelic(Newrelic!); + } + else if (IsOpik && opik != null) + { + return opik(Opik!); + } + else if (IsOtelCollector && otelCollector != null) + { + return otelCollector(OtelCollector!); + } + else if (IsPosthog && posthog != null) + { + return posthog(Posthog!); + } + else if (IsRamp && ramp != null) + { + return ramp(Ramp!); + } + else if (IsS3 && s3 != null) + { + return s3(S3!); + } + else if (IsSentry && sentry != null) + { + return sentry(Sentry!); + } + else if (IsSnowflake && snowflake != null) + { + return snowflake(Snowflake!); + } + else if (IsWeave && weave != null) + { + return weave(Weave!); + } + else if (IsWebhook && webhook != null) + { + return webhook(Webhook!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? arize = null, + + global::System.Action? braintrust = null, + + global::System.Action? clickhouse = null, + + global::System.Action? datadog = null, + + global::System.Action? grafana = null, + + global::System.Action? langfuse = null, + + global::System.Action? langsmith = null, + + global::System.Action? newrelic = null, + + global::System.Action? opik = null, + + global::System.Action? otelCollector = null, + + global::System.Action? posthog = null, + + global::System.Action? ramp = null, + + global::System.Action? s3 = null, + + global::System.Action? sentry = null, + + global::System.Action? snowflake = null, + + global::System.Action? weave = null, + + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? arize = null, + global::System.Action? braintrust = null, + global::System.Action? clickhouse = null, + global::System.Action? datadog = null, + global::System.Action? grafana = null, + global::System.Action? langfuse = null, + global::System.Action? langsmith = null, + global::System.Action? newrelic = null, + global::System.Action? opik = null, + global::System.Action? otelCollector = null, + global::System.Action? posthog = null, + global::System.Action? ramp = null, + global::System.Action? s3 = null, + global::System.Action? sentry = null, + global::System.Action? snowflake = null, + global::System.Action? weave = null, + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Arize, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1), + Braintrust, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2), + Clickhouse, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3), + Datadog, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4), + Grafana, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5), + Langfuse, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6), + Langsmith, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7), + Newrelic, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8), + Opik, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9), + OtelCollector, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10), + Posthog, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11), + Ramp, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12), + S3, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13), + Sentry, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14), + Snowflake, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15), + Weave, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16), + Webhook, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(CreateObservabilityDestinationResponseData other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Arize, other.Arize) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Braintrust, other.Braintrust) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Clickhouse, other.Clickhouse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Datadog, other.Datadog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Grafana, other.Grafana) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langfuse, other.Langfuse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langsmith, other.Langsmith) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Newrelic, other.Newrelic) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Opik, other.Opik) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OtelCollector, other.OtelCollector) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Posthog, other.Posthog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Ramp, other.Ramp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sentry, other.Sentry) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Snowflake, other.Snowflake) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Weave, other.Weave) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Webhook, other.Webhook) + ; + } + + /// + /// + /// + public static bool operator ==(CreateObservabilityDestinationResponseData obj1, CreateObservabilityDestinationResponseData obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(CreateObservabilityDestinationResponseData obj1, CreateObservabilityDestinationResponseData obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is CreateObservabilityDestinationResponseData o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.Json.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.Json.g.cs index 1a3914c..296de24 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfig + public sealed partial class CreateObservabilityDestinationResponseDataDiscriminator { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig; + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminator; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.g.cs new file mode 100644 index 0000000..5f1a492 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class CreateObservabilityDestinationResponseDataDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataDiscriminator( + global::OpenRouter.CreateObservabilityDestinationResponseDataDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs new file mode 100644 index 0000000..ee3a0da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataDiscriminatorType.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum CreateObservabilityDestinationResponseDataDiscriminatorType + { + /// + /// + /// + Arize, + /// + /// + /// + Braintrust, + /// + /// + /// + Clickhouse, + /// + /// + /// + Datadog, + /// + /// + /// + Grafana, + /// + /// + /// + Langfuse, + /// + /// + /// + Langsmith, + /// + /// + /// + Newrelic, + /// + /// + /// + Opik, + /// + /// + /// + OtelCollector, + /// + /// + /// + Posthog, + /// + /// + /// + Ramp, + /// + /// + /// + S3, + /// + /// + /// + Sentry, + /// + /// + /// + Snowflake, + /// + /// + /// + Weave, + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataDiscriminatorType value) + { + return value switch + { + CreateObservabilityDestinationResponseDataDiscriminatorType.Arize => "arize", + CreateObservabilityDestinationResponseDataDiscriminatorType.Braintrust => "braintrust", + CreateObservabilityDestinationResponseDataDiscriminatorType.Clickhouse => "clickhouse", + CreateObservabilityDestinationResponseDataDiscriminatorType.Datadog => "datadog", + CreateObservabilityDestinationResponseDataDiscriminatorType.Grafana => "grafana", + CreateObservabilityDestinationResponseDataDiscriminatorType.Langfuse => "langfuse", + CreateObservabilityDestinationResponseDataDiscriminatorType.Langsmith => "langsmith", + CreateObservabilityDestinationResponseDataDiscriminatorType.Newrelic => "newrelic", + CreateObservabilityDestinationResponseDataDiscriminatorType.Opik => "opik", + CreateObservabilityDestinationResponseDataDiscriminatorType.OtelCollector => "otel-collector", + CreateObservabilityDestinationResponseDataDiscriminatorType.Posthog => "posthog", + CreateObservabilityDestinationResponseDataDiscriminatorType.Ramp => "ramp", + CreateObservabilityDestinationResponseDataDiscriminatorType.S3 => "s3", + CreateObservabilityDestinationResponseDataDiscriminatorType.Sentry => "sentry", + CreateObservabilityDestinationResponseDataDiscriminatorType.Snowflake => "snowflake", + CreateObservabilityDestinationResponseDataDiscriminatorType.Weave => "weave", + CreateObservabilityDestinationResponseDataDiscriminatorType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataDiscriminatorType? ToEnum(string value) + { + return value switch + { + "arize" => CreateObservabilityDestinationResponseDataDiscriminatorType.Arize, + "braintrust" => CreateObservabilityDestinationResponseDataDiscriminatorType.Braintrust, + "clickhouse" => CreateObservabilityDestinationResponseDataDiscriminatorType.Clickhouse, + "datadog" => CreateObservabilityDestinationResponseDataDiscriminatorType.Datadog, + "grafana" => CreateObservabilityDestinationResponseDataDiscriminatorType.Grafana, + "langfuse" => CreateObservabilityDestinationResponseDataDiscriminatorType.Langfuse, + "langsmith" => CreateObservabilityDestinationResponseDataDiscriminatorType.Langsmith, + "newrelic" => CreateObservabilityDestinationResponseDataDiscriminatorType.Newrelic, + "opik" => CreateObservabilityDestinationResponseDataDiscriminatorType.Opik, + "otel-collector" => CreateObservabilityDestinationResponseDataDiscriminatorType.OtelCollector, + "posthog" => CreateObservabilityDestinationResponseDataDiscriminatorType.Posthog, + "ramp" => CreateObservabilityDestinationResponseDataDiscriminatorType.Ramp, + "s3" => CreateObservabilityDestinationResponseDataDiscriminatorType.S3, + "sentry" => CreateObservabilityDestinationResponseDataDiscriminatorType.Sentry, + "snowflake" => CreateObservabilityDestinationResponseDataDiscriminatorType.Snowflake, + "weave" => CreateObservabilityDestinationResponseDataDiscriminatorType.Weave, + "webhook" => CreateObservabilityDestinationResponseDataDiscriminatorType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.Json.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.Json.g.cs index 830c1cb..3f4a465 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityGrafanaDestinationConfigHeaders + public sealed partial class CreateObservabilityDestinationResponseDataVariant1 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders; + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders? FromJson( + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityGrafanaDestinationConfigHeaders; + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.g.cs new file mode 100644 index 0000000..c05b34c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// arize variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant1 + { + /// + /// Discriminator value: arize + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant1TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: arize + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant1( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant1Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.Json.g.cs new file mode 100644 index 0000000..12b51a3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant10 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.g.cs new file mode 100644 index 0000000..7be15cf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// otel-collector variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant10 + { + /// + /// Discriminator value: otel-collector + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant10TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: otel-collector + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant10( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant10Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10Type.g.cs new file mode 100644 index 0000000..885a8c4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant10Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: otel-collector + /// + public enum CreateObservabilityDestinationResponseDataVariant10Type + { + /// + /// otel-collector + /// + OtelCollector, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant10TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant10Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant10Type.OtelCollector => "otel-collector", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant10Type? ToEnum(string value) + { + return value switch + { + "otel-collector" => CreateObservabilityDestinationResponseDataVariant10Type.OtelCollector, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.Json.g.cs new file mode 100644 index 0000000..c52a514 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant11 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.g.cs new file mode 100644 index 0000000..89995f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// posthog variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant11 + { + /// + /// Discriminator value: posthog + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant11TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: posthog + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant11( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant11Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant11() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11Type.g.cs new file mode 100644 index 0000000..8dc3b68 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant11Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: posthog + /// + public enum CreateObservabilityDestinationResponseDataVariant11Type + { + /// + /// posthog + /// + Posthog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant11TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant11Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant11Type.Posthog => "posthog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant11Type? ToEnum(string value) + { + return value switch + { + "posthog" => CreateObservabilityDestinationResponseDataVariant11Type.Posthog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.Json.g.cs new file mode 100644 index 0000000..d3a23d0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant12 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.g.cs new file mode 100644 index 0000000..eaaf148 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// ramp variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant12 + { + /// + /// Discriminator value: ramp + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant12TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: ramp + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant12( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant12Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant12() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12Type.g.cs new file mode 100644 index 0000000..477f6aa --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant12Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: ramp + /// + public enum CreateObservabilityDestinationResponseDataVariant12Type + { + /// + /// ramp + /// + Ramp, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant12TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant12Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant12Type.Ramp => "ramp", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant12Type? ToEnum(string value) + { + return value switch + { + "ramp" => CreateObservabilityDestinationResponseDataVariant12Type.Ramp, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.Json.g.cs new file mode 100644 index 0000000..0f1effd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant13 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.g.cs new file mode 100644 index 0000000..d97abab --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// s3 variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant13 + { + /// + /// Discriminator value: s3 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant13TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: s3 + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant13( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant13Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant13() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13Type.g.cs new file mode 100644 index 0000000..880bc5d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant13Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: s3 + /// + public enum CreateObservabilityDestinationResponseDataVariant13Type + { + /// + /// s3 + /// + S3, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant13TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant13Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant13Type.S3 => "s3", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant13Type? ToEnum(string value) + { + return value switch + { + "s3" => CreateObservabilityDestinationResponseDataVariant13Type.S3, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.Json.g.cs new file mode 100644 index 0000000..cf31f9e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant14 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.g.cs new file mode 100644 index 0000000..d7dc94f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// sentry variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant14 + { + /// + /// Discriminator value: sentry + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant14TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: sentry + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant14( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant14Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant14() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14Type.g.cs new file mode 100644 index 0000000..61846d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant14Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: sentry + /// + public enum CreateObservabilityDestinationResponseDataVariant14Type + { + /// + /// sentry + /// + Sentry, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant14TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant14Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant14Type.Sentry => "sentry", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant14Type? ToEnum(string value) + { + return value switch + { + "sentry" => CreateObservabilityDestinationResponseDataVariant14Type.Sentry, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.Json.g.cs new file mode 100644 index 0000000..3251dd6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant15 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.g.cs new file mode 100644 index 0000000..a39bd85 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// snowflake variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant15 + { + /// + /// Discriminator value: snowflake + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant15TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: snowflake + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant15( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant15Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant15() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15Type.g.cs new file mode 100644 index 0000000..1e0702d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant15Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: snowflake + /// + public enum CreateObservabilityDestinationResponseDataVariant15Type + { + /// + /// snowflake + /// + Snowflake, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant15TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant15Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant15Type.Snowflake => "snowflake", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant15Type? ToEnum(string value) + { + return value switch + { + "snowflake" => CreateObservabilityDestinationResponseDataVariant15Type.Snowflake, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.Json.g.cs new file mode 100644 index 0000000..44498f8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant16 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.g.cs new file mode 100644 index 0000000..66c1193 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// weave variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant16 + { + /// + /// Discriminator value: weave + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant16TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: weave + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant16( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant16Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant16() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16Type.g.cs new file mode 100644 index 0000000..23801f2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant16Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: weave + /// + public enum CreateObservabilityDestinationResponseDataVariant16Type + { + /// + /// weave + /// + Weave, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant16TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant16Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant16Type.Weave => "weave", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant16Type? ToEnum(string value) + { + return value switch + { + "weave" => CreateObservabilityDestinationResponseDataVariant16Type.Weave, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.Json.g.cs new file mode 100644 index 0000000..88ebbf5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant17 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.g.cs new file mode 100644 index 0000000..045f797 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// webhook variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant17 + { + /// + /// Discriminator value: webhook + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant17TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: webhook + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant17( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant17Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant17() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17Type.g.cs new file mode 100644 index 0000000..83a2255 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant17Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: webhook + /// + public enum CreateObservabilityDestinationResponseDataVariant17Type + { + /// + /// webhook + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant17TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant17Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant17Type.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant17Type? ToEnum(string value) + { + return value switch + { + "webhook" => CreateObservabilityDestinationResponseDataVariant17Type.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1Type.g.cs new file mode 100644 index 0000000..e138f12 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: arize + /// + public enum CreateObservabilityDestinationResponseDataVariant1Type + { + /// + /// arize + /// + Arize, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant1Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant1Type.Arize => "arize", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant1Type? ToEnum(string value) + { + return value switch + { + "arize" => CreateObservabilityDestinationResponseDataVariant1Type.Arize, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.Json.g.cs new file mode 100644 index 0000000..6331383 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.g.cs new file mode 100644 index 0000000..f757f10 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// braintrust variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant2 + { + /// + /// Discriminator value: braintrust + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant2TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: braintrust + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant2( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant2Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2Type.g.cs new file mode 100644 index 0000000..c1d255f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: braintrust + /// + public enum CreateObservabilityDestinationResponseDataVariant2Type + { + /// + /// braintrust + /// + Braintrust, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant2Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant2Type.Braintrust => "braintrust", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant2Type? ToEnum(string value) + { + return value switch + { + "braintrust" => CreateObservabilityDestinationResponseDataVariant2Type.Braintrust, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.Json.g.cs new file mode 100644 index 0000000..e3dc87b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.g.cs new file mode 100644 index 0000000..9b0bf31 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// clickhouse variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant3 + { + /// + /// Discriminator value: clickhouse + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant3TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: clickhouse + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant3( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant3Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3Type.g.cs new file mode 100644 index 0000000..077bf96 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant3Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: clickhouse + /// + public enum CreateObservabilityDestinationResponseDataVariant3Type + { + /// + /// clickhouse + /// + Clickhouse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant3TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant3Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant3Type.Clickhouse => "clickhouse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant3Type? ToEnum(string value) + { + return value switch + { + "clickhouse" => CreateObservabilityDestinationResponseDataVariant3Type.Clickhouse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.Json.g.cs new file mode 100644 index 0000000..52fe93f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.g.cs new file mode 100644 index 0000000..a891f9b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// datadog variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant4 + { + /// + /// Discriminator value: datadog + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant4TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: datadog + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant4( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant4Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4Type.g.cs new file mode 100644 index 0000000..b8310e0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant4Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: datadog + /// + public enum CreateObservabilityDestinationResponseDataVariant4Type + { + /// + /// datadog + /// + Datadog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant4TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant4Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant4Type.Datadog => "datadog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant4Type? ToEnum(string value) + { + return value switch + { + "datadog" => CreateObservabilityDestinationResponseDataVariant4Type.Datadog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.Json.g.cs new file mode 100644 index 0000000..b99f2c2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.g.cs new file mode 100644 index 0000000..8306099 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// grafana variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant5 + { + /// + /// Discriminator value: grafana + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant5TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: grafana + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant5( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant5Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5Type.g.cs new file mode 100644 index 0000000..499876a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant5Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: grafana + /// + public enum CreateObservabilityDestinationResponseDataVariant5Type + { + /// + /// grafana + /// + Grafana, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant5TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant5Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant5Type.Grafana => "grafana", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant5Type? ToEnum(string value) + { + return value switch + { + "grafana" => CreateObservabilityDestinationResponseDataVariant5Type.Grafana, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.Json.g.cs new file mode 100644 index 0000000..364f9a3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant6 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.g.cs new file mode 100644 index 0000000..57011d5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langfuse variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant6 + { + /// + /// Discriminator value: langfuse + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant6TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: langfuse + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant6( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant6Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6Type.g.cs new file mode 100644 index 0000000..a112882 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant6Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langfuse + /// + public enum CreateObservabilityDestinationResponseDataVariant6Type + { + /// + /// langfuse + /// + Langfuse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant6TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant6Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant6Type.Langfuse => "langfuse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant6Type? ToEnum(string value) + { + return value switch + { + "langfuse" => CreateObservabilityDestinationResponseDataVariant6Type.Langfuse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.Json.g.cs new file mode 100644 index 0000000..491d631 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant7 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.g.cs new file mode 100644 index 0000000..f7729af --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langsmith variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant7 + { + /// + /// Discriminator value: langsmith + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant7TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: langsmith + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant7( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant7Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7Type.g.cs new file mode 100644 index 0000000..aa9abb3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant7Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langsmith + /// + public enum CreateObservabilityDestinationResponseDataVariant7Type + { + /// + /// langsmith + /// + Langsmith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant7TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant7Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant7Type.Langsmith => "langsmith", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant7Type? ToEnum(string value) + { + return value switch + { + "langsmith" => CreateObservabilityDestinationResponseDataVariant7Type.Langsmith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.Json.g.cs new file mode 100644 index 0000000..c8a27a6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant8 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.g.cs new file mode 100644 index 0000000..fd04ca6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// newrelic variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant8 + { + /// + /// Discriminator value: newrelic + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant8TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: newrelic + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant8( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant8Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant8() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8Type.g.cs new file mode 100644 index 0000000..a4b9032 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant8Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: newrelic + /// + public enum CreateObservabilityDestinationResponseDataVariant8Type + { + /// + /// newrelic + /// + Newrelic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant8TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant8Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant8Type.Newrelic => "newrelic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant8Type? ToEnum(string value) + { + return value switch + { + "newrelic" => CreateObservabilityDestinationResponseDataVariant8Type.Newrelic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.Json.g.cs new file mode 100644 index 0000000..6d951e6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class CreateObservabilityDestinationResponseDataVariant9 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9), + jsonSerializerContext) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.g.cs new file mode 100644 index 0000000..5c9a7d7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// opik variant + /// + public sealed partial class CreateObservabilityDestinationResponseDataVariant9 + { + /// + /// Discriminator value: opik + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.CreateObservabilityDestinationResponseDataVariant9TypeJsonConverter))] + public global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: opik + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public CreateObservabilityDestinationResponseDataVariant9( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.CreateObservabilityDestinationResponseDataVariant9Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public CreateObservabilityDestinationResponseDataVariant9() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9Type.g.cs new file mode 100644 index 0000000..30bdad9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.CreateObservabilityDestinationResponseDataVariant9Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: opik + /// + public enum CreateObservabilityDestinationResponseDataVariant9Type + { + /// + /// opik + /// + Opik, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class CreateObservabilityDestinationResponseDataVariant9TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this CreateObservabilityDestinationResponseDataVariant9Type value) + { + return value switch + { + CreateObservabilityDestinationResponseDataVariant9Type.Opik => "opik", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static CreateObservabilityDestinationResponseDataVariant9Type? ToEnum(string value) + { + return value switch + { + "opik" => CreateObservabilityDestinationResponseDataVariant9Type.Opik, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.Json.g.cs index 8afe71f..8bdced1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityWeaveDestinationConfig + public sealed partial class DeleteBYOKKeyResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityWeaveDestinationConfig? FromJson( + public static global::OpenRouter.DeleteBYOKKeyResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityWeaveDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityWeaveDestinationConfig; + typeof(global::OpenRouter.DeleteBYOKKeyResponse), + jsonSerializerContext) as global::OpenRouter.DeleteBYOKKeyResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityWeaveDestinationConfig? FromJson( + public static global::OpenRouter.DeleteBYOKKeyResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityWeaveDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWeaveDestinationConfig; + typeof(global::OpenRouter.DeleteBYOKKeyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.DeleteBYOKKeyResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.g.cs new file mode 100644 index 0000000..97fcb07 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteBYOKKeyResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class DeleteBYOKKeyResponse + { + /// + /// Confirmation that the BYOK credential was deleted. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Confirmation that the BYOK credential was deleted. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteBYOKKeyResponse( + bool deleted) + { + this.Deleted = deleted; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteBYOKKeyResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.Json.g.cs index 64748ab..be4db6a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityNewrelicDestinationConfig + public sealed partial class DeleteObservabilityDestinationResponse { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityNewrelicDestinationConfig? FromJson( + public static global::OpenRouter.DeleteObservabilityDestinationResponse? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityNewrelicDestinationConfig; + typeof(global::OpenRouter.DeleteObservabilityDestinationResponse), + jsonSerializerContext) as global::OpenRouter.DeleteObservabilityDestinationResponse; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityNewrelicDestinationConfig? FromJson( + public static global::OpenRouter.DeleteObservabilityDestinationResponse? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityNewrelicDestinationConfig; + typeof(global::OpenRouter.DeleteObservabilityDestinationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.DeleteObservabilityDestinationResponse; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.g.cs new file mode 100644 index 0000000..9616ca7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.DeleteObservabilityDestinationResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class DeleteObservabilityDestinationResponse + { + /// + /// Always `true` on success. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("deleted")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Deleted { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Always `true` on success. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public DeleteObservabilityDestinationResponse( + bool deleted) + { + this.Deleted = deleted; + } + + /// + /// Initializes a new instance of the class. + /// + public DeleteObservabilityDestinationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs index d6929cc..b8e8bd5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant1.g.cs @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant1 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant1( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs index 0266166..c5839f7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant10 { /// - /// + /// Discriminator value: otel-collector /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityOtelCollectorDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant10TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant10 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityOtelCollectorDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant10 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: otel-collector + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant10 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant10( - global::OpenRouter.ObservabilityOtelCollectorDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant10( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityOtelCollectorDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant10Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10Type.g.cs new file mode 100644 index 0000000..ae1fa04 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant10Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: otel-collector + /// + public enum GetObservabilityDestinationResponseDataVariant10Type + { + /// + /// otel-collector + /// + OtelCollector, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant10TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant10Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant10Type.OtelCollector => "otel-collector", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant10Type? ToEnum(string value) + { + return value switch + { + "otel-collector" => GetObservabilityDestinationResponseDataVariant10Type.OtelCollector, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs index c847b5c..ce7c110 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant11 { /// - /// + /// Discriminator value: posthog /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityPosthogDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant11TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant11 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityPosthogDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant11 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: posthog + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant11 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant11( - global::OpenRouter.ObservabilityPosthogDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant11( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityPosthogDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant11Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11Type.g.cs new file mode 100644 index 0000000..ce52552 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant11Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: posthog + /// + public enum GetObservabilityDestinationResponseDataVariant11Type + { + /// + /// posthog + /// + Posthog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant11TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant11Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant11Type.Posthog => "posthog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant11Type? ToEnum(string value) + { + return value switch + { + "posthog" => GetObservabilityDestinationResponseDataVariant11Type.Posthog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs index 345a5a7..3856c38 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant12 { /// - /// + /// Discriminator value: ramp /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityRampDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant12TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant12 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityRampDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant12 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: ramp + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant12 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant12( - global::OpenRouter.ObservabilityRampDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant12( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityRampDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant12Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12Type.g.cs new file mode 100644 index 0000000..7308267 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant12Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: ramp + /// + public enum GetObservabilityDestinationResponseDataVariant12Type + { + /// + /// ramp + /// + Ramp, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant12TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant12Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant12Type.Ramp => "ramp", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant12Type? ToEnum(string value) + { + return value switch + { + "ramp" => GetObservabilityDestinationResponseDataVariant12Type.Ramp, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs index e965cee..0d76c0a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant13 { /// - /// + /// Discriminator value: s3 /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityS3DestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant13TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant13 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityS3DestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant13 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: s3 + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant13 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant13( - global::OpenRouter.ObservabilityS3DestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant13( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityS3DestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant13Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13Type.g.cs similarity index 56% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13Type.g.cs index 46afe8a..029f26e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant13Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: s3 /// - public enum ObservabilityS3DestinationType + public enum GetObservabilityDestinationResponseDataVariant13Type { /// - /// + /// s3 /// S3, } @@ -17,27 +17,27 @@ public enum ObservabilityS3DestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityS3DestinationTypeExtensions + public static class GetObservabilityDestinationResponseDataVariant13TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityS3DestinationType value) + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant13Type value) { return value switch { - ObservabilityS3DestinationType.S3 => "s3", + GetObservabilityDestinationResponseDataVariant13Type.S3 => "s3", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityS3DestinationType? ToEnum(string value) + public static GetObservabilityDestinationResponseDataVariant13Type? ToEnum(string value) { return value switch { - "s3" => ObservabilityS3DestinationType.S3, + "s3" => GetObservabilityDestinationResponseDataVariant13Type.S3, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs index f735676..9fea498 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant14 { /// - /// + /// Discriminator value: sentry /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilitySentryDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant14TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant14 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilitySentryDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant14 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: sentry + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant14 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant14( - global::OpenRouter.ObservabilitySentryDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant14( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilitySentryDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant14Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14Type.g.cs new file mode 100644 index 0000000..fc3d7f9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant14Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: sentry + /// + public enum GetObservabilityDestinationResponseDataVariant14Type + { + /// + /// sentry + /// + Sentry, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant14TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant14Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant14Type.Sentry => "sentry", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant14Type? ToEnum(string value) + { + return value switch + { + "sentry" => GetObservabilityDestinationResponseDataVariant14Type.Sentry, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs index afcfb29..e7498fc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant15 { /// - /// + /// Discriminator value: snowflake /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilitySnowflakeDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant15TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant15 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilitySnowflakeDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant15 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: snowflake + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant15 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant15( - global::OpenRouter.ObservabilitySnowflakeDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant15( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilitySnowflakeDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant15Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15Type.g.cs new file mode 100644 index 0000000..2fa51e5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant15Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: snowflake + /// + public enum GetObservabilityDestinationResponseDataVariant15Type + { + /// + /// snowflake + /// + Snowflake, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant15TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant15Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant15Type.Snowflake => "snowflake", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant15Type? ToEnum(string value) + { + return value switch + { + "snowflake" => GetObservabilityDestinationResponseDataVariant15Type.Snowflake, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs index a3384e1..6d574fb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant16 { /// - /// + /// Discriminator value: weave /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityWeaveDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant16TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant16 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityWeaveDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant16 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: weave + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant16 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant16( - global::OpenRouter.ObservabilityWeaveDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant16( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityWeaveDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant16Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16Type.g.cs new file mode 100644 index 0000000..dcfb2ea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant16Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: weave + /// + public enum GetObservabilityDestinationResponseDataVariant16Type + { + /// + /// weave + /// + Weave, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant16TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant16Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant16Type.Weave => "weave", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant16Type? ToEnum(string value) + { + return value switch + { + "weave" => GetObservabilityDestinationResponseDataVariant16Type.Weave, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs index e3fa6cb..6e3b795 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant17 { /// - /// + /// Discriminator value: webhook /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityWebhookDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant17TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant17 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityWebhookDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant17 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: webhook + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant17 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant17( - global::OpenRouter.ObservabilityWebhookDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant17( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityWebhookDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant17Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17Type.g.cs new file mode 100644 index 0000000..7b08639 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant17Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: webhook + /// + public enum GetObservabilityDestinationResponseDataVariant17Type + { + /// + /// webhook + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant17TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant17Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant17Type.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant17Type? ToEnum(string value) + { + return value switch + { + "webhook" => GetObservabilityDestinationResponseDataVariant17Type.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs index ec07529..2136f77 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant2.g.cs @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant2( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs index 943202d..e4075d0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant3.g.cs @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant3 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant3 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant3( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs index ff469f3..04add16 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant4.g.cs @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant4 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant4( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs index 16efcd9..e997334 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant5 { /// - /// + /// Discriminator value: grafana /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityGrafanaDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant5TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant5 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityGrafanaDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant5 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: grafana + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant5 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant5( - global::OpenRouter.ObservabilityGrafanaDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant5( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityGrafanaDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant5Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5Type.g.cs new file mode 100644 index 0000000..8874049 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant5Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: grafana + /// + public enum GetObservabilityDestinationResponseDataVariant5Type + { + /// + /// grafana + /// + Grafana, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant5TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant5Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant5Type.Grafana => "grafana", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant5Type? ToEnum(string value) + { + return value switch + { + "grafana" => GetObservabilityDestinationResponseDataVariant5Type.Grafana, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs index e7d5978..e687ba7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant6 { /// - /// + /// Discriminator value: langfuse /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityLangfuseDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant6TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant6 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityLangfuseDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant6 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: langfuse + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant6 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant6( - global::OpenRouter.ObservabilityLangfuseDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant6( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityLangfuseDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant6Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6Type.g.cs new file mode 100644 index 0000000..7291f1e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant6Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langfuse + /// + public enum GetObservabilityDestinationResponseDataVariant6Type + { + /// + /// langfuse + /// + Langfuse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant6TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant6Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant6Type.Langfuse => "langfuse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant6Type? ToEnum(string value) + { + return value switch + { + "langfuse" => GetObservabilityDestinationResponseDataVariant6Type.Langfuse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs index e4a64a9..d2f9591 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant7 { /// - /// + /// Discriminator value: langsmith /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityLangsmithDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant7TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant7 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityLangsmithDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant7 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: langsmith + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant7 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant7( - global::OpenRouter.ObservabilityLangsmithDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant7( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityLangsmithDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant7Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7Type.g.cs new file mode 100644 index 0000000..cc9fd2a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant7Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langsmith + /// + public enum GetObservabilityDestinationResponseDataVariant7Type + { + /// + /// langsmith + /// + Langsmith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant7TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant7Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant7Type.Langsmith => "langsmith", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant7Type? ToEnum(string value) + { + return value switch + { + "langsmith" => GetObservabilityDestinationResponseDataVariant7Type.Langsmith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs index bfeb1b0..00de3a2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant8 { /// - /// + /// Discriminator value: newrelic /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityNewrelicDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant8TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant8 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityNewrelicDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant8 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: newrelic + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant8 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant8( - global::OpenRouter.ObservabilityNewrelicDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant8( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityNewrelicDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant8Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8Type.g.cs new file mode 100644 index 0000000..48e0a92 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant8Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: newrelic + /// + public enum GetObservabilityDestinationResponseDataVariant8Type + { + /// + /// newrelic + /// + Newrelic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant8TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant8Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant8Type.Newrelic => "newrelic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant8Type? ToEnum(string value) + { + return value switch + { + "newrelic" => GetObservabilityDestinationResponseDataVariant8Type.Newrelic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs index 6c80c02..6a6ebb3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class GetObservabilityDestinationResponseDataVariant9 { /// - /// + /// Discriminator value: opik /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityOpikDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.GetObservabilityDestinationResponseDataVariant9TypeJsonConverter))] + public global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant9 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityOpikDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant9 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: opik + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class GetObservabilityDestinationResponseDataVariant9 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public GetObservabilityDestinationResponseDataVariant9( - global::OpenRouter.ObservabilityOpikDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public GetObservabilityDestinationResponseDataVariant9( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityOpikDestinationType type, + global::OpenRouter.GetObservabilityDestinationResponseDataVariant9Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9Type.g.cs new file mode 100644 index 0000000..e1916cc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.GetObservabilityDestinationResponseDataVariant9Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: opik + /// + public enum GetObservabilityDestinationResponseDataVariant9Type + { + /// + /// opik + /// + Opik, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class GetObservabilityDestinationResponseDataVariant9TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this GetObservabilityDestinationResponseDataVariant9Type value) + { + return value switch + { + GetObservabilityDestinationResponseDataVariant9Type.Opik => "opik", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static GetObservabilityDestinationResponseDataVariant9Type? ToEnum(string value) + { + return value switch + { + "opik" => GetObservabilityDestinationResponseDataVariant9Type.Opik, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs deleted file mode 100644 index 4879c4a..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs deleted file mode 100644 index 2bee3de..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs deleted file mode 100644 index be6d988..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs index 4fab763..b8f2aa8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant1.g.cs @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant1 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant1 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant1( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs index dcc36f5..447c664 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant10 { /// - /// + /// Discriminator value: otel-collector /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOtelCollectorDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityOtelCollectorDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant10TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant10Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant10 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityOtelCollectorDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant10 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: otel-collector + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant10 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant10( - global::OpenRouter.ObservabilityOtelCollectorDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant10( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityOtelCollectorDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant10Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10Type.g.cs similarity index 57% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10Type.g.cs index 8ef89fc..f2f1875 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant10Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: otel-collector /// - public enum ObservabilityOtelCollectorDestinationType + public enum ObservabilityDestinationVariant10Type { /// - /// + /// otel-collector /// OtelCollector, } @@ -17,27 +17,27 @@ public enum ObservabilityOtelCollectorDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityOtelCollectorDestinationTypeExtensions + public static class ObservabilityDestinationVariant10TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityOtelCollectorDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant10Type value) { return value switch { - ObservabilityOtelCollectorDestinationType.OtelCollector => "otel-collector", + ObservabilityDestinationVariant10Type.OtelCollector => "otel-collector", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityOtelCollectorDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant10Type? ToEnum(string value) { return value switch { - "otel-collector" => ObservabilityOtelCollectorDestinationType.OtelCollector, + "otel-collector" => ObservabilityDestinationVariant10Type.OtelCollector, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs index 64378d2..041c2e4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant11 { /// - /// + /// Discriminator value: posthog /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityPosthogDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityPosthogDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant11TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant11Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant11 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityPosthogDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant11 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: posthog + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant11 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant11( - global::OpenRouter.ObservabilityPosthogDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant11( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityPosthogDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant11Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11Type.g.cs similarity index 59% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11Type.g.cs index eb0c603..9feb8e9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant11Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: posthog /// - public enum ObservabilityPosthogDestinationType + public enum ObservabilityDestinationVariant11Type { /// - /// + /// posthog /// Posthog, } @@ -17,27 +17,27 @@ public enum ObservabilityPosthogDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityPosthogDestinationTypeExtensions + public static class ObservabilityDestinationVariant11TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityPosthogDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant11Type value) { return value switch { - ObservabilityPosthogDestinationType.Posthog => "posthog", + ObservabilityDestinationVariant11Type.Posthog => "posthog", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityPosthogDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant11Type? ToEnum(string value) { return value switch { - "posthog" => ObservabilityPosthogDestinationType.Posthog, + "posthog" => ObservabilityDestinationVariant11Type.Posthog, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs index 90dc0cc..d65dcbc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant12 { /// - /// + /// Discriminator value: ramp /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityRampDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityRampDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant12TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant12Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant12 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityRampDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant12 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: ramp + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant12 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant12( - global::OpenRouter.ObservabilityRampDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant12( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityRampDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant12Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12Type.g.cs similarity index 60% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12Type.g.cs index 134330d..60f3aa3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant12Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: ramp /// - public enum ObservabilityRampDestinationType + public enum ObservabilityDestinationVariant12Type { /// - /// + /// ramp /// Ramp, } @@ -17,27 +17,27 @@ public enum ObservabilityRampDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityRampDestinationTypeExtensions + public static class ObservabilityDestinationVariant12TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityRampDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant12Type value) { return value switch { - ObservabilityRampDestinationType.Ramp => "ramp", + ObservabilityDestinationVariant12Type.Ramp => "ramp", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityRampDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant12Type? ToEnum(string value) { return value switch { - "ramp" => ObservabilityRampDestinationType.Ramp, + "ramp" => ObservabilityDestinationVariant12Type.Ramp, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs index fec7831..f1a0cd3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant13 { /// - /// + /// Discriminator value: s3 /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityS3DestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityS3DestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant13TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant13Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant13 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityS3DestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant13 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: s3 + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant13 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant13( - global::OpenRouter.ObservabilityS3DestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant13( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityS3DestinationType type, + global::OpenRouter.ObservabilityDestinationVariant13Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13Type.g.cs similarity index 61% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13Type.g.cs index 6e9c272..8cfc9af 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant13Type.g.cs @@ -4,40 +4,40 @@ namespace OpenRouter { /// - /// + /// Discriminator value: s3 /// - public enum ObservabilityLangsmithDestinationType + public enum ObservabilityDestinationVariant13Type { /// - /// + /// s3 /// - Langsmith, + S3, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityLangsmithDestinationTypeExtensions + public static class ObservabilityDestinationVariant13TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityLangsmithDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant13Type value) { return value switch { - ObservabilityLangsmithDestinationType.Langsmith => "langsmith", + ObservabilityDestinationVariant13Type.S3 => "s3", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityLangsmithDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant13Type? ToEnum(string value) { return value switch { - "langsmith" => ObservabilityLangsmithDestinationType.Langsmith, + "s3" => ObservabilityDestinationVariant13Type.S3, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs index baf3bac..cfb9e8c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant14 { /// - /// + /// Discriminator value: sentry /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySentryDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilitySentryDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant14TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant14Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant14 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilitySentryDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant14 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: sentry + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant14 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant14( - global::OpenRouter.ObservabilitySentryDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant14( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilitySentryDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant14Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14Type.g.cs similarity index 59% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14Type.g.cs index 2b09d49..a7c12f2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant14Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: sentry /// - public enum ObservabilitySentryDestinationType + public enum ObservabilityDestinationVariant14Type { /// - /// + /// sentry /// Sentry, } @@ -17,27 +17,27 @@ public enum ObservabilitySentryDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilitySentryDestinationTypeExtensions + public static class ObservabilityDestinationVariant14TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilitySentryDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant14Type value) { return value switch { - ObservabilitySentryDestinationType.Sentry => "sentry", + ObservabilityDestinationVariant14Type.Sentry => "sentry", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilitySentryDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant14Type? ToEnum(string value) { return value switch { - "sentry" => ObservabilitySentryDestinationType.Sentry, + "sentry" => ObservabilityDestinationVariant14Type.Sentry, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs index 1999e75..4590a85 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant15 { /// - /// + /// Discriminator value: snowflake /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilitySnowflakeDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilitySnowflakeDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant15TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant15Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant15 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilitySnowflakeDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant15 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: snowflake + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant15 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant15( - global::OpenRouter.ObservabilitySnowflakeDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant15( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilitySnowflakeDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant15Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15Type.g.cs similarity index 63% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15Type.g.cs index 8f5692d..c87c539 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant15Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: snowflake /// - public enum ObservabilitySnowflakeDestinationType + public enum ObservabilityDestinationVariant15Type { /// - /// + /// snowflake /// Snowflake, } @@ -17,27 +17,27 @@ public enum ObservabilitySnowflakeDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilitySnowflakeDestinationTypeExtensions + public static class ObservabilityDestinationVariant15TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilitySnowflakeDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant15Type value) { return value switch { - ObservabilitySnowflakeDestinationType.Snowflake => "snowflake", + ObservabilityDestinationVariant15Type.Snowflake => "snowflake", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilitySnowflakeDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant15Type? ToEnum(string value) { return value switch { - "snowflake" => ObservabilitySnowflakeDestinationType.Snowflake, + "snowflake" => ObservabilityDestinationVariant15Type.Snowflake, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs index a34f821..e896752 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant16 { /// - /// + /// Discriminator value: weave /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWeaveDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityWeaveDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant16TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant16Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant16 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityWeaveDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant16 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: weave + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant16 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant16( - global::OpenRouter.ObservabilityWeaveDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant16( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityWeaveDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant16Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16Type.g.cs similarity index 59% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16Type.g.cs index e3883e7..b453067 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant16Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: weave /// - public enum ObservabilityWeaveDestinationType + public enum ObservabilityDestinationVariant16Type { /// - /// + /// weave /// Weave, } @@ -17,27 +17,27 @@ public enum ObservabilityWeaveDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityWeaveDestinationTypeExtensions + public static class ObservabilityDestinationVariant16TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityWeaveDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant16Type value) { return value switch { - ObservabilityWeaveDestinationType.Weave => "weave", + ObservabilityDestinationVariant16Type.Weave => "weave", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityWeaveDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant16Type? ToEnum(string value) { return value switch { - "weave" => ObservabilityWeaveDestinationType.Weave, + "weave" => ObservabilityDestinationVariant16Type.Weave, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs index decc5d3..243256a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant17 { /// - /// + /// Discriminator value: webhook /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityWebhookDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant17TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant17Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant17 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityWebhookDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant17 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: webhook + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant17 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant17( - global::OpenRouter.ObservabilityWebhookDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant17( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityWebhookDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant17Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17Type.g.cs similarity index 59% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17Type.g.cs index 58b9679..d06846c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant17Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: webhook /// - public enum ObservabilityWebhookDestinationType + public enum ObservabilityDestinationVariant17Type { /// - /// + /// webhook /// Webhook, } @@ -17,27 +17,27 @@ public enum ObservabilityWebhookDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityWebhookDestinationTypeExtensions + public static class ObservabilityDestinationVariant17TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityWebhookDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant17Type value) { return value switch { - ObservabilityWebhookDestinationType.Webhook => "webhook", + ObservabilityDestinationVariant17Type.Webhook => "webhook", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityWebhookDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant17Type? ToEnum(string value) { return value switch { - "webhook" => ObservabilityWebhookDestinationType.Webhook, + "webhook" => ObservabilityDestinationVariant17Type.Webhook, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs index 44f4356..023583a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant2.g.cs @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant2 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant2 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant2( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs index 5add623..8c1b44f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant3.g.cs @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant3 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant3 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant3( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingClickhouseConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs index 8987bb1..bce8212 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant4.g.cs @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant4 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -137,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant4 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant4( - global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs index da0dea8..547a3b5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant5 { /// - /// + /// Discriminator value: grafana /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityGrafanaDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityGrafanaDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant5TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant5Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant5 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityGrafanaDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant5 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: grafana + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant5 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant5( - global::OpenRouter.ObservabilityGrafanaDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant5( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityGrafanaDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant5Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5Type.g.cs similarity index 59% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5Type.g.cs index 13f20e3..a54a109 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant5Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: grafana /// - public enum ObservabilityGrafanaDestinationType + public enum ObservabilityDestinationVariant5Type { /// - /// + /// grafana /// Grafana, } @@ -17,27 +17,27 @@ public enum ObservabilityGrafanaDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityGrafanaDestinationTypeExtensions + public static class ObservabilityDestinationVariant5TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityGrafanaDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant5Type value) { return value switch { - ObservabilityGrafanaDestinationType.Grafana => "grafana", + ObservabilityDestinationVariant5Type.Grafana => "grafana", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityGrafanaDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant5Type? ToEnum(string value) { return value switch { - "grafana" => ObservabilityGrafanaDestinationType.Grafana, + "grafana" => ObservabilityDestinationVariant5Type.Grafana, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs index 9f8ba40..e9ebc47 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant6 { /// - /// + /// Discriminator value: langfuse /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangfuseDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityLangfuseDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant6TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant6Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant6 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityLangfuseDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant6 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: langfuse + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant6 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant6( - global::OpenRouter.ObservabilityLangfuseDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant6( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityLangfuseDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant6Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6Type.g.cs similarity index 63% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6Type.g.cs index 96b359f..41d9dd8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant6Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: langfuse /// - public enum ObservabilityLangfuseDestinationType + public enum ObservabilityDestinationVariant6Type { /// - /// + /// langfuse /// Langfuse, } @@ -17,27 +17,27 @@ public enum ObservabilityLangfuseDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityLangfuseDestinationTypeExtensions + public static class ObservabilityDestinationVariant6TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityLangfuseDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant6Type value) { return value switch { - ObservabilityLangfuseDestinationType.Langfuse => "langfuse", + ObservabilityDestinationVariant6Type.Langfuse => "langfuse", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityLangfuseDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant6Type? ToEnum(string value) { return value switch { - "langfuse" => ObservabilityLangfuseDestinationType.Langfuse, + "langfuse" => ObservabilityDestinationVariant6Type.Langfuse, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs index a0f2219..7ce5a8d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant7 { /// - /// + /// Discriminator value: langsmith /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityLangsmithDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityLangsmithDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant7TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant7Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant7 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityLangsmithDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant7 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: langsmith + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant7 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant7( - global::OpenRouter.ObservabilityLangsmithDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant7( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityLangsmithDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant7Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7Type.g.cs new file mode 100644 index 0000000..c6ac916 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant7Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langsmith + /// + public enum ObservabilityDestinationVariant7Type + { + /// + /// langsmith + /// + Langsmith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ObservabilityDestinationVariant7TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ObservabilityDestinationVariant7Type value) + { + return value switch + { + ObservabilityDestinationVariant7Type.Langsmith => "langsmith", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ObservabilityDestinationVariant7Type? ToEnum(string value) + { + return value switch + { + "langsmith" => ObservabilityDestinationVariant7Type.Langsmith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs index f96d0c3..2807bf3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant8 { /// - /// + /// Discriminator value: newrelic /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityNewrelicDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant8TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant8Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant8 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityNewrelicDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant8 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: newrelic + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant8 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant8( - global::OpenRouter.ObservabilityNewrelicDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant8( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityNewrelicDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant8Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8Type.g.cs similarity index 63% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8Type.g.cs index 3855d06..3f4d4e5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant8Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: newrelic /// - public enum ObservabilityNewrelicDestinationType + public enum ObservabilityDestinationVariant8Type { /// - /// + /// newrelic /// Newrelic, } @@ -17,27 +17,27 @@ public enum ObservabilityNewrelicDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityNewrelicDestinationTypeExtensions + public static class ObservabilityDestinationVariant8TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityNewrelicDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant8Type value) { return value switch { - ObservabilityNewrelicDestinationType.Newrelic => "newrelic", + ObservabilityDestinationVariant8Type.Newrelic => "newrelic", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityNewrelicDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant8Type? ToEnum(string value) { return value switch { - "newrelic" => ObservabilityNewrelicDestinationType.Newrelic, + "newrelic" => ObservabilityDestinationVariant8Type.Newrelic, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs index 3d01593..6a13737 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9.g.cs @@ -9,11 +9,11 @@ namespace OpenRouter public sealed partial class ObservabilityDestinationVariant9 { /// - /// + /// Discriminator value: opik /// [global::System.Text.Json.Serialization.JsonPropertyName("type")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityOpikDestinationTypeJsonConverter))] - public global::OpenRouter.ObservabilityOpikDestinationType Type { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityDestinationVariant9TypeJsonConverter))] + public global::OpenRouter.ObservabilityDestinationVariant9Type Type { get; set; } /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. @@ -26,7 +26,7 @@ public sealed partial class ObservabilityDestinationVariant9 /// [global::System.Text.Json.Serialization.JsonPropertyName("config")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::OpenRouter.ObservabilityOpikDestinationConfig Config { get; set; } + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig Config { get; set; } /// /// ISO timestamp of when the destination was created. @@ -124,7 +124,9 @@ public sealed partial class ObservabilityDestinationVariant9 /// /// ID of the workspace this destination belongs to. /// - /// + /// + /// Discriminator value: opik + /// /// /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. /// @@ -135,7 +137,7 @@ public sealed partial class ObservabilityDestinationVariant9 [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public ObservabilityDestinationVariant9( - global::OpenRouter.ObservabilityOpikDestinationConfig config, + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig config, string createdAt, bool enabled, global::OpenRouter.ObservabilityFilterRulesConfig filterRules, @@ -144,7 +146,7 @@ public ObservabilityDestinationVariant9( double samplingRate, string updatedAt, global::System.Guid workspaceId, - global::OpenRouter.ObservabilityOpikDestinationType type, + global::OpenRouter.ObservabilityDestinationVariant9Type type, global::System.Collections.Generic.IList? apiKeyHashes, string? name) { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9Type.g.cs similarity index 60% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationType.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9Type.g.cs index 51a1d49..b24d826 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationType.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationVariant9Type.g.cs @@ -4,12 +4,12 @@ namespace OpenRouter { /// - /// + /// Discriminator value: opik /// - public enum ObservabilityOpikDestinationType + public enum ObservabilityDestinationVariant9Type { /// - /// + /// opik /// Opik, } @@ -17,27 +17,27 @@ public enum ObservabilityOpikDestinationType /// /// Enum extensions to do fast conversions without the reflection. /// - public static class ObservabilityOpikDestinationTypeExtensions + public static class ObservabilityDestinationVariant9TypeExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this ObservabilityOpikDestinationType value) + public static string ToValueString(this ObservabilityDestinationVariant9Type value) { return value switch { - ObservabilityOpikDestinationType.Opik => "opik", + ObservabilityDestinationVariant9Type.Opik => "opik", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static ObservabilityOpikDestinationType? ToEnum(string value) + public static ObservabilityDestinationVariant9Type? ToEnum(string value) { return value switch { - "opik" => ObservabilityOpikDestinationType.Opik, + "opik" => ObservabilityDestinationVariant9Type.Opik, _ => null, }; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs deleted file mode 100644 index c4dab81..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilityGrafanaDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs deleted file mode 100644 index dfa93e5..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilityLangfuseDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs deleted file mode 100644 index 96ae927..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityLangsmithDestinationConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityLangsmithDestinationConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityLangsmithDestinationConfig; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityLangsmithDestinationConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangsmithDestinationConfig; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs deleted file mode 100644 index c7ad0e5..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityLangsmithDestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangsmithDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs deleted file mode 100644 index 847c0a4..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilityLangsmithDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs deleted file mode 100644 index b352ac6..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityNewrelicDestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityNewrelicDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs deleted file mode 100644 index e42df45..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilityNewrelicDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs deleted file mode 100644 index 837cda3..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfigRegion.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Default Value: us - /// - public enum ObservabilityNewrelicDestinationConfigRegion - { - /// - /// - /// - Eu, - /// - /// - /// - Us, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ObservabilityNewrelicDestinationConfigRegionExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ObservabilityNewrelicDestinationConfigRegion value) - { - return value switch - { - ObservabilityNewrelicDestinationConfigRegion.Eu => "eu", - ObservabilityNewrelicDestinationConfigRegion.Us => "us", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ObservabilityNewrelicDestinationConfigRegion? ToEnum(string value) - { - return value switch - { - "eu" => ObservabilityNewrelicDestinationConfigRegion.Eu, - "us" => ObservabilityNewrelicDestinationConfigRegion.Us, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs deleted file mode 100644 index 114adbc..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityOpikDestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityOpikDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityOpikDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityOpikDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityOpikDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityOpikDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOpikDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs deleted file mode 100644 index eaa099e..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityOtelCollectorDestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityOtelCollectorDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs deleted file mode 100644 index d3346bd..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilityPosthogDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs deleted file mode 100644 index 6df6c70..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityRampDestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityRampDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityRampDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityRampDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityRampDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityRampDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityRampDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs deleted file mode 100644 index b4d293d..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilityS3DestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilityS3DestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilityS3DestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityS3DestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilityS3DestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilityS3DestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityS3DestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs deleted file mode 100644 index 378e42a..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilitySentryDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs deleted file mode 100644 index 8ea1c3a..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilitySnowflakeDestinationConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilitySnowflakeDestinationConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilitySnowflakeDestinationConfig; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilitySnowflakeDestinationConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySnowflakeDestinationConfig; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs deleted file mode 100644 index 32ea515..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public sealed partial class ObservabilitySnowflakeDestinationConfigHeaders - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySnowflakeDestinationConfigHeaders; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs deleted file mode 100644 index 9b37780..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilitySnowflakeDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs deleted file mode 100644 index a942261..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.g.cs +++ /dev/null @@ -1,19 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Custom HTTP headers to include in requests to this destination. - /// - public sealed partial class ObservabilityWeaveDestinationConfigHeaders - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs deleted file mode 100644 index 01e5ea6..0000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfigMethod.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Default Value: POST - /// - public enum ObservabilityWebhookDestinationConfigMethod - { - /// - /// - /// - Post, - /// - /// - /// - Put, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ObservabilityWebhookDestinationConfigMethodExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ObservabilityWebhookDestinationConfigMethod value) - { - return value switch - { - ObservabilityWebhookDestinationConfigMethod.Post => "POST", - ObservabilityWebhookDestinationConfigMethod.Put => "PUT", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ObservabilityWebhookDestinationConfigMethod? ToEnum(string value) - { - return value switch - { - "POST" => ObservabilityWebhookDestinationConfigMethod.Post, - "PUT" => ObservabilityWebhookDestinationConfigMethod.Put, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.Json.g.cs new file mode 100644 index 0000000..84a6ff0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateBYOKKeyRequest + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateBYOKKeyRequest? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateBYOKKeyRequest), + jsonSerializerContext) as global::OpenRouter.UpdateBYOKKeyRequest; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateBYOKKeyRequest? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateBYOKKeyRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateBYOKKeyRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.g.cs new file mode 100644 index 0000000..fbb6840 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyRequest.g.cs @@ -0,0 +1,101 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateBYOKKeyRequest + { + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_user_ids")] + public global::System.Collections.Generic.IList? AllowedUserIds { get; set; } + + /// + /// Whether this credential is disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + public bool? Disabled { get; set; } + + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_fallback")] + public bool? IsFallback { get; set; } + + /// + /// A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("key")] + public string? Key { get; set; } + + /// + /// Optional human-readable name for the credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Whether this credential is disabled. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses. + /// + /// + /// Optional human-readable name for the credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateBYOKKeyRequest( + global::System.Collections.Generic.IList? allowedModels, + global::System.Collections.Generic.IList? allowedUserIds, + bool? disabled, + bool? isFallback, + string? key, + string? name) + { + this.AllowedModels = allowedModels; + this.AllowedUserIds = allowedUserIds; + this.Disabled = disabled; + this.IsFallback = isFallback; + this.Key = key; + this.Name = name; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateBYOKKeyRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.Json.g.cs new file mode 100644 index 0000000..a3a7c15 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateBYOKKeyResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateBYOKKeyResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateBYOKKeyResponse), + jsonSerializerContext) as global::OpenRouter.UpdateBYOKKeyResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateBYOKKeyResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateBYOKKeyResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateBYOKKeyResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.g.cs new file mode 100644 index 0000000..8a1ad58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateBYOKKeyResponse.g.cs @@ -0,0 +1,47 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateBYOKKeyResponse + { + /// + /// The updated BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateByokKeyResponseData Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The updated BYOK credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateBYOKKeyResponse( + global::OpenRouter.UpdateByokKeyResponseData data) + { + this.Data = data ?? throw new global::System.ArgumentNullException(nameof(data)); + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateBYOKKeyResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.Json.g.cs new file mode 100644 index 0000000..9ace4fe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateByokKeyResponseData + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateByokKeyResponseData? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateByokKeyResponseData), + jsonSerializerContext) as global::OpenRouter.UpdateByokKeyResponseData; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateByokKeyResponseData? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateByokKeyResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateByokKeyResponseData; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.g.cs new file mode 100644 index 0000000..da9cb60 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateByokKeyResponseData.g.cs @@ -0,0 +1,176 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// The updated BYOK credential. + /// + public sealed partial class UpdateByokKeyResponseData + { + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_api_key_hashes")] + public global::System.Collections.Generic.IList? AllowedApiKeyHashes { get; set; } + + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] + public global::System.Collections.Generic.IList? AllowedModels { get; set; } + + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("allowed_user_ids")] + public global::System.Collections.Generic.IList? AllowedUserIds { get; set; } + + /// + /// ISO timestamp of when the credential was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this credential is currently disabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("disabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Disabled { get; set; } + + /// + /// Stable public identifier for this BYOK credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("is_fallback")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool IsFallback { get; set; } + + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("label")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Label { get; set; } + + /// + /// Optional human-readable name for the credential. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("provider")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.BYOKProviderSlugJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.BYOKProviderSlug Provider { get; set; } + + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sort_order")] + [global::System.Text.Json.Serialization.JsonRequired] + public required int SortOrder { get; set; } + + /// + /// ID of the workspace this credential belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// ISO timestamp of when the credential was created. + /// + /// + /// Whether this credential is currently disabled. + /// + /// + /// Stable public identifier for this BYOK credential. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Position within the provider — credentials are tried in ascending sort order. + /// + /// + /// ID of the workspace this credential belongs to. + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction. + /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Optional human-readable name for the credential. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateByokKeyResponseData( + string createdAt, + bool disabled, + global::System.Guid id, + bool isFallback, + string label, + global::OpenRouter.BYOKProviderSlug provider, + int sortOrder, + global::System.Guid workspaceId, + global::System.Collections.Generic.IList? allowedApiKeyHashes, + global::System.Collections.Generic.IList? allowedModels, + global::System.Collections.Generic.IList? allowedUserIds, + string? name) + { + this.AllowedApiKeyHashes = allowedApiKeyHashes; + this.AllowedModels = allowedModels; + this.AllowedUserIds = allowedUserIds; + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Disabled = disabled; + this.Id = id; + this.IsFallback = isFallback; + this.Label = label ?? throw new global::System.ArgumentNullException(nameof(label)); + this.Name = name; + this.Provider = provider; + this.SortOrder = sortOrder; + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateByokKeyResponseData() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.Json.g.cs index 3ca277e..d3d6865 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityGrafanaDestinationConfig + public sealed partial class UpdateObservabilityDestinationRequest { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityGrafanaDestinationConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequest? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityGrafanaDestinationConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequest), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequest; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityGrafanaDestinationConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequest? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityGrafanaDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityGrafanaDestinationConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequest; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.g.cs new file mode 100644 index 0000000..853fe8f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequest.g.cs @@ -0,0 +1,112 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateObservabilityDestinationRequest + { + /// + /// Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + public object? Config { get; set; } + + /// + /// Whether the destination is enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// Optional structured filter rules. `null` clears the rules. Omitting keeps the current value. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? FilterRules { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + public bool? PrivacyMode { get; set; } + + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + public double? SamplingRate { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided. + /// + /// + /// Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value. + /// + /// + /// Whether the destination is enabled. + /// + /// + /// Optional structured filter rules. `null` clears the rules. Omitting keeps the current value. + /// + /// + /// Human-readable name for the destination. + /// + /// + /// When true, request/response bodies are not forwarded — only metadata. + /// + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationRequest( + global::System.Collections.Generic.IList? apiKeyHashes, + object? config, + bool? enabled, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? filterRules, + string? name, + bool? privacyMode, + double? samplingRate) + { + this.ApiKeyHashes = apiKeyHashes; + this.Config = config; + this.Enabled = enabled; + this.FilterRules = filterRules; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationRequest() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.Json.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.Json.g.cs index 8c2a354..4d80bbd 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilitySentryDestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationRequestConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilitySentryDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilitySentryDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilitySentryDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestConfig; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilitySentryDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilitySentryDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilitySentryDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestConfig; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.g.cs new file mode 100644 index 0000000..7054a54 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value. + /// + public sealed partial class UpdateObservabilityDestinationRequestConfig + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.Json.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.Json.g.cs index 159a720..492dff1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityPosthogDestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationRequestConfig2 { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestConfig2? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestConfig2), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestConfig2; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestConfig2? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityPosthogDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestConfig2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestConfig2; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.g.cs similarity index 76% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.g.cs index ab7224b..2b9881d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestConfig2.g.cs @@ -4,9 +4,9 @@ namespace OpenRouter { /// - /// Custom HTTP headers to include in requests to this destination. + /// Any type /// - public sealed partial class ObservabilityS3DestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationRequestConfig2 { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.Json.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.Json.g.cs index b7f3751..92ea17f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityLangfuseDestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationRequestFilterRules { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityLangfuseDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs new file mode 100644 index 0000000..10bd57b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRules.g.cs @@ -0,0 +1,56 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Optional structured filter rules. `null` clears the rules. Omitting keeps the current value. + /// + public sealed partial class UpdateObservabilityDestinationRequestFilterRules + { + /// + /// Default Value: true + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("groups")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Groups { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Default Value: true + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationRequestFilterRules( + global::System.Collections.Generic.IList groups, + bool? enabled) + { + this.Enabled = enabled; + this.Groups = groups ?? throw new global::System.ArgumentNullException(nameof(groups)); + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationRequestFilterRules() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs index 180c5ed..8fe697b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfig + public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItems { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingDatadogConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItems; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs new file mode 100644 index 0000000..aa8f49c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItems.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItems + { + /// + /// Default Value: and + /// + [global::System.Text.Json.Serialization.JsonPropertyName("logic")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? Logic { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Collections.Generic.IList Rules { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// Default Value: and + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationRequestFilterRulesGroupsItems( + global::System.Collections.Generic.IList rules, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? logic) + { + this.Logic = logic; + this.Rules = rules ?? throw new global::System.ArgumentNullException(nameof(rules)); + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationRequestFilterRulesGroupsItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs new file mode 100644 index 0000000..f8fc291 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: and + /// + public enum UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic + { + /// + /// + /// + And, + /// + /// + /// + Or, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogicExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic value) + { + return value switch + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.And => "and", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.Or => "or", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic? ToEnum(string value) + { + return value switch + { + "and" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.And, + "or" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic.Or, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs similarity index 78% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs index 1d9af56..b82eb32 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders + public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs new file mode 100644 index 0000000..a6cad2c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems.g.cs @@ -0,0 +1,67 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("field")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField Field { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("operator")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator Operator { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("value")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? Value { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems( + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField field, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator @operator, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? value) + { + this.Field = field; + this.Operator = @operator; + this.Value = value; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs new file mode 100644 index 0000000..79fd37d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.g.cs @@ -0,0 +1,111 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField + { + /// + /// + /// + ApiKeyName, + /// + /// + /// + CompletionTokens, + /// + /// + /// + FinishReason, + /// + /// + /// + Input, + /// + /// + /// + Model, + /// + /// + /// + Output, + /// + /// + /// + PromptTokens, + /// + /// + /// + Provider, + /// + /// + /// + SessionId, + /// + /// + /// + TotalCost, + /// + /// + /// + TotalTokens, + /// + /// + /// + UserId, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsFieldExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField value) + { + return value switch + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.ApiKeyName => "api_key_name", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.CompletionTokens => "completion_tokens", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.FinishReason => "finish_reason", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Input => "input", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Model => "model", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Output => "output", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.PromptTokens => "prompt_tokens", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Provider => "provider", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.SessionId => "session_id", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalCost => "total_cost", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalTokens => "total_tokens", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.UserId => "user_id", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField? ToEnum(string value) + { + return value switch + { + "api_key_name" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.ApiKeyName, + "completion_tokens" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.CompletionTokens, + "finish_reason" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.FinishReason, + "input" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Input, + "model" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Model, + "output" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Output, + "prompt_tokens" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.PromptTokens, + "provider" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.Provider, + "session_id" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.SessionId, + "total_cost" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalCost, + "total_tokens" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.TotalTokens, + "user_id" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField.UserId, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs new file mode 100644 index 0000000..55e38dd --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.g.cs @@ -0,0 +1,117 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator + { + /// + /// + /// + Contains, + /// + /// + /// + EndsWith, + /// + /// + /// + Equals, + /// + /// + /// + Exists, + /// + /// + /// + Gt, + /// + /// + /// + Gte, + /// + /// + /// + Lt, + /// + /// + /// + Lte, + /// + /// + /// + NotContains, + /// + /// + /// + NotEquals, + /// + /// + /// + NotExists, + /// + /// + /// + Regex, + /// + /// + /// + StartsWith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperatorExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator value) + { + return value switch + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Contains => "contains", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.EndsWith => "ends_with", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Equals => "equals", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Exists => "exists", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gt => "gt", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gte => "gte", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lt => "lt", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lte => "lte", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotContains => "not_contains", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotEquals => "not_equals", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotExists => "not_exists", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Regex => "regex", + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.StartsWith => "starts_with", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator? ToEnum(string value) + { + return value switch + { + "contains" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Contains, + "ends_with" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.EndsWith, + "equals" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Equals, + "exists" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Exists, + "gt" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gt, + "gte" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Gte, + "lt" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lt, + "lte" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Lte, + "not_contains" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotContains, + "not_equals" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotEquals, + "not_exists" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.NotExists, + "regex" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.Regex, + "starts_with" => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator.StartsWith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs new file mode 100644 index 0000000..6e285e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public readonly partial struct UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue?; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs new file mode 100644 index 0000000..e6ff8b7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue.g.cs @@ -0,0 +1,295 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 { get; init; } +#else + public string? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1))] +#endif + public bool IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 != null; + + /// + /// + /// + public bool TryPickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out string? value) + { + value = UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; + return IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; + } + + /// + /// + /// + public string PickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1() => IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 + ? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1! + : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1' but the value was {ToString()}."); + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 { get; init; } +#else + public double? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2))] +#endif + public bool IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 => UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 != null; + + /// + /// + /// + public bool TryPickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out double? value) + { + value = UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; + return IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; + } + + /// + /// + /// + public double PickUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2() => IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 + ? UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!.Value + : throw new global::System.InvalidOperationException($"Expected union variant 'UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(string value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue((string?)value); + + /// + /// + /// + public static implicit operator string?(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue @this) => @this.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; + + /// + /// + /// + public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(string? value) + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue FromUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1(string? value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(double value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue((double?)value); + + /// + /// + /// + public static implicit operator double?(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue @this) => @this.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; + + /// + /// + /// + public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(double? value) + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue FromUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2(double? value) => new UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue(value); + + /// + /// + /// + public UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue( + string? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, + double? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 + ) + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1; + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; + } + + /// + /// + /// + public object? Object => + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 as object ?? + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1?.ToString() ?? + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 && !IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 || !IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 && IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = null, + global::System.Func? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 != null) + { + return updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!); + } + else if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 && updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 != null) + { + return updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = null, + + global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) + { + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!); + } + else if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) + { + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1 = null, + global::System.Action? updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) + { + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1!); + } + else if (IsUpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) + { + updateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2?.Invoke(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, + typeof(string), + UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2, + typeof(double), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1, other.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2, other.UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValueVariant2) + ; + } + + /// + /// + /// + public static bool operator ==(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj1, UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj1, UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.Json.g.cs new file mode 100644 index 0000000..603d35a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponse + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponse? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponse), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponse; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponse? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.g.cs new file mode 100644 index 0000000..ec1de7f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponse.g.cs @@ -0,0 +1,48 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateObservabilityDestinationResponse + { + /// + /// The updated observability destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("data")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataJsonConverter))] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseData Data { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// The updated observability destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponse( + global::OpenRouter.UpdateObservabilityDestinationResponseData data) + { + this.Data = data; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponse() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.Json.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.Json.g.cs index c1600e2..5fa9f50 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityWeaveDestinationConfigHeaders + public readonly partial struct UpdateObservabilityDestinationResponseData { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseData? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseData), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseData?; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseData? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityWeaveDestinationConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseData), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseData?; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.g.cs new file mode 100644 index 0000000..7eeadef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseData.g.cs @@ -0,0 +1,1548 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// The updated observability destination. + /// + public readonly partial struct UpdateObservabilityDestinationResponseData : global::System.IEquatable + { + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type { get; } + + /// + /// arize variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Arize { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? Arize { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Arize))] +#endif + public bool IsArize => Arize != null; + + /// + /// + /// + public bool TryPickArize( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? value) + { + value = Arize; + return IsArize; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1 PickArize() => IsArize + ? Arize! + : throw new global::System.InvalidOperationException($"Expected union variant 'Arize' but the value was {ToString()}."); + + /// + /// braintrust variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Braintrust { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? Braintrust { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Braintrust))] +#endif + public bool IsBraintrust => Braintrust != null; + + /// + /// + /// + public bool TryPickBraintrust( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? value) + { + value = Braintrust; + return IsBraintrust; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2 PickBraintrust() => IsBraintrust + ? Braintrust! + : throw new global::System.InvalidOperationException($"Expected union variant 'Braintrust' but the value was {ToString()}."); + + /// + /// clickhouse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Clickhouse { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? Clickhouse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Clickhouse))] +#endif + public bool IsClickhouse => Clickhouse != null; + + /// + /// + /// + public bool TryPickClickhouse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? value) + { + value = Clickhouse; + return IsClickhouse; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3 PickClickhouse() => IsClickhouse + ? Clickhouse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Clickhouse' but the value was {ToString()}."); + + /// + /// datadog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Datadog { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? Datadog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Datadog))] +#endif + public bool IsDatadog => Datadog != null; + + /// + /// + /// + public bool TryPickDatadog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? value) + { + value = Datadog; + return IsDatadog; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4 PickDatadog() => IsDatadog + ? Datadog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Datadog' but the value was {ToString()}."); + + /// + /// grafana variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Grafana { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? Grafana { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Grafana))] +#endif + public bool IsGrafana => Grafana != null; + + /// + /// + /// + public bool TryPickGrafana( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? value) + { + value = Grafana; + return IsGrafana; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5 PickGrafana() => IsGrafana + ? Grafana! + : throw new global::System.InvalidOperationException($"Expected union variant 'Grafana' but the value was {ToString()}."); + + /// + /// langfuse variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Langfuse { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? Langfuse { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langfuse))] +#endif + public bool IsLangfuse => Langfuse != null; + + /// + /// + /// + public bool TryPickLangfuse( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? value) + { + value = Langfuse; + return IsLangfuse; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6 PickLangfuse() => IsLangfuse + ? Langfuse! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langfuse' but the value was {ToString()}."); + + /// + /// langsmith variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Langsmith { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? Langsmith { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Langsmith))] +#endif + public bool IsLangsmith => Langsmith != null; + + /// + /// + /// + public bool TryPickLangsmith( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? value) + { + value = Langsmith; + return IsLangsmith; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7 PickLangsmith() => IsLangsmith + ? Langsmith! + : throw new global::System.InvalidOperationException($"Expected union variant 'Langsmith' but the value was {ToString()}."); + + /// + /// newrelic variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Newrelic { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? Newrelic { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Newrelic))] +#endif + public bool IsNewrelic => Newrelic != null; + + /// + /// + /// + public bool TryPickNewrelic( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? value) + { + value = Newrelic; + return IsNewrelic; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8 PickNewrelic() => IsNewrelic + ? Newrelic! + : throw new global::System.InvalidOperationException($"Expected union variant 'Newrelic' but the value was {ToString()}."); + + /// + /// opik variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Opik { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? Opik { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Opik))] +#endif + public bool IsOpik => Opik != null; + + /// + /// + /// + public bool TryPickOpik( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? value) + { + value = Opik; + return IsOpik; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9 PickOpik() => IsOpik + ? Opik! + : throw new global::System.InvalidOperationException($"Expected union variant 'Opik' but the value was {ToString()}."); + + /// + /// otel-collector variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? OtelCollector { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? OtelCollector { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(OtelCollector))] +#endif + public bool IsOtelCollector => OtelCollector != null; + + /// + /// + /// + public bool TryPickOtelCollector( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? value) + { + value = OtelCollector; + return IsOtelCollector; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10 PickOtelCollector() => IsOtelCollector + ? OtelCollector! + : throw new global::System.InvalidOperationException($"Expected union variant 'OtelCollector' but the value was {ToString()}."); + + /// + /// posthog variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Posthog { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? Posthog { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Posthog))] +#endif + public bool IsPosthog => Posthog != null; + + /// + /// + /// + public bool TryPickPosthog( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? value) + { + value = Posthog; + return IsPosthog; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11 PickPosthog() => IsPosthog + ? Posthog! + : throw new global::System.InvalidOperationException($"Expected union variant 'Posthog' but the value was {ToString()}."); + + /// + /// ramp variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Ramp { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? Ramp { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Ramp))] +#endif + public bool IsRamp => Ramp != null; + + /// + /// + /// + public bool TryPickRamp( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? value) + { + value = Ramp; + return IsRamp; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12 PickRamp() => IsRamp + ? Ramp! + : throw new global::System.InvalidOperationException($"Expected union variant 'Ramp' but the value was {ToString()}."); + + /// + /// s3 variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? S3 { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? S3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(S3))] +#endif + public bool IsS3 => S3 != null; + + /// + /// + /// + public bool TryPickS3( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? value) + { + value = S3; + return IsS3; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13 PickS3() => IsS3 + ? S3! + : throw new global::System.InvalidOperationException($"Expected union variant 'S3' but the value was {ToString()}."); + + /// + /// sentry variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Sentry { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? Sentry { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Sentry))] +#endif + public bool IsSentry => Sentry != null; + + /// + /// + /// + public bool TryPickSentry( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? value) + { + value = Sentry; + return IsSentry; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14 PickSentry() => IsSentry + ? Sentry! + : throw new global::System.InvalidOperationException($"Expected union variant 'Sentry' but the value was {ToString()}."); + + /// + /// snowflake variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Snowflake { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? Snowflake { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Snowflake))] +#endif + public bool IsSnowflake => Snowflake != null; + + /// + /// + /// + public bool TryPickSnowflake( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? value) + { + value = Snowflake; + return IsSnowflake; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15 PickSnowflake() => IsSnowflake + ? Snowflake! + : throw new global::System.InvalidOperationException($"Expected union variant 'Snowflake' but the value was {ToString()}."); + + /// + /// weave variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Weave { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? Weave { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Weave))] +#endif + public bool IsWeave => Weave != null; + + /// + /// + /// + public bool TryPickWeave( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? value) + { + value = Weave; + return IsWeave; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16 PickWeave() => IsWeave + ? Weave! + : throw new global::System.InvalidOperationException($"Expected union variant 'Weave' but the value was {ToString()}."); + + /// + /// webhook variant + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Webhook { get; init; } +#else + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? Webhook { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(Webhook))] +#endif + public bool IsWebhook => Webhook != null; + + /// + /// + /// + public bool TryPickWebhook( +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.NotNullWhen(true)] +#endif + out global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? value) + { + value = Webhook; + return IsWebhook; + } + + /// + /// + /// + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17 PickWebhook() => IsWebhook + ? Webhook! + : throw new global::System.InvalidOperationException($"Expected union variant 'Webhook' but the value was {ToString()}."); + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1?(UpdateObservabilityDestinationResponseData @this) => @this.Arize; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? value) + { + Arize = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromArize(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2?(UpdateObservabilityDestinationResponseData @this) => @this.Braintrust; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? value) + { + Braintrust = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromBraintrust(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3?(UpdateObservabilityDestinationResponseData @this) => @this.Clickhouse; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? value) + { + Clickhouse = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromClickhouse(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4?(UpdateObservabilityDestinationResponseData @this) => @this.Datadog; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? value) + { + Datadog = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromDatadog(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5?(UpdateObservabilityDestinationResponseData @this) => @this.Grafana; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? value) + { + Grafana = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromGrafana(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6?(UpdateObservabilityDestinationResponseData @this) => @this.Langfuse; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? value) + { + Langfuse = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromLangfuse(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7?(UpdateObservabilityDestinationResponseData @this) => @this.Langsmith; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? value) + { + Langsmith = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromLangsmith(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8?(UpdateObservabilityDestinationResponseData @this) => @this.Newrelic; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? value) + { + Newrelic = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromNewrelic(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9?(UpdateObservabilityDestinationResponseData @this) => @this.Opik; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? value) + { + Opik = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromOpik(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10?(UpdateObservabilityDestinationResponseData @this) => @this.OtelCollector; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? value) + { + OtelCollector = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromOtelCollector(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11?(UpdateObservabilityDestinationResponseData @this) => @this.Posthog; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? value) + { + Posthog = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromPosthog(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12?(UpdateObservabilityDestinationResponseData @this) => @this.Ramp; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? value) + { + Ramp = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromRamp(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13?(UpdateObservabilityDestinationResponseData @this) => @this.S3; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? value) + { + S3 = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromS3(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14?(UpdateObservabilityDestinationResponseData @this) => @this.Sentry; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? value) + { + Sentry = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromSentry(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15?(UpdateObservabilityDestinationResponseData @this) => @this.Snowflake; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? value) + { + Snowflake = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromSnowflake(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16?(UpdateObservabilityDestinationResponseData @this) => @this.Weave; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? value) + { + Weave = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromWeave(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public static implicit operator UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17 value) => new UpdateObservabilityDestinationResponseData((global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17?(UpdateObservabilityDestinationResponseData @this) => @this.Webhook; + + /// + /// + /// + public UpdateObservabilityDestinationResponseData(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? value) + { + Webhook = value; + } + + /// + /// + /// + public static UpdateObservabilityDestinationResponseData FromWebhook(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? value) => new UpdateObservabilityDestinationResponseData(value); + + /// + /// + /// + public UpdateObservabilityDestinationResponseData( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? type, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? arize, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? braintrust, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? clickhouse, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? datadog, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? grafana, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? langfuse, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? langsmith, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? newrelic, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? opik, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? otelCollector, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? posthog, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? ramp, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? s3, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? sentry, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? snowflake, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? weave, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? webhook + ) + { + Type = type; + + Arize = arize; + Braintrust = braintrust; + Clickhouse = clickhouse; + Datadog = datadog; + Grafana = grafana; + Langfuse = langfuse; + Langsmith = langsmith; + Newrelic = newrelic; + Opik = opik; + OtelCollector = otelCollector; + Posthog = posthog; + Ramp = ramp; + S3 = s3; + Sentry = sentry; + Snowflake = snowflake; + Weave = weave; + Webhook = webhook; + } + + /// + /// + /// + public object? Object => + Webhook as object ?? + Weave as object ?? + Snowflake as object ?? + Sentry as object ?? + S3 as object ?? + Ramp as object ?? + Posthog as object ?? + OtelCollector as object ?? + Opik as object ?? + Newrelic as object ?? + Langsmith as object ?? + Langfuse as object ?? + Grafana as object ?? + Datadog as object ?? + Clickhouse as object ?? + Braintrust as object ?? + Arize as object + ; + + /// + /// + /// + public override string? ToString() => + Arize?.ToString() ?? + Braintrust?.ToString() ?? + Clickhouse?.ToString() ?? + Datadog?.ToString() ?? + Grafana?.ToString() ?? + Langfuse?.ToString() ?? + Langsmith?.ToString() ?? + Newrelic?.ToString() ?? + Opik?.ToString() ?? + OtelCollector?.ToString() ?? + Posthog?.ToString() ?? + Ramp?.ToString() ?? + S3?.ToString() ?? + Sentry?.ToString() ?? + Snowflake?.ToString() ?? + Weave?.ToString() ?? + Webhook?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && IsS3 && !IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && IsSentry && !IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && IsSnowflake && !IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && IsWeave && !IsWebhook || !IsArize && !IsBraintrust && !IsClickhouse && !IsDatadog && !IsGrafana && !IsLangfuse && !IsLangsmith && !IsNewrelic && !IsOpik && !IsOtelCollector && !IsPosthog && !IsRamp && !IsS3 && !IsSentry && !IsSnowflake && !IsWeave && IsWebhook; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? arize = null, + global::System.Func? braintrust = null, + global::System.Func? clickhouse = null, + global::System.Func? datadog = null, + global::System.Func? grafana = null, + global::System.Func? langfuse = null, + global::System.Func? langsmith = null, + global::System.Func? newrelic = null, + global::System.Func? opik = null, + global::System.Func? otelCollector = null, + global::System.Func? posthog = null, + global::System.Func? ramp = null, + global::System.Func? s3 = null, + global::System.Func? sentry = null, + global::System.Func? snowflake = null, + global::System.Func? weave = null, + global::System.Func? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize && arize != null) + { + return arize(Arize!); + } + else if (IsBraintrust && braintrust != null) + { + return braintrust(Braintrust!); + } + else if (IsClickhouse && clickhouse != null) + { + return clickhouse(Clickhouse!); + } + else if (IsDatadog && datadog != null) + { + return datadog(Datadog!); + } + else if (IsGrafana && grafana != null) + { + return grafana(Grafana!); + } + else if (IsLangfuse && langfuse != null) + { + return langfuse(Langfuse!); + } + else if (IsLangsmith && langsmith != null) + { + return langsmith(Langsmith!); + } + else if (IsNewrelic && newrelic != null) + { + return newrelic(Newrelic!); + } + else if (IsOpik && opik != null) + { + return opik(Opik!); + } + else if (IsOtelCollector && otelCollector != null) + { + return otelCollector(OtelCollector!); + } + else if (IsPosthog && posthog != null) + { + return posthog(Posthog!); + } + else if (IsRamp && ramp != null) + { + return ramp(Ramp!); + } + else if (IsS3 && s3 != null) + { + return s3(S3!); + } + else if (IsSentry && sentry != null) + { + return sentry(Sentry!); + } + else if (IsSnowflake && snowflake != null) + { + return snowflake(Snowflake!); + } + else if (IsWeave && weave != null) + { + return weave(Weave!); + } + else if (IsWebhook && webhook != null) + { + return webhook(Webhook!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? arize = null, + + global::System.Action? braintrust = null, + + global::System.Action? clickhouse = null, + + global::System.Action? datadog = null, + + global::System.Action? grafana = null, + + global::System.Action? langfuse = null, + + global::System.Action? langsmith = null, + + global::System.Action? newrelic = null, + + global::System.Action? opik = null, + + global::System.Action? otelCollector = null, + + global::System.Action? posthog = null, + + global::System.Action? ramp = null, + + global::System.Action? s3 = null, + + global::System.Action? sentry = null, + + global::System.Action? snowflake = null, + + global::System.Action? weave = null, + + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public void Switch( + global::System.Action? arize = null, + global::System.Action? braintrust = null, + global::System.Action? clickhouse = null, + global::System.Action? datadog = null, + global::System.Action? grafana = null, + global::System.Action? langfuse = null, + global::System.Action? langsmith = null, + global::System.Action? newrelic = null, + global::System.Action? opik = null, + global::System.Action? otelCollector = null, + global::System.Action? posthog = null, + global::System.Action? ramp = null, + global::System.Action? s3 = null, + global::System.Action? sentry = null, + global::System.Action? snowflake = null, + global::System.Action? weave = null, + global::System.Action? webhook = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsArize) + { + arize?.Invoke(Arize!); + } + else if (IsBraintrust) + { + braintrust?.Invoke(Braintrust!); + } + else if (IsClickhouse) + { + clickhouse?.Invoke(Clickhouse!); + } + else if (IsDatadog) + { + datadog?.Invoke(Datadog!); + } + else if (IsGrafana) + { + grafana?.Invoke(Grafana!); + } + else if (IsLangfuse) + { + langfuse?.Invoke(Langfuse!); + } + else if (IsLangsmith) + { + langsmith?.Invoke(Langsmith!); + } + else if (IsNewrelic) + { + newrelic?.Invoke(Newrelic!); + } + else if (IsOpik) + { + opik?.Invoke(Opik!); + } + else if (IsOtelCollector) + { + otelCollector?.Invoke(OtelCollector!); + } + else if (IsPosthog) + { + posthog?.Invoke(Posthog!); + } + else if (IsRamp) + { + ramp?.Invoke(Ramp!); + } + else if (IsS3) + { + s3?.Invoke(S3!); + } + else if (IsSentry) + { + sentry?.Invoke(Sentry!); + } + else if (IsSnowflake) + { + snowflake?.Invoke(Snowflake!); + } + else if (IsWeave) + { + weave?.Invoke(Weave!); + } + else if (IsWebhook) + { + webhook?.Invoke(Webhook!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + Arize, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1), + Braintrust, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2), + Clickhouse, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3), + Datadog, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4), + Grafana, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5), + Langfuse, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6), + Langsmith, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7), + Newrelic, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8), + Opik, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9), + OtelCollector, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10), + Posthog, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11), + Ramp, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12), + S3, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13), + Sentry, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14), + Snowflake, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15), + Weave, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16), + Webhook, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(UpdateObservabilityDestinationResponseData other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(Arize, other.Arize) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Braintrust, other.Braintrust) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Clickhouse, other.Clickhouse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Datadog, other.Datadog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Grafana, other.Grafana) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langfuse, other.Langfuse) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Langsmith, other.Langsmith) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Newrelic, other.Newrelic) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Opik, other.Opik) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(OtelCollector, other.OtelCollector) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Posthog, other.Posthog) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Ramp, other.Ramp) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(S3, other.S3) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Sentry, other.Sentry) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Snowflake, other.Snowflake) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Weave, other.Weave) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(Webhook, other.Webhook) + ; + } + + /// + /// + /// + public static bool operator ==(UpdateObservabilityDestinationResponseData obj1, UpdateObservabilityDestinationResponseData obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(UpdateObservabilityDestinationResponseData obj1, UpdateObservabilityDestinationResponseData obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is UpdateObservabilityDestinationResponseData o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.Json.g.cs new file mode 100644 index 0000000..28186f7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminator + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.g.cs new file mode 100644 index 0000000..f5588e3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminator.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminator + { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorTypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataDiscriminator( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorType? type) + { + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataDiscriminator() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.Json.g.cs new file mode 100644 index 0000000..566d3d5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.g.cs index 85f553a..70fb9a0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig { /// /// @@ -48,7 +48,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeCon public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -62,7 +62,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeCon #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityDestinationDiscriminatorMappingArizeConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig( string apiKey, string modelId, string spaceKey, @@ -77,9 +77,9 @@ public ObservabilityDestinationDiscriminatorMappingArizeConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityDestinationDiscriminatorMappingArizeConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.Json.g.cs new file mode 100644 index 0000000..3469db2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.g.cs index f7f0f40..a168a47 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Custom HTTP headers to include in requests to this destination. /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.Json.g.cs new file mode 100644 index 0000000..aa8f13e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.g.cs similarity index 80% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.g.cs index 1769bdd..9863208 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig { /// /// @@ -41,7 +41,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintru public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -54,7 +54,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintru #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityDestinationDiscriminatorMappingBraintrustConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig( string apiKey, string projectId, string? baseUrl, @@ -67,9 +67,9 @@ public ObservabilityDestinationDiscriminatorMappingBraintrustConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityDestinationDiscriminatorMappingBraintrustConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs new file mode 100644 index 0000000..92de05e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.g.cs new file mode 100644 index 0000000..567b967 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.Json.g.cs new file mode 100644 index 0000000..7497321 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.g.cs index 5db26db..380763d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingClickhouseConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhouseConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig { /// /// @@ -55,7 +55,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhou public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -72,7 +72,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingClickhou #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityDestinationDiscriminatorMappingClickhouseConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig( string database, string host, string password, @@ -89,9 +89,9 @@ public ObservabilityDestinationDiscriminatorMappingClickhouseConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityDestinationDiscriminatorMappingClickhouseConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs new file mode 100644 index 0000000..46afe12 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.g.cs new file mode 100644 index 0000000..eeb77cf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.Json.g.cs new file mode 100644 index 0000000..cff47bb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.g.cs index 1f9b09a..4c6e93d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig { /// /// Datadog API key must have LLM Observability permissions. Create at: @@ -42,7 +42,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogC public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Datadog API key must have LLM Observability permissions. Create at: @@ -60,7 +60,7 @@ public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogC #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityDestinationDiscriminatorMappingDatadogConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig( string apiKey, string mlApp, global::System.Collections.Generic.Dictionary? headers, @@ -73,9 +73,9 @@ public ObservabilityDestinationDiscriminatorMappingDatadogConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityDestinationDiscriminatorMappingDatadogConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.Json.g.cs new file mode 100644 index 0000000..9486124 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.g.cs new file mode 100644 index 0000000..f780570 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.Json.g.cs new file mode 100644 index 0000000..98135cc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.g.cs index 712be4c..fa22595 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityGrafanaDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityGrafanaDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig { /// /// @@ -41,7 +41,7 @@ public sealed partial class ObservabilityGrafanaDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -54,7 +54,7 @@ public sealed partial class ObservabilityGrafanaDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityGrafanaDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig( string apiKey, string instanceId, string? baseUrl, @@ -67,9 +67,9 @@ public ObservabilityGrafanaDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityGrafanaDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.Json.g.cs new file mode 100644 index 0000000..6f920b8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.g.cs new file mode 100644 index 0000000..01c1eef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.Json.g.cs new file mode 100644 index 0000000..2f25ce1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.g.cs index 7d3e80b..506c8e8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangfuseDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityLangfuseDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig { /// /// Default Value: https://us.cloud.langfuse.com @@ -41,7 +41,7 @@ public sealed partial class ObservabilityLangfuseDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -54,7 +54,7 @@ public sealed partial class ObservabilityLangfuseDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityLangfuseDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig( string publicKey, string secretKey, string? baseUrl, @@ -67,9 +67,9 @@ public ObservabilityLangfuseDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityLangfuseDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.Json.g.cs new file mode 100644 index 0000000..b457af5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.g.cs new file mode 100644 index 0000000..45c7df1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.Json.g.cs similarity index 77% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.Json.g.cs index 0661aad..83c65c5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityPosthogDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityPosthogDestinationConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityPosthogDestinationConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityPosthogDestinationConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityPosthogDestinationConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityPosthogDestinationConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityPosthogDestinationConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.g.cs index 8151b32..67f0b2f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityLangsmithDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityLangsmithDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig { /// /// @@ -47,7 +47,7 @@ public sealed partial class ObservabilityLangsmithDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -66,7 +66,7 @@ public sealed partial class ObservabilityLangsmithDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityLangsmithDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig( string apiKey, string? endpoint, global::System.Collections.Generic.Dictionary? headers, @@ -81,9 +81,9 @@ public ObservabilityLangsmithDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityLangsmithDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.Json.g.cs new file mode 100644 index 0000000..fb9a98c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.g.cs new file mode 100644 index 0000000..f624257 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.Json.g.cs new file mode 100644 index 0000000..6738160 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.g.cs similarity index 67% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.g.cs index e93dfed..f4ad252 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityNewrelicDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityNewrelicDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig { /// /// Custom HTTP headers to include in requests to this destination. @@ -25,8 +25,8 @@ public sealed partial class ObservabilityNewrelicDestinationConfig /// Default Value: us /// [global::System.Text.Json.Serialization.JsonPropertyName("region")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityNewrelicDestinationConfigRegionJsonConverter))] - public global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? Region { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? Region { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -35,7 +35,7 @@ public sealed partial class ObservabilityNewrelicDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -47,10 +47,10 @@ public sealed partial class ObservabilityNewrelicDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityNewrelicDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig( string licenseKey, global::System.Collections.Generic.Dictionary? headers, - global::OpenRouter.ObservabilityNewrelicDestinationConfigRegion? region) + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? region) { this.Headers = headers; this.LicenseKey = licenseKey ?? throw new global::System.ArgumentNullException(nameof(licenseKey)); @@ -58,9 +58,9 @@ public ObservabilityNewrelicDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityNewrelicDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.Json.g.cs new file mode 100644 index 0000000..74e3fe0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.g.cs new file mode 100644 index 0000000..49e1f2b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs new file mode 100644 index 0000000..0459294 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: us + /// + public enum UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion + { + /// + /// + /// + Eu, + /// + /// + /// + Us, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegionExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.Eu => "eu", + UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.Us => "us", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion? ToEnum(string value) + { + return value switch + { + "eu" => UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.Eu, + "us" => UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion.Us, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.Json.g.cs similarity index 78% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.Json.g.cs index 05a5a31..55cafb5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingBraintrustConfig; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.g.cs index 5b9cd60..fc3deb6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityOpikDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig { /// /// @@ -42,7 +42,7 @@ public sealed partial class ObservabilityOpikDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -53,7 +53,7 @@ public sealed partial class ObservabilityOpikDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityOpikDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig( string apiKey, string projectName, string workspace, @@ -66,9 +66,9 @@ public ObservabilityOpikDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityOpikDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.Json.g.cs new file mode 100644 index 0000000..4e747da --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.g.cs index 82d1391..f733b0a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Custom HTTP headers to include in requests to this destination. /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingBraintrustConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.Json.g.cs new file mode 100644 index 0000000..25cdd67 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.g.cs similarity index 74% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.g.cs index 4c9f2f2..1de8b0a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityOtelCollectorDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig { /// /// @@ -28,7 +28,7 @@ public sealed partial class ObservabilityOtelCollectorDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -37,7 +37,7 @@ public sealed partial class ObservabilityOtelCollectorDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityOtelCollectorDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig( string endpoint, global::System.Collections.Generic.Dictionary? headers) { @@ -46,9 +46,9 @@ public ObservabilityOtelCollectorDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityOtelCollectorDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.Json.g.cs new file mode 100644 index 0000000..fdc2d74 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.g.cs index 2842170..2d7aa80 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOtelCollectorDestinationConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Custom HTTP headers as a JSON object. For Axiom, use {"Authorization": "Bearer xaat-xxx", "X-Axiom-Dataset": "your-dataset"} /// - public sealed partial class ObservabilityOtelCollectorDestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.Json.g.cs new file mode 100644 index 0000000..d183bef --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.g.cs similarity index 78% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.g.cs index 5bbd1f8..9b8f5ed 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityPosthogDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityPosthogDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig { /// /// @@ -34,7 +34,7 @@ public sealed partial class ObservabilityPosthogDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -46,7 +46,7 @@ public sealed partial class ObservabilityPosthogDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityPosthogDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig( string apiKey, string? endpoint, global::System.Collections.Generic.Dictionary? headers) @@ -57,9 +57,9 @@ public ObservabilityPosthogDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityPosthogDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.Json.g.cs new file mode 100644 index 0000000..1019cd7 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.g.cs new file mode 100644 index 0000000..cb1e892 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.Json.g.cs new file mode 100644 index 0000000..92539c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.g.cs similarity index 79% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.g.cs index 23ac97d..119f462 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityRampDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig { /// /// Generate this in your Ramp integration settings. @@ -34,7 +34,7 @@ public sealed partial class ObservabilityRampDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// Generate this in your Ramp integration settings. @@ -48,7 +48,7 @@ public sealed partial class ObservabilityRampDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityRampDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig( string apiKey, string? baseUrl, global::System.Collections.Generic.Dictionary? headers) @@ -59,9 +59,9 @@ public ObservabilityRampDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityRampDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.Json.g.cs new file mode 100644 index 0000000..17cb6f0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.g.cs index dc35ecd..c53e742 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityRampDestinationConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Custom HTTP headers to include in requests to Ramp. /// - public sealed partial class ObservabilityRampDestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.Json.g.cs similarity index 78% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.Json.g.cs index 9fe5f77..c4f07ed 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders), - jsonSerializerContext) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders? FromJson( + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders; + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.g.cs similarity index 89% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.g.cs index 312c6b7..044485a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityS3DestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityS3DestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config { /// /// @@ -73,7 +73,7 @@ public sealed partial class ObservabilityS3DestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -96,7 +96,7 @@ public sealed partial class ObservabilityS3DestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityS3DestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config( string accessKeyId, string bucketName, string secretAccessKey, @@ -119,9 +119,9 @@ public ObservabilityS3DestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityS3DestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.Json.g.cs new file mode 100644 index 0000000..03d8e80 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.g.cs index 7fc64da..19d73f1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Custom HTTP headers to include in requests to this destination. /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingArizeConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3ConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.Json.g.cs new file mode 100644 index 0000000..92fdd48 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.g.cs similarity index 78% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.g.cs index 9854da0..d5cd941 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySentryDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilitySentryDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig { /// /// @@ -35,7 +35,7 @@ public sealed partial class ObservabilitySentryDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -45,7 +45,7 @@ public sealed partial class ObservabilitySentryDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilitySentryDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig( string dsn, string otlpEndpoint, global::System.Collections.Generic.Dictionary? headers) @@ -56,9 +56,9 @@ public ObservabilitySentryDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilitySentryDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.Json.g.cs new file mode 100644 index 0000000..a0b6835 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.g.cs new file mode 100644 index 0000000..4f53ab2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.Json.g.cs new file mode 100644 index 0000000..2101942 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.g.cs similarity index 85% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.g.cs index 1b96788..e2b5f7a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilitySnowflakeDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilitySnowflakeDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig { /// /// @@ -59,7 +59,7 @@ public sealed partial class ObservabilitySnowflakeDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -81,7 +81,7 @@ public sealed partial class ObservabilitySnowflakeDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilitySnowflakeDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig( string account, string token, string? database, @@ -100,9 +100,9 @@ public ObservabilitySnowflakeDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilitySnowflakeDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.Json.g.cs new file mode 100644 index 0000000..a077dfe --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.g.cs new file mode 100644 index 0000000..f29b119 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders.g.cs @@ -0,0 +1,19 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Custom HTTP headers to include in requests to this destination. + /// + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfigHeaders + { + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.Json.g.cs new file mode 100644 index 0000000..85e234b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.g.cs similarity index 83% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.g.cs index 2a649ec..ef88aaf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWeaveDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityWeaveDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig { /// /// @@ -48,7 +48,7 @@ public sealed partial class ObservabilityWeaveDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -62,7 +62,7 @@ public sealed partial class ObservabilityWeaveDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityWeaveDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig( string apiKey, string entity, string project, @@ -77,9 +77,9 @@ public ObservabilityWeaveDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityWeaveDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.Json.g.cs new file mode 100644 index 0000000..fdcd5d6 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.g.cs similarity index 82% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.g.cs index 84e57f1..0ea5453 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Custom HTTP headers to include in requests to this destination. /// - public sealed partial class ObservabilityDestinationDiscriminatorMappingDatadogConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.Json.g.cs new file mode 100644 index 0000000..78a4278 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.g.cs similarity index 65% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.g.cs index 5450b45..3ee50ae 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityWebhookDestinationConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// /// - public sealed partial class ObservabilityWebhookDestinationConfig + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig { /// /// @@ -18,8 +18,8 @@ public sealed partial class ObservabilityWebhookDestinationConfig /// Default Value: POST /// [global::System.Text.Json.Serialization.JsonPropertyName("method")] - [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ObservabilityWebhookDestinationConfigMethodJsonConverter))] - public global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? Method { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? Method { get; set; } /// /// @@ -35,7 +35,7 @@ public sealed partial class ObservabilityWebhookDestinationConfig public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// /// /// @@ -45,10 +45,10 @@ public sealed partial class ObservabilityWebhookDestinationConfig #if NET7_0_OR_GREATER [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif - public ObservabilityWebhookDestinationConfig( + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig( string url, global::System.Collections.Generic.Dictionary? headers, - global::OpenRouter.ObservabilityWebhookDestinationConfigMethod? method) + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? method) { this.Headers = headers; this.Method = method; @@ -56,9 +56,9 @@ public ObservabilityWebhookDestinationConfig( } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - public ObservabilityWebhookDestinationConfig() + public UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig() { } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.Json.g.cs new file mode 100644 index 0000000..b629f15 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.g.cs similarity index 76% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.g.cs index 2e00664..10299d0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ObservabilityOpikDestinationConfigHeaders.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders.g.cs @@ -4,9 +4,9 @@ namespace OpenRouter { /// - /// Custom HTTP headers to include in requests to this destination. + /// /// - public sealed partial class ObservabilityOpikDestinationConfigHeaders + public sealed partial class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigHeaders { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs new file mode 100644 index 0000000..30a5823 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.g.cs @@ -0,0 +1,51 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Default Value: POST + /// + public enum UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod + { + /// + /// + /// + Post, + /// + /// + /// + Put, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethodExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.Post => "POST", + UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.Put => "PUT", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod? ToEnum(string value) + { + return value switch + { + "POST" => UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.Post, + "PUT" => UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod.Put, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs new file mode 100644 index 0000000..627383a --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataDiscriminatorType.g.cs @@ -0,0 +1,141 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum UpdateObservabilityDestinationResponseDataDiscriminatorType + { + /// + /// + /// + Arize, + /// + /// + /// + Braintrust, + /// + /// + /// + Clickhouse, + /// + /// + /// + Datadog, + /// + /// + /// + Grafana, + /// + /// + /// + Langfuse, + /// + /// + /// + Langsmith, + /// + /// + /// + Newrelic, + /// + /// + /// + Opik, + /// + /// + /// + OtelCollector, + /// + /// + /// + Posthog, + /// + /// + /// + Ramp, + /// + /// + /// + S3, + /// + /// + /// + Sentry, + /// + /// + /// + Snowflake, + /// + /// + /// + Weave, + /// + /// + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataDiscriminatorTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataDiscriminatorType value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataDiscriminatorType.Arize => "arize", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Braintrust => "braintrust", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Clickhouse => "clickhouse", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Datadog => "datadog", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Grafana => "grafana", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Langfuse => "langfuse", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Langsmith => "langsmith", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Newrelic => "newrelic", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Opik => "opik", + UpdateObservabilityDestinationResponseDataDiscriminatorType.OtelCollector => "otel-collector", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Posthog => "posthog", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Ramp => "ramp", + UpdateObservabilityDestinationResponseDataDiscriminatorType.S3 => "s3", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Sentry => "sentry", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Snowflake => "snowflake", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Weave => "weave", + UpdateObservabilityDestinationResponseDataDiscriminatorType.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataDiscriminatorType? ToEnum(string value) + { + return value switch + { + "arize" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Arize, + "braintrust" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Braintrust, + "clickhouse" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Clickhouse, + "datadog" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Datadog, + "grafana" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Grafana, + "langfuse" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Langfuse, + "langsmith" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Langsmith, + "newrelic" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Newrelic, + "opik" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Opik, + "otel-collector" => UpdateObservabilityDestinationResponseDataDiscriminatorType.OtelCollector, + "posthog" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Posthog, + "ramp" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Ramp, + "s3" => UpdateObservabilityDestinationResponseDataDiscriminatorType.S3, + "sentry" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Sentry, + "snowflake" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Snowflake, + "weave" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Weave, + "webhook" => UpdateObservabilityDestinationResponseDataDiscriminatorType.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.Json.g.cs new file mode 100644 index 0000000..9299502 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant1 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.g.cs new file mode 100644 index 0000000..9c53900 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// arize variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant1 + { + /// + /// Discriminator value: arize + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant1TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: arize + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant1( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant1Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant1() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.Json.g.cs new file mode 100644 index 0000000..3816283 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant10 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.g.cs new file mode 100644 index 0000000..47a475c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// otel-collector variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant10 + { + /// + /// Discriminator value: otel-collector + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant10TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: otel-collector + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant10( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant10Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant10() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs new file mode 100644 index 0000000..45b2821 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant10Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: otel-collector + /// + public enum UpdateObservabilityDestinationResponseDataVariant10Type + { + /// + /// otel-collector + /// + OtelCollector, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant10TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant10Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant10Type.OtelCollector => "otel-collector", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant10Type? ToEnum(string value) + { + return value switch + { + "otel-collector" => UpdateObservabilityDestinationResponseDataVariant10Type.OtelCollector, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.Json.g.cs new file mode 100644 index 0000000..d2eb9c2 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant11 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.g.cs new file mode 100644 index 0000000..f8cb703 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// posthog variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant11 + { + /// + /// Discriminator value: posthog + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant11TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: posthog + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant11( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant11Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant11() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs new file mode 100644 index 0000000..666bbe4 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant11Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: posthog + /// + public enum UpdateObservabilityDestinationResponseDataVariant11Type + { + /// + /// posthog + /// + Posthog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant11TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant11Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant11Type.Posthog => "posthog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant11Type? ToEnum(string value) + { + return value switch + { + "posthog" => UpdateObservabilityDestinationResponseDataVariant11Type.Posthog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.Json.g.cs new file mode 100644 index 0000000..eabb216 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant12 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.g.cs new file mode 100644 index 0000000..7359ccf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// ramp variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant12 + { + /// + /// Discriminator value: ramp + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant12TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: ramp + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant12( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant12Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant12() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs new file mode 100644 index 0000000..7d7bd4e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant12Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: ramp + /// + public enum UpdateObservabilityDestinationResponseDataVariant12Type + { + /// + /// ramp + /// + Ramp, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant12TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant12Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant12Type.Ramp => "ramp", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant12Type? ToEnum(string value) + { + return value switch + { + "ramp" => UpdateObservabilityDestinationResponseDataVariant12Type.Ramp, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.Json.g.cs new file mode 100644 index 0000000..306abdb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant13 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.g.cs new file mode 100644 index 0000000..519ead8 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// s3 variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant13 + { + /// + /// Discriminator value: s3 + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant13TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: s3 + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant13( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant13Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant13() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs new file mode 100644 index 0000000..7c93b32 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant13Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: s3 + /// + public enum UpdateObservabilityDestinationResponseDataVariant13Type + { + /// + /// s3 + /// + S3, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant13TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant13Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant13Type.S3 => "s3", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant13Type? ToEnum(string value) + { + return value switch + { + "s3" => UpdateObservabilityDestinationResponseDataVariant13Type.S3, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.Json.g.cs new file mode 100644 index 0000000..6434036 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant14 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.g.cs new file mode 100644 index 0000000..4571e54 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// sentry variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant14 + { + /// + /// Discriminator value: sentry + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant14TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: sentry + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant14( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant14Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant14() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs new file mode 100644 index 0000000..e3fe997 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant14Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: sentry + /// + public enum UpdateObservabilityDestinationResponseDataVariant14Type + { + /// + /// sentry + /// + Sentry, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant14TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant14Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant14Type.Sentry => "sentry", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant14Type? ToEnum(string value) + { + return value switch + { + "sentry" => UpdateObservabilityDestinationResponseDataVariant14Type.Sentry, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.Json.g.cs new file mode 100644 index 0000000..7bfc8c3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant15 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.g.cs new file mode 100644 index 0000000..e1926bc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// snowflake variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant15 + { + /// + /// Discriminator value: snowflake + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant15TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: snowflake + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant15( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant15Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant15() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs new file mode 100644 index 0000000..8eb6109 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant15Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: snowflake + /// + public enum UpdateObservabilityDestinationResponseDataVariant15Type + { + /// + /// snowflake + /// + Snowflake, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant15TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant15Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant15Type.Snowflake => "snowflake", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant15Type? ToEnum(string value) + { + return value switch + { + "snowflake" => UpdateObservabilityDestinationResponseDataVariant15Type.Snowflake, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.Json.g.cs new file mode 100644 index 0000000..8ea099c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant16 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.g.cs new file mode 100644 index 0000000..1ba8f58 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// weave variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant16 + { + /// + /// Discriminator value: weave + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant16TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: weave + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant16( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant16Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant16() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs new file mode 100644 index 0000000..aede897 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant16Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: weave + /// + public enum UpdateObservabilityDestinationResponseDataVariant16Type + { + /// + /// weave + /// + Weave, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant16TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant16Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant16Type.Weave => "weave", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant16Type? ToEnum(string value) + { + return value switch + { + "weave" => UpdateObservabilityDestinationResponseDataVariant16Type.Weave, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.Json.g.cs new file mode 100644 index 0000000..312269b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant17 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.g.cs new file mode 100644 index 0000000..a562648 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// webhook variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant17 + { + /// + /// Discriminator value: webhook + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant17TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: webhook + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant17( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant17Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant17() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs new file mode 100644 index 0000000..461976e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant17Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: webhook + /// + public enum UpdateObservabilityDestinationResponseDataVariant17Type + { + /// + /// webhook + /// + Webhook, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant17TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant17Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant17Type.Webhook => "webhook", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant17Type? ToEnum(string value) + { + return value switch + { + "webhook" => UpdateObservabilityDestinationResponseDataVariant17Type.Webhook, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs new file mode 100644 index 0000000..b08945b --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant1Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: arize + /// + public enum UpdateObservabilityDestinationResponseDataVariant1Type + { + /// + /// arize + /// + Arize, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant1TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant1Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant1Type.Arize => "arize", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant1Type? ToEnum(string value) + { + return value switch + { + "arize" => UpdateObservabilityDestinationResponseDataVariant1Type.Arize, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.Json.g.cs new file mode 100644 index 0000000..5a550cb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant2 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.g.cs new file mode 100644 index 0000000..d66e612 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// braintrust variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant2 + { + /// + /// Discriminator value: braintrust + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant2TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: braintrust + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant2( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant2Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant2() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs new file mode 100644 index 0000000..41596be --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant2Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: braintrust + /// + public enum UpdateObservabilityDestinationResponseDataVariant2Type + { + /// + /// braintrust + /// + Braintrust, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant2TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant2Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant2Type.Braintrust => "braintrust", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant2Type? ToEnum(string value) + { + return value switch + { + "braintrust" => UpdateObservabilityDestinationResponseDataVariant2Type.Braintrust, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.Json.g.cs new file mode 100644 index 0000000..d7c0619 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant3 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.g.cs new file mode 100644 index 0000000..3b06eaf --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// clickhouse variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant3 + { + /// + /// Discriminator value: clickhouse + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant3TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: clickhouse + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant3( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant3Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant3() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs new file mode 100644 index 0000000..ad54252 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant3Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: clickhouse + /// + public enum UpdateObservabilityDestinationResponseDataVariant3Type + { + /// + /// clickhouse + /// + Clickhouse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant3TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant3Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant3Type.Clickhouse => "clickhouse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant3Type? ToEnum(string value) + { + return value switch + { + "clickhouse" => UpdateObservabilityDestinationResponseDataVariant3Type.Clickhouse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.Json.g.cs new file mode 100644 index 0000000..14ed12d --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant4 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.g.cs new file mode 100644 index 0000000..8938f74 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// datadog variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant4 + { + /// + /// Discriminator value: datadog + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant4TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: datadog + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant4( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant4Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant4() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs new file mode 100644 index 0000000..a0b6811 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant4Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: datadog + /// + public enum UpdateObservabilityDestinationResponseDataVariant4Type + { + /// + /// datadog + /// + Datadog, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant4TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant4Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant4Type.Datadog => "datadog", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant4Type? ToEnum(string value) + { + return value switch + { + "datadog" => UpdateObservabilityDestinationResponseDataVariant4Type.Datadog, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.Json.g.cs new file mode 100644 index 0000000..dfa6dc0 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant5 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.g.cs new file mode 100644 index 0000000..e2f6099 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// grafana variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant5 + { + /// + /// Discriminator value: grafana + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant5TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: grafana + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant5( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant5Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant5() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs new file mode 100644 index 0000000..5a113c9 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant5Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: grafana + /// + public enum UpdateObservabilityDestinationResponseDataVariant5Type + { + /// + /// grafana + /// + Grafana, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant5TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant5Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant5Type.Grafana => "grafana", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant5Type? ToEnum(string value) + { + return value switch + { + "grafana" => UpdateObservabilityDestinationResponseDataVariant5Type.Grafana, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.Json.g.cs new file mode 100644 index 0000000..1dcbc0c --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant6 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.g.cs new file mode 100644 index 0000000..47d8035 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langfuse variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant6 + { + /// + /// Discriminator value: langfuse + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant6TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: langfuse + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant6( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant6Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant6() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs new file mode 100644 index 0000000..1c731cc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant6Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langfuse + /// + public enum UpdateObservabilityDestinationResponseDataVariant6Type + { + /// + /// langfuse + /// + Langfuse, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant6TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant6Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant6Type.Langfuse => "langfuse", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant6Type? ToEnum(string value) + { + return value switch + { + "langfuse" => UpdateObservabilityDestinationResponseDataVariant6Type.Langfuse, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.Json.g.cs new file mode 100644 index 0000000..51ca007 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant7 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.g.cs new file mode 100644 index 0000000..202e178 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// langsmith variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant7 + { + /// + /// Discriminator value: langsmith + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant7TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: langsmith + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant7( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant7Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant7() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs new file mode 100644 index 0000000..a3ba44f --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant7Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: langsmith + /// + public enum UpdateObservabilityDestinationResponseDataVariant7Type + { + /// + /// langsmith + /// + Langsmith, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant7TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant7Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant7Type.Langsmith => "langsmith", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant7Type? ToEnum(string value) + { + return value switch + { + "langsmith" => UpdateObservabilityDestinationResponseDataVariant7Type.Langsmith, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.Json.g.cs new file mode 100644 index 0000000..6f5e543 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant8 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.g.cs new file mode 100644 index 0000000..e9691ac --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// newrelic variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant8 + { + /// + /// Discriminator value: newrelic + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant8TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: newrelic + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant8( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant8Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant8() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs new file mode 100644 index 0000000..6b417b3 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant8Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: newrelic + /// + public enum UpdateObservabilityDestinationResponseDataVariant8Type + { + /// + /// newrelic + /// + Newrelic, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant8TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant8Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant8Type.Newrelic => "newrelic", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant8Type? ToEnum(string value) + { + return value switch + { + "newrelic" => UpdateObservabilityDestinationResponseDataVariant8Type.Newrelic, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.Json.g.cs new file mode 100644 index 0000000..1142cea --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace OpenRouter +{ + public sealed partial class UpdateObservabilityDestinationResponseDataVariant9 + { + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. + /// + public string ToJson( + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + this.GetType(), + jsonSerializerContext); + } + + /// + /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public string ToJson( + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9), + jsonSerializerContext) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9; + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.g.cs new file mode 100644 index 0000000..3cd0fee --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9.g.cs @@ -0,0 +1,175 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// opik variant + /// + public sealed partial class UpdateObservabilityDestinationResponseDataVariant9 + { + /// + /// Discriminator value: opik + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.UpdateObservabilityDestinationResponseDataVariant9TypeJsonConverter))] + public global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type Type { get; set; } + + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("api_key_hashes")] + public global::System.Collections.Generic.IList? ApiKeyHashes { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("config")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig Config { get; set; } + + /// + /// ISO timestamp of when the destination was created. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string CreatedAt { get; set; } + + /// + /// Whether this destination is currently enabled. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool Enabled { get; set; } + + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("filter_rules")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::OpenRouter.ObservabilityFilterRulesConfig FilterRules { get; set; } + + /// + /// Stable public identifier for this destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid Id { get; set; } + + /// + /// Human-readable name for the destination. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("name")] + public string? Name { get; set; } + + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("privacy_mode")] + [global::System.Text.Json.Serialization.JsonRequired] + public required bool PrivacyMode { get; set; } + + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + [global::System.Text.Json.Serialization.JsonPropertyName("sampling_rate")] + [global::System.Text.Json.Serialization.JsonRequired] + public required double SamplingRate { get; set; } + + /// + /// ISO timestamp of when the destination was last updated. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("updated_at")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string UpdatedAt { get; set; } + + /// + /// ID of the workspace this destination belongs to. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("workspace_id")] + [global::System.Text.Json.Serialization.JsonRequired] + public required global::System.Guid WorkspaceId { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// ISO timestamp of when the destination was created. + /// + /// + /// Whether this destination is currently enabled. + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Stable public identifier for this destination. + /// + /// + /// When true, request/response bodies are not forwarded to this destination — only metadata. + /// + /// + /// Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%). + /// + /// + /// ISO timestamp of when the destination was last updated. + /// + /// + /// ID of the workspace this destination belongs to. + /// + /// + /// Discriminator value: opik + /// + /// + /// Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys. + /// + /// + /// Human-readable name for the destination. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public UpdateObservabilityDestinationResponseDataVariant9( + global::OpenRouter.UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig config, + string createdAt, + bool enabled, + global::OpenRouter.ObservabilityFilterRulesConfig filterRules, + global::System.Guid id, + bool privacyMode, + double samplingRate, + string updatedAt, + global::System.Guid workspaceId, + global::OpenRouter.UpdateObservabilityDestinationResponseDataVariant9Type type, + global::System.Collections.Generic.IList? apiKeyHashes, + string? name) + { + this.Type = type; + this.ApiKeyHashes = apiKeyHashes; + this.Config = config ?? throw new global::System.ArgumentNullException(nameof(config)); + this.CreatedAt = createdAt ?? throw new global::System.ArgumentNullException(nameof(createdAt)); + this.Enabled = enabled; + this.FilterRules = filterRules ?? throw new global::System.ArgumentNullException(nameof(filterRules)); + this.Id = id; + this.Name = name; + this.PrivacyMode = privacyMode; + this.SamplingRate = samplingRate; + this.UpdatedAt = updatedAt ?? throw new global::System.ArgumentNullException(nameof(updatedAt)); + this.WorkspaceId = workspaceId; + } + + /// + /// Initializes a new instance of the class. + /// + public UpdateObservabilityDestinationResponseDataVariant9() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs new file mode 100644 index 0000000..db07fde --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.UpdateObservabilityDestinationResponseDataVariant9Type.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Discriminator value: opik + /// + public enum UpdateObservabilityDestinationResponseDataVariant9Type + { + /// + /// opik + /// + Opik, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class UpdateObservabilityDestinationResponseDataVariant9TypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this UpdateObservabilityDestinationResponseDataVariant9Type value) + { + return value switch + { + UpdateObservabilityDestinationResponseDataVariant9Type.Opik => "opik", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static UpdateObservabilityDestinationResponseDataVariant9Type? ToEnum(string value) + { + return value switch + { + "opik" => UpdateObservabilityDestinationResponseDataVariant9Type.Opik, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.CreateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.CreateByokKey.g.cs new file mode 100644 index 0000000..7e5a1c5 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.CreateByokKey.g.cs @@ -0,0 +1,653 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageByokClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateByokKeySecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_CreateByokKeySecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_CreateByokKeySecurityRequirement0, + }; + partial void PrepareCreateByokKeyArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenRouter.CreateBYOKKeyRequest request); + partial void PrepareCreateByokKeyRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenRouter.CreateBYOKKeyRequest request); + partial void ProcessCreateByokKeyResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateByokKeyResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create a BYOK provider credential
+ /// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateByokKeyAsync( + + global::OpenRouter.CreateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateByokKeyAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create a BYOK provider credential
+ /// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateByokKeyAsResponseAsync( + + global::OpenRouter.CreateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateByokKeyArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateByokKeySecurityRequirements, + operationName: "CreateByokKeyAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/byok", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateByokKeyRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateByokKey", + methodName: "CreateByokKeyAsync", + pathTemplate: "\"/byok\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateByokKey", + methodName: "CreateByokKeyAsync", + pathTemplate: "\"/byok\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateByokKey", + methodName: "CreateByokKeyAsync", + pathTemplate: "\"/byok\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateByokKeyResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateByokKey", + methodName: "CreateByokKeyAsync", + pathTemplate: "\"/byok\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateByokKey", + methodName: "CreateByokKeyAsync", + pathTemplate: "\"/byok\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + statusCode: __response.StatusCode) + { + ResponseBody = __content_400, + ResponseObject = __value_400, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + statusCode: __response.StatusCode) + { + ResponseBody = __content_403, + ResponseObject = __value_403, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateByokKeyResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.CreateBYOKKeyResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.CreateBYOKKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create a BYOK provider credential
+ /// Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Whether this credential should be created in a disabled state. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// The raw provider API key or credential. This value is encrypted at rest and never returned in API responses. + /// + /// + /// Optional human-readable name for the credential. + /// + /// + /// The upstream provider this credential authenticates against, as a lowercase slug (e.g. `openai`, `anthropic`, `amazon-bedrock`). + /// + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateByokKeyAsync( + string key, + global::OpenRouter.BYOKProviderSlug provider, + global::System.Collections.Generic.IList? allowedModels = default, + global::System.Collections.Generic.IList? allowedUserIds = default, + bool? disabled = default, + bool? isFallback = default, + string? name = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.CreateBYOKKeyRequest + { + AllowedModels = allowedModels, + AllowedUserIds = allowedUserIds, + Disabled = disabled, + IsFallback = isFallback, + Key = key, + Name = name, + Provider = provider, + WorkspaceId = workspaceId, + }; + + return await CreateByokKeyAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.DeleteByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.DeleteByokKey.g.cs new file mode 100644 index 0000000..bcc5111 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.DeleteByokKey.g.cs @@ -0,0 +1,544 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageByokClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_DeleteByokKeySecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_DeleteByokKeySecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_DeleteByokKeySecurityRequirement0, + }; + partial void PrepareDeleteByokKeyArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id); + partial void PrepareDeleteByokKeyRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id); + partial void ProcessDeleteByokKeyResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteByokKeyResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete a BYOK provider credential
+ /// Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteByokKeyAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteByokKeyAsResponseAsync( + id: id, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete a BYOK provider credential
+ /// Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DeleteByokKeyAsResponseAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteByokKeyArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteByokKeySecurityRequirements, + operationName: "DeleteByokKeyAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/byok/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteByokKeyRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteByokKey", + methodName: "DeleteByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteByokKey", + methodName: "DeleteByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteByokKey", + methodName: "DeleteByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteByokKeyResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteByokKey", + methodName: "DeleteByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteByokKey", + methodName: "DeleteByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteByokKeyResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.DeleteBYOKKeyResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.DeleteBYOKKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.UpdateByokKey.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.UpdateByokKey.g.cs new file mode 100644 index 0000000..a778bfc --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageByokClient.UpdateByokKey.g.cs @@ -0,0 +1,655 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageByokClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_UpdateByokKeySecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_UpdateByokKeySecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_UpdateByokKeySecurityRequirement0, + }; + partial void PrepareUpdateByokKeyArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + global::OpenRouter.UpdateBYOKKeyRequest request); + partial void PrepareUpdateByokKeyRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + global::OpenRouter.UpdateBYOKKeyRequest request); + partial void ProcessUpdateByokKeyResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateByokKeyResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update a BYOK provider credential
+ /// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateByokKeyAsync( + global::System.Guid id, + + global::OpenRouter.UpdateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateByokKeyAsResponseAsync( + id: id, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update a BYOK provider credential
+ /// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateByokKeyAsResponseAsync( + global::System.Guid id, + + global::OpenRouter.UpdateBYOKKeyRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateByokKeyArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateByokKeySecurityRequirements, + operationName: "UpdateByokKeyAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/byok/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateByokKeyRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateByokKey", + methodName: "UpdateByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateByokKey", + methodName: "UpdateByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateByokKey", + methodName: "UpdateByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateByokKeyResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateByokKey", + methodName: "UpdateByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateByokKey", + methodName: "UpdateByokKeyAsync", + pathTemplate: "$\"/byok/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + statusCode: __response.StatusCode) + { + ResponseBody = __content_400, + ResponseObject = __value_400, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateByokKeyResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.UpdateBYOKKeyResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.UpdateBYOKKeyResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update a BYOK provider credential
+ /// Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Optional allowlist of model slugs this credential may be used for. `null` means no restriction. + /// + /// + /// Optional allowlist of user IDs that may use this credential. `null` means no restriction. + /// + /// + /// Whether this credential is disabled. + /// + /// + /// Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried. + /// + /// + /// A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses. + /// + /// + /// Optional human-readable name for the credential. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateByokKeyAsync( + global::System.Guid id, + global::System.Collections.Generic.IList? allowedModels = default, + global::System.Collections.Generic.IList? allowedUserIds = default, + bool? disabled = default, + bool? isFallback = default, + string? key = default, + string? name = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.UpdateBYOKKeyRequest + { + AllowedModels = allowedModels, + AllowedUserIds = allowedUserIds, + Disabled = disabled, + IsFallback = isFallback, + Key = key, + Name = name, + }; + + return await UpdateByokKeyAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.CreateObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.CreateObservabilityDestination.g.cs new file mode 100644 index 0000000..52b4098 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.CreateObservabilityDestination.g.cs @@ -0,0 +1,698 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageObservabilityClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_CreateObservabilityDestinationSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_CreateObservabilityDestinationSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_CreateObservabilityDestinationSecurityRequirement0, + }; + partial void PrepareCreateObservabilityDestinationArguments( + global::System.Net.Http.HttpClient httpClient, + global::OpenRouter.CreateObservabilityDestinationRequest request); + partial void PrepareCreateObservabilityDestinationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::OpenRouter.CreateObservabilityDestinationRequest request); + partial void ProcessCreateObservabilityDestinationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessCreateObservabilityDestinationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Create an observability destination
+ /// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateObservabilityDestinationAsync( + + global::OpenRouter.CreateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await CreateObservabilityDestinationAsResponseAsync( + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Create an observability destination
+ /// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> CreateObservabilityDestinationAsResponseAsync( + + global::OpenRouter.CreateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareCreateObservabilityDestinationArguments( + httpClient: HttpClient, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_CreateObservabilityDestinationSecurityRequirements, + operationName: "CreateObservabilityDestinationAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: "/observability/destinations", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareCreateObservabilityDestinationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateObservabilityDestination", + methodName: "CreateObservabilityDestinationAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateObservabilityDestination", + methodName: "CreateObservabilityDestinationAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateObservabilityDestination", + methodName: "CreateObservabilityDestinationAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessCreateObservabilityDestinationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateObservabilityDestination", + methodName: "CreateObservabilityDestinationAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "CreateObservabilityDestination", + methodName: "CreateObservabilityDestinationAsync", + pathTemplate: "\"/observability/destinations\"", + httpMethod: "POST", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + statusCode: __response.StatusCode) + { + ResponseBody = __content_400, + ResponseObject = __value_400, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Forbidden - Authentication successful but insufficient permissions + if ((int)__response.StatusCode == 403) + { + string? __content_403 = null; + global::System.Exception? __exception_403 = null; + global::OpenRouter.ForbiddenResponse? __value_403 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + else + { + __content_403 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_403 = global::OpenRouter.ForbiddenResponse.FromJson(__content_403, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_403 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_403 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_403, + statusCode: __response.StatusCode) + { + ResponseBody = __content_403, + ResponseObject = __value_403, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Conflict - Resource conflict or concurrent modification + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::OpenRouter.ConflictResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::OpenRouter.ConflictResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::OpenRouter.ConflictResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + statusCode: __response.StatusCode) + { + ResponseBody = __content_409, + ResponseObject = __value_409, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessCreateObservabilityDestinationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.CreateObservabilityDestinationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.CreateObservabilityDestinationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Create an observability destination
+ /// Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided. + /// + /// + /// Provider-specific configuration. The shape depends on `type` and is validated server-side. + /// + /// + /// Whether this destination should be enabled immediately.
+ /// Default Value: true + /// + /// + /// Optional structured filter rules controlling which events are forwarded. + /// + /// + /// Human-readable name for the destination. + /// + /// + /// When true, request/response bodies are not forwarded — only metadata.
+ /// Default Value: false + /// + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + /// + /// The destination type. Only stable destination types are accepted. + /// + /// + /// Optional workspace ID. Defaults to the authenticated entity's default workspace. + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task CreateObservabilityDestinationAsync( + object config, + string name, + global::OpenRouter.CreateObservabilityDestinationRequestType type, + global::System.Collections.Generic.IList? apiKeyHashes = default, + bool? enabled = default, + global::OpenRouter.ObservabilityFilterRulesConfig? filterRules = default, + bool? privacyMode = default, + double? samplingRate = default, + global::System.Guid? workspaceId = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.CreateObservabilityDestinationRequest + { + ApiKeyHashes = apiKeyHashes, + Config = config, + Enabled = enabled, + FilterRules = filterRules, + Name = name, + PrivacyMode = privacyMode, + SamplingRate = samplingRate, + Type = type, + WorkspaceId = workspaceId, + }; + + return await CreateObservabilityDestinationAsync( + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.DeleteObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.DeleteObservabilityDestination.g.cs new file mode 100644 index 0000000..0aab3ba --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.DeleteObservabilityDestination.g.cs @@ -0,0 +1,544 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageObservabilityClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_DeleteObservabilityDestinationSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_DeleteObservabilityDestinationSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_DeleteObservabilityDestinationSecurityRequirement0, + }; + partial void PrepareDeleteObservabilityDestinationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id); + partial void PrepareDeleteObservabilityDestinationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id); + partial void ProcessDeleteObservabilityDestinationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessDeleteObservabilityDestinationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Delete an observability destination
+ /// Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task DeleteObservabilityDestinationAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await DeleteObservabilityDestinationAsResponseAsync( + id: id, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Delete an observability destination
+ /// Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> DeleteObservabilityDestinationAsResponseAsync( + global::System.Guid id, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + PrepareArguments( + client: HttpClient); + PrepareDeleteObservabilityDestinationArguments( + httpClient: HttpClient, + id: ref id); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_DeleteObservabilityDestinationSecurityRequirements, + operationName: "DeleteObservabilityDestinationAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/observability/destinations/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Delete, + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareDeleteObservabilityDestinationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteObservabilityDestination", + methodName: "DeleteObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteObservabilityDestination", + methodName: "DeleteObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteObservabilityDestination", + methodName: "DeleteObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessDeleteObservabilityDestinationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteObservabilityDestination", + methodName: "DeleteObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "DeleteObservabilityDestination", + methodName: "DeleteObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "DELETE", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessDeleteObservabilityDestinationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.DeleteObservabilityDestinationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.DeleteObservabilityDestinationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.UpdateObservabilityDestination.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.UpdateObservabilityDestination.g.cs new file mode 100644 index 0000000..1685aeb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageObservabilityClient.UpdateObservabilityDestination.g.cs @@ -0,0 +1,698 @@ + +#nullable enable + +namespace OpenRouter +{ + public partial class SubpackageObservabilityClient + { + + + private static readonly global::OpenRouter.EndPointSecurityRequirement s_UpdateObservabilityDestinationSecurityRequirement0 = + new global::OpenRouter.EndPointSecurityRequirement + { + Authorizations = new global::OpenRouter.EndPointAuthorizationRequirement[] + { new global::OpenRouter.EndPointAuthorizationRequirement + { + Type = "Http", + SchemeId = "Bearer", + Location = "Header", + Name = "Bearer", + FriendlyName = "Bearer", + }, + }, + }; + private static readonly global::OpenRouter.EndPointSecurityRequirement[] s_UpdateObservabilityDestinationSecurityRequirements = + new global::OpenRouter.EndPointSecurityRequirement[] + { s_UpdateObservabilityDestinationSecurityRequirement0, + }; + partial void PrepareUpdateObservabilityDestinationArguments( + global::System.Net.Http.HttpClient httpClient, + ref global::System.Guid id, + global::OpenRouter.UpdateObservabilityDestinationRequest request); + partial void PrepareUpdateObservabilityDestinationRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::System.Guid id, + global::OpenRouter.UpdateObservabilityDestinationRequest request); + partial void ProcessUpdateObservabilityDestinationResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessUpdateObservabilityDestinationResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Update an observability destination
+ /// Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateObservabilityDestinationAsync( + global::System.Guid id, + + global::OpenRouter.UpdateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __response = await UpdateObservabilityDestinationAsResponseAsync( + id: id, + + request: request, + requestOptions: requestOptions, + cancellationToken: cancellationToken + ).ConfigureAwait(false); + + return __response.Body; + } + /// + /// Update an observability destination
+ /// Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task> UpdateObservabilityDestinationAsResponseAsync( + global::System.Guid id, + + global::OpenRouter.UpdateObservabilityDestinationRequest request, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: HttpClient); + PrepareUpdateObservabilityDestinationArguments( + httpClient: HttpClient, + id: ref id, + request: request); + + + var __authorizations = global::OpenRouter.EndPointSecurityResolver.ResolveAuthorizations( + availableAuthorizations: Authorizations, + securityRequirements: s_UpdateObservabilityDestinationSecurityRequirements, + operationName: "UpdateObservabilityDestinationAsync"); + + using var __timeoutCancellationTokenSource = global::OpenRouter.AutoSDKRequestOptionsSupport.CreateTimeoutCancellationTokenSource( + clientOptions: Options, + requestOptions: requestOptions, + cancellationToken: cancellationToken); + var __effectiveCancellationToken = __timeoutCancellationTokenSource?.Token ?? cancellationToken; + var __effectiveReadResponseAsString = global::OpenRouter.AutoSDKRequestOptionsSupport.GetReadResponseAsString( + clientOptions: Options, + requestOptions: requestOptions, + fallbackValue: ReadResponseAsString); + var __maxAttempts = global::OpenRouter.AutoSDKRequestOptionsSupport.GetMaxAttempts( + clientOptions: Options, + requestOptions: requestOptions, + supportsRetry: true); + + global::System.Net.Http.HttpRequestMessage __CreateHttpRequest() + { + + var __pathBuilder = new global::OpenRouter.PathBuilder( + path: $"/observability/destinations/{id}", + baseUri: HttpClient.BaseAddress); + var __path = __pathBuilder.ToString(); + __path = global::OpenRouter.AutoSDKRequestOptionsSupport.AppendQueryParameters( + path: __path, + clientParameters: Options.QueryParameters, + requestParameters: requestOptions?.QueryParameters); + var __httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: new global::System.Net.Http.HttpMethod("PATCH"), + requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); +#if NET6_0_OR_GREATER + __httpRequest.Version = global::System.Net.HttpVersion.Version11; + __httpRequest.VersionPolicy = global::System.Net.Http.HttpVersionPolicy.RequestVersionOrHigher; +#endif + + foreach (var __authorization in __authorizations) + { + if (__authorization.Type == "Http" || + __authorization.Type == "OAuth2" || + __authorization.Type == "OpenIdConnect") + { + __httpRequest.Headers.Authorization = new global::System.Net.Http.Headers.AuthenticationHeaderValue( + scheme: __authorization.Name, + parameter: __authorization.Value); + } + else if (__authorization.Type == "ApiKey" && + __authorization.Location == "Header") + { + __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); + } + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: __httpRequestContentBody, + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + __httpRequest.Content = __httpRequestContent; + global::OpenRouter.AutoSDKRequestOptionsSupport.ApplyHeaders( + request: __httpRequest, + clientHeaders: Options.Headers, + requestHeaders: requestOptions?.Headers); + + PrepareRequest( + client: HttpClient, + request: __httpRequest); + PrepareUpdateObservabilityDestinationRequest( + httpClient: HttpClient, + httpRequestMessage: __httpRequest, + id: id!, + request: request); + + return __httpRequest; + } + + global::System.Net.Http.HttpRequestMessage? __httpRequest = null; + global::System.Net.Http.HttpResponseMessage? __response = null; + var __attemptNumber = 0; + try + { + for (var __attempt = 1; __attempt <= __maxAttempts; __attempt++) + { + __attemptNumber = __attempt; + __httpRequest = __CreateHttpRequest(); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnBeforeRequestAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateObservabilityDestination", + methodName: "UpdateObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + try + { + __response = await HttpClient.SendAsync( + request: __httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + } + catch (global::System.Net.Http.HttpRequestException __exception) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: null, + attempt: __attempt); + var __willRetry = __attempt < __maxAttempts && !__effectiveCancellationToken.IsCancellationRequested; + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateObservabilityDestination", + methodName: "UpdateObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: null, + exception: __exception, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: __willRetry, + retryDelay: __willRetry ? __retryDelay : (global::System.TimeSpan?)null, + retryReason: "exception", + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + if (!__willRetry) + { + throw; + } + + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + if (__response != null && + __attempt < __maxAttempts && + global::OpenRouter.AutoSDKRequestOptionsSupport.ShouldRetryStatusCode(__response.StatusCode)) + { + var __retryDelay = global::OpenRouter.AutoSDKRequestOptionsSupport.GetRetryDelay( + clientOptions: Options, + requestOptions: requestOptions, + response: __response, + attempt: __attempt); + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateObservabilityDestination", + methodName: "UpdateObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attempt, + maxAttempts: __maxAttempts, + willRetry: true, + retryDelay: __retryDelay, + retryReason: "status:" + ((int)__response.StatusCode).ToString(global::System.Globalization.CultureInfo.InvariantCulture), + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + __response.Dispose(); + __response = null; + __httpRequest.Dispose(); + __httpRequest = null; + await global::OpenRouter.AutoSDKRequestOptionsSupport.DelayBeforeRetryAsync( + retryDelay: __retryDelay, + cancellationToken: __effectiveCancellationToken).ConfigureAwait(false); + continue; + } + + break; + } + + if (__response == null) + { + throw new global::System.InvalidOperationException("No response received."); + } + + using (__response) + { + + ProcessResponse( + client: HttpClient, + response: __response); + ProcessUpdateObservabilityDestinationResponse( + httpClient: HttpClient, + httpResponseMessage: __response); + if (__response.IsSuccessStatusCode) + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterSuccessAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateObservabilityDestination", + methodName: "UpdateObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + else + { + await global::OpenRouter.AutoSDKRequestOptionsSupport.OnAfterErrorAsync( + clientOptions: Options, + context: global::OpenRouter.AutoSDKRequestOptionsSupport.CreateHookContext( + operationId: "UpdateObservabilityDestination", + methodName: "UpdateObservabilityDestinationAsync", + pathTemplate: "$\"/observability/destinations/{id}\"", + httpMethod: "PATCH", + baseUri: BaseUri, + request: __httpRequest!, + response: __response, + exception: null, + clientOptions: Options, + requestOptions: requestOptions, + attempt: __attemptNumber, + maxAttempts: __maxAttempts, + willRetry: false, + retryDelay: null, + retryReason: global::System.String.Empty, + cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); + } + // Bad Request - Invalid request parameters or malformed input + if ((int)__response.StatusCode == 400) + { + string? __content_400 = null; + global::System.Exception? __exception_400 = null; + global::OpenRouter.BadRequestResponse? __value_400 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + else + { + __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_400 = global::OpenRouter.BadRequestResponse.FromJson(__content_400, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_400 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_400, + statusCode: __response.StatusCode) + { + ResponseBody = __content_400, + ResponseObject = __value_400, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Unauthorized - Authentication required or invalid credentials + if ((int)__response.StatusCode == 401) + { + string? __content_401 = null; + global::System.Exception? __exception_401 = null; + global::OpenRouter.UnauthorizedResponse? __value_401 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + else + { + __content_401 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_401 = global::OpenRouter.UnauthorizedResponse.FromJson(__content_401, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_401 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_401 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_401, + statusCode: __response.StatusCode) + { + ResponseBody = __content_401, + ResponseObject = __value_401, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Not Found - Resource does not exist + if ((int)__response.StatusCode == 404) + { + string? __content_404 = null; + global::System.Exception? __exception_404 = null; + global::OpenRouter.NotFoundResponse? __value_404 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + else + { + __content_404 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_404 = global::OpenRouter.NotFoundResponse.FromJson(__content_404, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_404 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_404 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_404, + statusCode: __response.StatusCode) + { + ResponseBody = __content_404, + ResponseObject = __value_404, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Conflict - Resource conflict or concurrent modification + if ((int)__response.StatusCode == 409) + { + string? __content_409 = null; + global::System.Exception? __exception_409 = null; + global::OpenRouter.ConflictResponse? __value_409 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_409 = global::OpenRouter.ConflictResponse.FromJson(__content_409, JsonSerializerContext); + } + else + { + __content_409 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_409 = global::OpenRouter.ConflictResponse.FromJson(__content_409, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_409 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_409 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_409, + statusCode: __response.StatusCode) + { + ResponseBody = __content_409, + ResponseObject = __value_409, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + // Internal Server Error - Unexpected server error + if ((int)__response.StatusCode == 500) + { + string? __content_500 = null; + global::System.Exception? __exception_500 = null; + global::OpenRouter.InternalServerResponse? __value_500 = null; + try + { + if (__effectiveReadResponseAsString) + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + else + { + __content_500 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); + + __value_500 = global::OpenRouter.InternalServerResponse.FromJson(__content_500, JsonSerializerContext); + } + } + catch (global::System.Exception __ex) + { + __exception_500 = __ex; + } + + throw new global::OpenRouter.ApiException( + message: __content_500 ?? __response.ReasonPhrase ?? string.Empty, + innerException: __exception_500, + statusCode: __response.StatusCode) + { + ResponseBody = __content_500, + ResponseObject = __value_500, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + + if (__effectiveReadResponseAsString) + { + var __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + ProcessResponseContent( + client: HttpClient, + response: __response, + content: ref __content); + ProcessUpdateObservabilityDestinationResponseContent( + httpClient: HttpClient, + httpResponseMessage: __response, + content: ref __content); + + try + { + __response.EnsureSuccessStatusCode(); + + var __value = global::OpenRouter.UpdateObservabilityDestinationResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + else + { + try + { + __response.EnsureSuccessStatusCode(); + using var __content = await __response.Content.ReadAsStreamAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + + var __value = await global::OpenRouter.UpdateObservabilityDestinationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::OpenRouter.AutoSDKHttpResponse( + statusCode: __response.StatusCode, + headers: global::OpenRouter.AutoSDKHttpResponse.CreateHeaders(__response), + requestUri: __response.RequestMessage?.RequestUri, + body: __value); + } + catch (global::System.Exception __ex) + { + string? __content = null; + try + { + __content = await __response.Content.ReadAsStringAsync( + #if NET5_0_OR_GREATER + __effectiveCancellationToken + #endif + ).ConfigureAwait(false); + } + catch (global::System.Exception) + { + } + + throw new global::OpenRouter.ApiException( + message: __content ?? __response.ReasonPhrase ?? string.Empty, + innerException: __ex, + statusCode: __response.StatusCode) + { + ResponseBody = __content, + ResponseHeaders = global::System.Linq.Enumerable.ToDictionary( + __response.Headers, + h => h.Key, + h => h.Value), + }; + } + } + + } + } + finally + { + __httpRequest?.Dispose(); + } + } + /// + /// Update an observability destination
+ /// Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required. + ///
+ /// + /// + /// Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided. + /// + /// + /// Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value. + /// + /// + /// Whether the destination is enabled. + /// + /// + /// Optional structured filter rules. `null` clears the rules. Omitting keeps the current value. + /// + /// + /// Human-readable name for the destination. + /// + /// + /// When true, request/response bodies are not forwarded — only metadata. + /// + /// + /// Sampling rate between 0 and 1 (1 = 100%). + /// + /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task UpdateObservabilityDestinationAsync( + global::System.Guid id, + global::System.Collections.Generic.IList? apiKeyHashes = default, + object? config = default, + bool? enabled = default, + global::OpenRouter.UpdateObservabilityDestinationRequestFilterRules? filterRules = default, + string? name = default, + bool? privacyMode = default, + double? samplingRate = default, + global::OpenRouter.AutoSDKRequestOptions? requestOptions = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var __request = new global::OpenRouter.UpdateObservabilityDestinationRequest + { + ApiKeyHashes = apiKeyHashes, + Config = config, + Enabled = enabled, + FilterRules = filterRules, + Name = name, + PrivacyMode = privacyMode, + SamplingRate = samplingRate, + }; + + return await UpdateObservabilityDestinationAsync( + id: id, + request: __request, + requestOptions: requestOptions, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index c2cb446..649abe9 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -769,6 +769,76 @@ } } } + }, + "post": { + "operationId": "create-byok-key", + "summary": "Create a BYOK provider credential", + "description": "Create a new bring-your-own-key (BYOK) provider credential. The raw key is encrypted at rest and never returned in API responses. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_byok" + ], + "parameters": [], + "responses": { + "201": { + "description": "BYOK credential created successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateBYOKKeyResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "403": { + "description": "Forbidden - Authentication successful but insufficient permissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateBYOKKeyRequest" + } + } + } + } } }, "/byok/{id}": { @@ -833,6 +903,149 @@ } } } + }, + "delete": { + "operationId": "delete-byok-key", + "summary": "Delete a BYOK provider credential", + "description": "Delete (soft-delete) a bring-your-own-key (BYOK) provider credential by its `id`. The encrypted key material is wiped and the record is marked as deleted. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_byok" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The BYOK credential ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "BYOK credential deleted successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteBYOKKeyResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + }, + "patch": { + "operationId": "update-byok-key", + "summary": "Update a BYOK provider credential", + "description": "Update an existing bring-your-own-key (BYOK) provider credential by its `id`. Include the `key` field to rotate the raw provider API key in-place (the previous key material is overwritten). [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_byok" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The BYOK credential ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "BYOK credential updated successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateBYOKKeyResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateBYOKKeyRequest" + } + } + } + } } }, "/chat/completions": { @@ -3380,35 +3593,32 @@ } } } - } - }, - "/observability/destinations/{id}": { - "get": { - "operationId": "get-observability-destination", - "summary": "Get an observability destination", - "description": "Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + }, + "post": { + "operationId": "create-observability-destination", + "summary": "Create an observability destination", + "description": "Create a new observability destination. A maximum of 5 destinations per type is allowed. Defaults to the authenticated entity's default workspace; use the `workspace_id` body field to scope to a different workspace. [Management key](/docs/guides/overview/auth/management-api-keys) required.", "tags": [ "subpackage_observability" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "The destination ID (UUID).", - "required": true, - "schema": { - "type": "string", - "format": "uuid" - } - } - ], + "parameters": [], "responses": { - "200": { - "description": "The observability destination", + "201": { + "description": "Destination created successfully", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GetObservabilityDestinationResponse" + "$ref": "#/components/schemas/CreateObservabilityDestinationResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" } } } @@ -3423,12 +3633,22 @@ } } }, - "404": { - "description": "Not Found - Resource does not exist", + "403": { + "description": "Forbidden - Authentication successful but insufficient permissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/NotFoundResponse" + "$ref": "#/components/schemas/ForbiddenResponse" + } + } + } + }, + "409": { + "description": "Conflict - Resource conflict or concurrent modification", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConflictResponse" } } } @@ -3443,6 +3663,232 @@ } } } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateObservabilityDestinationRequest" + } + } + } + } + } + }, + "/observability/destinations/{id}": { + "get": { + "operationId": "get-observability-destination", + "summary": "Get an observability destination", + "description": "Fetch a single observability destination by its UUID. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_observability" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The destination ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "The observability destination", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GetObservabilityDestinationResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + }, + "delete": { + "operationId": "delete-observability-destination", + "summary": "Delete an observability destination", + "description": "Delete an existing observability destination. This performs a soft delete. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_observability" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The destination ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Destination deleted successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DeleteObservabilityDestinationResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + } + }, + "patch": { + "operationId": "update-observability-destination", + "summary": "Update an observability destination", + "description": "Update an existing observability destination. Only the fields provided in the request body are updated. [Management key](/docs/guides/overview/auth/management-api-keys) required.", + "tags": [ + "subpackage_observability" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The destination ID (UUID).", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "200": { + "description": "Destination updated successfully", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponse" + } + } + } + }, + "400": { + "description": "Bad Request - Invalid request parameters or malformed input", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BadRequestResponse" + } + } + } + }, + "401": { + "description": "Unauthorized - Authentication required or invalid credentials", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UnauthorizedResponse" + } + } + } + }, + "404": { + "description": "Not Found - Resource does not exist", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/NotFoundResponse" + } + } + } + }, + "409": { + "description": "Conflict - Resource conflict or concurrent modification", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ConflictResponse" + } + } + } + }, + "500": { + "description": "Internal Server Error - Unexpected server error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InternalServerResponse" + } + } + } + } + }, + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequest" + } + } + } } } }, @@ -15403,19 +15849,9 @@ ], "title": "ListBYOKKeysResponse" }, - "GetByokKeyResponseData": { + "CreateBYOKKeyRequest": { "type": "object", "properties": { - "allowed_api_key_hashes": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." - }, "allowed_models": { "type": [ "array", @@ -15436,26 +15872,17 @@ }, "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." }, - "created_at": { - "type": "string", - "description": "ISO timestamp of when the credential was created." - }, "disabled": { "type": "boolean", - "description": "Whether this credential is currently disabled." - }, - "id": { - "type": "string", - "format": "uuid", - "description": "Stable public identifier for this BYOK credential." + "description": "Whether this credential should be created in a disabled state." }, "is_fallback": { "type": "boolean", "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." }, - "label": { + "key": { "type": "string", - "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." + "description": "The raw provider API key or credential. This value is encrypted at rest and never returned in API responses." }, "name": { "type": [ @@ -15467,5028 +15894,4605 @@ "provider": { "$ref": "#/components/schemas/BYOKProviderSlug" }, - "sort_order": { - "type": "integer", - "description": "Position within the provider — credentials are tried in ascending sort order." - }, "workspace_id": { "type": "string", "format": "uuid", - "description": "ID of the workspace this credential belongs to." + "description": "Optional workspace ID. Defaults to the authenticated entity's default workspace." } }, "required": [ - "allowed_api_key_hashes", - "allowed_models", - "allowed_user_ids", - "created_at", - "disabled", - "id", - "is_fallback", - "label", - "provider", - "sort_order", - "workspace_id" + "key", + "provider" ], - "description": "The BYOK credential.", - "title": "GetByokKeyResponseData" + "title": "CreateBYOKKeyRequest" }, - "GetBYOKKeyResponse": { + "CreateByokKeyResponseData": { "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/GetByokKeyResponseData" - } - }, - "required": [ - "data" - ], - "title": "GetBYOKKeyResponse" - }, - "ChatDebugOptions": { - "type": "object", - "properties": { - "echo_upstream_body": { - "type": "boolean", - "description": "If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode." - } - }, - "description": "Debug options for inspecting request transformations (streaming only)", - "title": "ChatDebugOptions" - }, - "ChatAudioOutput": { - "type": "object", - "properties": { - "data": { + "allowed_api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." + }, + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." + }, + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "created_at": { "type": "string", - "description": "Base64 encoded audio data" + "description": "ISO timestamp of when the credential was created." }, - "expires_at": { - "type": "integer", - "description": "Audio expiration timestamp" + "disabled": { + "type": "boolean", + "description": "Whether this credential is currently disabled." }, "id": { "type": "string", - "description": "Audio output identifier" + "format": "uuid", + "description": "Stable public identifier for this BYOK credential." }, - "transcript": { - "type": "string", - "description": "Audio transcript" - } - }, - "description": "Audio output data or reference", - "title": "ChatAudioOutput" - }, - "ChatContentItemsDiscriminatorMappingFileFile": { - "type": "object", - "properties": { - "file_data": { - "type": "string", - "description": "File content as base64 data URL or URL" + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." }, - "file_id": { + "label": { "type": "string", - "description": "File ID for previously uploaded files" + "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." }, - "filename": { + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." + }, + "provider": { + "$ref": "#/components/schemas/BYOKProviderSlug" + }, + "sort_order": { + "type": "integer", + "description": "Position within the provider — credentials are tried in ascending sort order." + }, + "workspace_id": { "type": "string", - "description": "Original filename" + "format": "uuid", + "description": "ID of the workspace this credential belongs to." } }, - "title": "ChatContentItemsDiscriminatorMappingFileFile" - }, - "ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail": { - "type": "string", - "enum": [ - "auto", - "low", - "high" + "required": [ + "allowed_api_key_hashes", + "allowed_models", + "allowed_user_ids", + "created_at", + "disabled", + "id", + "is_fallback", + "label", + "provider", + "sort_order", + "workspace_id" ], - "description": "Image detail level for vision models", - "title": "ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail" + "description": "The created BYOK credential.", + "title": "CreateByokKeyResponseData" }, - "ChatContentItemsDiscriminatorMappingImageUrlImageUrl": { + "CreateBYOKKeyResponse": { "type": "object", "properties": { - "detail": { - "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail", - "description": "Image detail level for vision models" - }, - "url": { - "type": "string", - "description": "URL of the image (data: URLs supported)" + "data": { + "$ref": "#/components/schemas/CreateByokKeyResponseData" } }, "required": [ - "url" + "data" ], - "title": "ChatContentItemsDiscriminatorMappingImageUrlImageUrl" + "title": "CreateBYOKKeyResponse" }, - "ChatContentItemsDiscriminatorMappingInputAudioInputAudio": { + "GetByokKeyResponseData": { "type": "object", "properties": { - "data": { + "allowed_api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." + }, + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." + }, + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "created_at": { "type": "string", - "description": "Base64 encoded audio data" + "description": "ISO timestamp of when the credential was created." }, - "format": { + "disabled": { + "type": "boolean", + "description": "Whether this credential is currently disabled." + }, + "id": { "type": "string", - "description": "Audio format (e.g., wav, mp3, flac, m4a, ogg, aiff, aac, pcm16, pcm24). Supported formats vary by provider." + "format": "uuid", + "description": "Stable public identifier for this BYOK credential." + }, + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." + }, + "label": { + "type": "string", + "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." + }, + "provider": { + "$ref": "#/components/schemas/BYOKProviderSlug" + }, + "sort_order": { + "type": "integer", + "description": "Position within the provider — credentials are tried in ascending sort order." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this credential belongs to." } }, "required": [ - "data", - "format" - ], - "title": "ChatContentItemsDiscriminatorMappingInputAudioInputAudio" - }, - "LegacyChatContentVideoType": { - "type": "string", - "enum": [ - "input_video" + "allowed_api_key_hashes", + "allowed_models", + "allowed_user_ids", + "created_at", + "disabled", + "id", + "is_fallback", + "label", + "provider", + "sort_order", + "workspace_id" ], - "title": "LegacyChatContentVideoType" + "description": "The BYOK credential.", + "title": "GetByokKeyResponseData" }, - "ChatContentVideoInput": { + "GetBYOKKeyResponse": { "type": "object", "properties": { - "url": { - "type": "string", - "description": "URL of the video (data: URLs supported)" + "data": { + "$ref": "#/components/schemas/GetByokKeyResponseData" } }, "required": [ - "url" - ], - "description": "Video input object", - "title": "ChatContentVideoInput" - }, - "ChatContentCacheControlType": { - "type": "string", - "enum": [ - "ephemeral" + "data" ], - "title": "ChatContentCacheControlType" + "title": "GetBYOKKeyResponse" }, - "ChatContentCacheControl": { + "DeleteBYOKKeyResponse": { "type": "object", "properties": { - "ttl": { - "$ref": "#/components/schemas/AnthropicCacheControlTtl" - }, - "type": { - "$ref": "#/components/schemas/ChatContentCacheControlType" - } - }, + "deleted": { + "type": "boolean", + "enum": [ + true + ], + "description": "Confirmation that the BYOK credential was deleted." + } + }, "required": [ - "type" - ], - "description": "Cache control for the content part", - "title": "ChatContentCacheControl" - }, - "ChatContentTextType": { - "type": "string", - "enum": [ - "text" - ], - "title": "ChatContentTextType" - }, - "ChatContentVideoType": { - "type": "string", - "enum": [ - "video_url" + "deleted" ], - "title": "ChatContentVideoType" + "title": "DeleteBYOKKeyResponse" }, - "ChatContentItems": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "file" - ], - "description": "Discriminator value: file" - }, - "file": { - "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingFileFile" - } - }, - "required": [ - "type", - "file" - ], - "description": "File content part for document processing" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "image_url" - ], - "description": "Discriminator value: image_url" - }, - "image_url": { - "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingImageUrlImageUrl" - } - }, - "required": [ - "type", - "image_url" + "UpdateBYOKKeyRequest": { + "type": "object", + "properties": { + "allowed_models": { + "type": [ + "array", + "null" ], - "description": "Image content part for vision models" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "input_audio" - ], - "description": "Discriminator value: input_audio" - }, - "input_audio": { - "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingInputAudioInputAudio" - } + "items": { + "type": "string" }, - "required": [ - "type", - "input_audio" - ], - "description": "Audio input content part. Supported audio formats vary by provider." + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/LegacyChatContentVideoType" - }, - "video_url": { - "$ref": "#/components/schemas/ChatContentVideoInput" - } - }, - "required": [ - "type", - "video_url" + "allowed_user_ids": { + "type": [ + "array", + "null" ], - "description": "Video input content part (legacy format - deprecated)" - }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/ChatContentTextType" - }, - "cache_control": { - "$ref": "#/components/schemas/ChatContentCacheControl" - }, - "text": { - "type": "string" - } + "items": { + "type": "string" }, - "required": [ - "type", - "text" - ], - "description": "Text content part" + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/ChatContentVideoType" - }, - "video_url": { - "$ref": "#/components/schemas/ChatContentVideoInput" - } - }, - "required": [ - "type", - "video_url" - ], - "description": "Video input content part" - } - ], - "discriminator": { - "propertyName": "type" - }, - "description": "Content part for chat completion messages", - "title": "ChatContentItems" - }, - "ChatMessagesDiscriminatorMappingAssistantContent1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatContentItems" - }, - "title": "ChatMessagesDiscriminatorMappingAssistantContent1" - }, - "ChatMessagesDiscriminatorMappingAssistantContent": { - "oneOf": [ - { - "type": "string" + "disabled": { + "type": "boolean", + "description": "Whether this credential is disabled." }, - { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent1" + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." }, - { - "description": "Any type" - } - ], - "description": "Assistant message content", - "title": "ChatMessagesDiscriminatorMappingAssistantContent" - }, - "ChatAssistantImagesItemsImageUrl": { - "type": "object", - "properties": { - "url": { + "key": { "type": "string", - "description": "URL or base64-encoded data of the generated image" + "description": "A new raw provider API key to rotate the credential in-place. The previous key material is overwritten and the masked label is regenerated. Encrypted at rest and never returned in API responses." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Optional human-readable name for the credential." } }, - "required": [ - "url" - ], - "title": "ChatAssistantImagesItemsImageUrl" + "title": "UpdateBYOKKeyRequest" }, - "ChatAssistantImagesItems": { + "UpdateByokKeyResponseData": { "type": "object", "properties": { - "image_url": { - "$ref": "#/components/schemas/ChatAssistantImagesItemsImageUrl" - } - }, - "required": [ - "image_url" - ], - "title": "ChatAssistantImagesItems" - }, - "ChatAssistantImages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatAssistantImagesItems" - }, - "description": "Generated images from image generation models", - "title": "ChatAssistantImages" - }, - "ReasoningDetailUnion": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "reasoning.encrypted" - ], - "description": "Discriminator value: reasoning.encrypted" - }, - "data": { - "type": "string" - }, - "format": { - "$ref": "#/components/schemas/ReasoningFormat" - }, - "id": { - "type": [ - "string", - "null" - ] - }, - "index": { - "type": "integer" - } - }, - "required": [ - "type", - "data" + "allowed_api_key_hashes": { + "type": [ + "array", + "null" ], - "description": "Reasoning detail encrypted schema" + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) that may use this credential. `null` means no restriction." }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "reasoning.summary" - ], - "description": "Discriminator value: reasoning.summary" - }, - "format": { - "$ref": "#/components/schemas/ReasoningFormat" - }, - "id": { - "type": [ - "string", - "null" - ] - }, - "index": { - "type": "integer" - }, - "summary": { - "type": "string" - } - }, - "required": [ - "type", - "summary" + "allowed_models": { + "type": [ + "array", + "null" ], - "description": "Reasoning detail summary schema" + "items": { + "type": "string" + }, + "description": "Optional allowlist of model slugs this credential may be used for. `null` means no restriction." }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "reasoning.text" - ], - "description": "Discriminator value: reasoning.text" - }, - "format": { - "$ref": "#/components/schemas/ReasoningFormat" - }, - "id": { - "type": [ - "string", - "null" - ] - }, - "index": { - "type": "integer" - }, - "signature": { - "type": [ - "string", - "null" - ] - }, - "text": { - "type": [ - "string", - "null" - ] - } + "allowed_user_ids": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" }, - "required": [ - "type" + "description": "Optional allowlist of user IDs that may use this credential. `null` means no restriction." + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the credential was created." + }, + "disabled": { + "type": "boolean", + "description": "Whether this credential is currently disabled." + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this BYOK credential." + }, + "is_fallback": { + "type": "boolean", + "description": "Whether this credential is treated as a fallback — used only after non-fallback keys for the same provider have been tried." + }, + "label": { + "type": "string", + "description": "Short masked snippet of the key (e.g. the first/last few characters) used to identify it in the UI." + }, + "name": { + "type": [ + "string", + "null" ], - "description": "Reasoning detail text schema" + "description": "Optional human-readable name for the credential." + }, + "provider": { + "$ref": "#/components/schemas/BYOKProviderSlug" + }, + "sort_order": { + "type": "integer", + "description": "Position within the provider — credentials are tried in ascending sort order." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this credential belongs to." + } + }, + "required": [ + "allowed_api_key_hashes", + "allowed_models", + "allowed_user_ids", + "created_at", + "disabled", + "id", + "is_fallback", + "label", + "provider", + "sort_order", + "workspace_id" + ], + "description": "The updated BYOK credential.", + "title": "UpdateByokKeyResponseData" + }, + "UpdateBYOKKeyResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/UpdateByokKeyResponseData" } + }, + "required": [ + "data" ], - "discriminator": { - "propertyName": "type" + "title": "UpdateBYOKKeyResponse" + }, + "ChatDebugOptions": { + "type": "object", + "properties": { + "echo_upstream_body": { + "type": "boolean", + "description": "If true, includes the transformed upstream request body in a debug chunk at the start of the stream. Only works with streaming mode." + } }, - "description": "Reasoning detail union schema", - "title": "ReasoningDetailUnion" + "description": "Debug options for inspecting request transformations (streaming only)", + "title": "ChatDebugOptions" }, - "ChatReasoningDetails": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ReasoningDetailUnion" + "ChatAudioOutput": { + "type": "object", + "properties": { + "data": { + "type": "string", + "description": "Base64 encoded audio data" + }, + "expires_at": { + "type": "integer", + "description": "Audio expiration timestamp" + }, + "id": { + "type": "string", + "description": "Audio output identifier" + }, + "transcript": { + "type": "string", + "description": "Audio transcript" + } }, - "description": "Reasoning details for extended thinking models", - "title": "ChatReasoningDetails" + "description": "Audio output data or reference", + "title": "ChatAudioOutput" }, - "ChatToolCallFunction": { + "ChatContentItemsDiscriminatorMappingFileFile": { "type": "object", "properties": { - "arguments": { + "file_data": { "type": "string", - "description": "Function arguments as JSON string" + "description": "File content as base64 data URL or URL" }, - "name": { + "file_id": { "type": "string", - "description": "Function name to call" + "description": "File ID for previously uploaded files" + }, + "filename": { + "type": "string", + "description": "Original filename" } }, - "required": [ - "arguments", - "name" - ], - "title": "ChatToolCallFunction" + "title": "ChatContentItemsDiscriminatorMappingFileFile" }, - "ChatToolCallType": { + "ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail": { "type": "string", "enum": [ - "function" + "auto", + "low", + "high" ], - "title": "ChatToolCallType" + "description": "Image detail level for vision models", + "title": "ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail" }, - "ChatToolCall": { + "ChatContentItemsDiscriminatorMappingImageUrlImageUrl": { "type": "object", "properties": { - "function": { - "$ref": "#/components/schemas/ChatToolCallFunction" + "detail": { + "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingImageUrlImageUrlDetail", + "description": "Image detail level for vision models" }, - "id": { + "url": { "type": "string", - "description": "Tool call identifier" - }, - "type": { - "$ref": "#/components/schemas/ChatToolCallType" + "description": "URL of the image (data: URLs supported)" } }, "required": [ - "function", - "id", - "type" + "url" ], - "description": "Tool call made by the assistant", - "title": "ChatToolCall" + "title": "ChatContentItemsDiscriminatorMappingImageUrlImageUrl" }, - "ChatContentText": { + "ChatContentItemsDiscriminatorMappingInputAudioInputAudio": { "type": "object", "properties": { - "cache_control": { - "$ref": "#/components/schemas/ChatContentCacheControl" - }, - "text": { - "type": "string" + "data": { + "type": "string", + "description": "Base64 encoded audio data" }, - "type": { - "$ref": "#/components/schemas/ChatContentTextType" + "format": { + "type": "string", + "description": "Audio format (e.g., wav, mp3, flac, m4a, ogg, aiff, aac, pcm16, pcm24). Supported formats vary by provider." } }, "required": [ - "text", - "type" + "data", + "format" ], - "description": "Text content part", - "title": "ChatContentText" + "title": "ChatContentItemsDiscriminatorMappingInputAudioInputAudio" }, - "ChatMessagesDiscriminatorMappingDeveloperContent1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatContentText" - }, - "title": "ChatMessagesDiscriminatorMappingDeveloperContent1" - }, - "ChatMessagesDiscriminatorMappingDeveloperContent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingDeveloperContent1" - } + "LegacyChatContentVideoType": { + "type": "string", + "enum": [ + "input_video" ], - "description": "Developer message content", - "title": "ChatMessagesDiscriminatorMappingDeveloperContent" - }, - "ChatSystemMessageContent1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatContentText" - }, - "title": "ChatSystemMessageContent1" + "title": "LegacyChatContentVideoType" }, - "ChatSystemMessageContent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/ChatSystemMessageContent1" + "ChatContentVideoInput": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "URL of the video (data: URLs supported)" } + }, + "required": [ + "url" ], - "description": "System message content", - "title": "ChatSystemMessageContent" + "description": "Video input object", + "title": "ChatContentVideoInput" }, - "ChatSystemMessageRole": { + "ChatContentCacheControlType": { "type": "string", "enum": [ - "system" + "ephemeral" ], - "title": "ChatSystemMessageRole" - }, - "ChatToolMessageContent1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatContentItems" - }, - "title": "ChatToolMessageContent1" + "title": "ChatContentCacheControlType" }, - "ChatToolMessageContent": { - "oneOf": [ - { - "type": "string" + "ChatContentCacheControl": { + "type": "object", + "properties": { + "ttl": { + "$ref": "#/components/schemas/AnthropicCacheControlTtl" }, - { - "$ref": "#/components/schemas/ChatToolMessageContent1" + "type": { + "$ref": "#/components/schemas/ChatContentCacheControlType" } + }, + "required": [ + "type" ], - "description": "Tool response content", - "title": "ChatToolMessageContent" + "description": "Cache control for the content part", + "title": "ChatContentCacheControl" }, - "ChatToolMessageRole": { + "ChatContentTextType": { "type": "string", "enum": [ - "tool" - ], - "title": "ChatToolMessageRole" - }, - "ChatUserMessageContent1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatContentItems" - }, - "title": "ChatUserMessageContent1" - }, - "ChatUserMessageContent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/ChatUserMessageContent1" - } + "text" ], - "description": "User message content", - "title": "ChatUserMessageContent" + "title": "ChatContentTextType" }, - "ChatUserMessageRole": { + "ChatContentVideoType": { "type": "string", "enum": [ - "user" + "video_url" ], - "title": "ChatUserMessageRole" + "title": "ChatContentVideoType" }, - "ChatMessages": { + "ChatContentItems": { "oneOf": [ { "type": "object", "properties": { - "role": { + "type": { "type": "string", "enum": [ - "assistant" + "file" ], - "description": "Discriminator value: assistant" - }, - "audio": { - "$ref": "#/components/schemas/ChatAudioOutput" - }, - "content": { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent", - "description": "Assistant message content" - }, - "images": { - "$ref": "#/components/schemas/ChatAssistantImages" + "description": "Discriminator value: file" }, - "name": { + "file": { + "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingFileFile" + } + }, + "required": [ + "type", + "file" + ], + "description": "File content part for document processing" + }, + { + "type": "object", + "properties": { + "type": { "type": "string", - "description": "Optional name for the assistant" - }, - "reasoning": { - "type": [ - "string", - "null" - ], - "description": "Reasoning output" - }, - "reasoning_details": { - "$ref": "#/components/schemas/ChatReasoningDetails" - }, - "refusal": { - "type": [ - "string", - "null" + "enum": [ + "image_url" ], - "description": "Refusal message if content was refused" + "description": "Discriminator value: image_url" }, - "tool_calls": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatToolCall" - }, - "description": "Tool calls made by the assistant" + "image_url": { + "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingImageUrlImageUrl" } }, "required": [ - "role" + "type", + "image_url" ], - "description": "Assistant message for requests and responses" + "description": "Image content part for vision models" }, { "type": "object", "properties": { - "role": { + "type": { "type": "string", "enum": [ - "developer" + "input_audio" ], - "description": "Discriminator value: developer" - }, - "content": { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingDeveloperContent", - "description": "Developer message content" + "description": "Discriminator value: input_audio" }, - "name": { - "type": "string", - "description": "Optional name for the developer message" + "input_audio": { + "$ref": "#/components/schemas/ChatContentItemsDiscriminatorMappingInputAudioInputAudio" } }, "required": [ - "role", - "content" + "type", + "input_audio" ], - "description": "Developer message" + "description": "Audio input content part. Supported audio formats vary by provider." }, { "type": "object", "properties": { - "role": { - "$ref": "#/components/schemas/ChatSystemMessageRole" - }, - "content": { - "$ref": "#/components/schemas/ChatSystemMessageContent", - "description": "System message content" + "type": { + "$ref": "#/components/schemas/LegacyChatContentVideoType" }, - "name": { - "type": "string", - "description": "Optional name for the system message" + "video_url": { + "$ref": "#/components/schemas/ChatContentVideoInput" } }, "required": [ - "role", - "content" + "type", + "video_url" ], - "description": "System message for setting behavior" + "description": "Video input content part (legacy format - deprecated)" }, { "type": "object", "properties": { - "role": { - "$ref": "#/components/schemas/ChatToolMessageRole" + "type": { + "$ref": "#/components/schemas/ChatContentTextType" }, - "content": { - "$ref": "#/components/schemas/ChatToolMessageContent", - "description": "Tool response content" + "cache_control": { + "$ref": "#/components/schemas/ChatContentCacheControl" }, - "tool_call_id": { - "type": "string", - "description": "ID of the assistant message tool call this message responds to" + "text": { + "type": "string" } }, "required": [ - "role", - "content", - "tool_call_id" + "type", + "text" ], - "description": "Tool response message" + "description": "Text content part" }, { "type": "object", "properties": { - "role": { - "$ref": "#/components/schemas/ChatUserMessageRole" - }, - "content": { - "$ref": "#/components/schemas/ChatUserMessageContent", - "description": "User message content" + "type": { + "$ref": "#/components/schemas/ChatContentVideoType" }, - "name": { - "type": "string", - "description": "Optional name for the user" + "video_url": { + "$ref": "#/components/schemas/ChatContentVideoInput" } }, "required": [ - "role", - "content" - ], - "description": "User message" + "type", + "video_url" + ], + "description": "Video input content part" } ], "discriminator": { - "propertyName": "role" + "propertyName": "type" }, - "description": "Chat completion message with role-based discrimination", - "title": "ChatMessages" + "description": "Content part for chat completion messages", + "title": "ChatContentItems" }, - "ChatRequestModalitiesItems": { - "type": "string", - "enum": [ - "text", - "image", - "audio" + "ChatMessagesDiscriminatorMappingAssistantContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatContentItems" + }, + "title": "ChatMessagesDiscriminatorMappingAssistantContent1" + }, + "ChatMessagesDiscriminatorMappingAssistantContent": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent1" + }, + { + "description": "Any type" + } ], - "title": "ChatRequestModalitiesItems" + "description": "Assistant message content", + "title": "ChatMessagesDiscriminatorMappingAssistantContent" }, - "ModelName": { - "type": "string", - "description": "Model to use for completion", - "title": "ModelName" + "ChatAssistantImagesItemsImageUrl": { + "type": "object", + "properties": { + "url": { + "type": "string", + "description": "URL or base64-encoded data of the generated image" + } + }, + "required": [ + "url" + ], + "title": "ChatAssistantImagesItemsImageUrl" }, - "ChatModelNames": { + "ChatAssistantImagesItems": { + "type": "object", + "properties": { + "image_url": { + "$ref": "#/components/schemas/ChatAssistantImagesItemsImageUrl" + } + }, + "required": [ + "image_url" + ], + "title": "ChatAssistantImagesItems" + }, + "ChatAssistantImages": { "type": "array", "items": { - "$ref": "#/components/schemas/ModelName" + "$ref": "#/components/schemas/ChatAssistantImagesItems" }, - "description": "Models to use for completion", - "title": "ChatModelNames" + "description": "Generated images from image generation models", + "title": "ChatAssistantImages" }, - "ChatRequestPluginsItems": { + "ReasoningDetailUnion": { "oneOf": [ { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "auto-router" + "reasoning.encrypted" ], - "description": "Discriminator value: auto-router" - }, - "allowed_models": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + "description": "Discriminator value: reasoning.encrypted" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." - } - }, - "required": [ - "id" - ], - "description": "auto-router variant" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "context-compression" - ], - "description": "Discriminator value: context-compression" + "data": { + "type": "string" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the context-compression plugin for this request. Defaults to true." + "format": { + "$ref": "#/components/schemas/ReasoningFormat" }, - "engine": { - "$ref": "#/components/schemas/ContextCompressionEngine" - } - }, - "required": [ - "id" - ], - "description": "context-compression variant" - }, - { - "type": "object", - "properties": { "id": { - "type": "string", - "enum": [ - "file-parser" - ], - "description": "Discriminator value: file-parser" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the file-parser plugin for this request. Defaults to true." + "type": [ + "string", + "null" + ] }, - "pdf": { - "$ref": "#/components/schemas/PDFParserOptions" + "index": { + "type": "integer" } }, "required": [ - "id" + "type", + "data" ], - "description": "file-parser variant" + "description": "Reasoning detail encrypted schema" }, { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "fusion" + "reasoning.summary" ], - "description": "Discriminator value: fusion" + "description": "Discriminator value: reasoning.summary" }, - "analysis_models": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Slugs of models to run in parallel as the \"expert panel\" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest)." + "format": { + "$ref": "#/components/schemas/ReasoningFormat" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the fusion plugin for this request. Defaults to true." + "id": { + "type": [ + "string", + "null" + ] }, - "max_tool_calls": { - "type": "integer", - "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." + "index": { + "type": "integer" }, - "model": { - "type": "string", - "description": "Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset." - } - }, - "required": [ - "id" - ], - "description": "fusion variant" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "moderation" - ], - "description": "Discriminator value: moderation" + "summary": { + "type": "string" } }, "required": [ - "id" + "type", + "summary" ], - "description": "moderation variant" + "description": "Reasoning detail summary schema" }, { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "pareto-router" + "reasoning.text" ], - "description": "Discriminator value: pareto-router" + "description": "Discriminator value: reasoning.text" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the pareto-router plugin for this request. Defaults to true." + "format": { + "$ref": "#/components/schemas/ReasoningFormat" }, - "min_coding_score": { - "type": "number", - "format": "double", - "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." - } - }, - "required": [ - "id" - ], - "description": "pareto-router variant" - }, - { - "type": "object", - "properties": { "id": { - "type": "string", - "enum": [ - "response-healing" - ], - "description": "Discriminator value: response-healing" + "type": [ + "string", + "null" + ] }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the response-healing plugin for this request. Defaults to true." + "index": { + "type": "integer" + }, + "signature": { + "type": [ + "string", + "null" + ] + }, + "text": { + "type": [ + "string", + "null" + ] } }, "required": [ - "id" + "type" ], - "description": "response-healing variant" - }, - { - "type": "object", - "properties": { - "id": { - "$ref": "#/components/schemas/WebSearchPluginId" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the web-search plugin for this request. Defaults to true." - }, - "engine": { - "$ref": "#/components/schemas/WebSearchEngine" - }, - "exclude_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." - }, - "include_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." - }, - "max_results": { - "type": "integer" - }, - "max_uses": { - "type": "integer", - "description": "Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)." - }, - "search_prompt": { - "type": "string" - }, - "user_location": { - "$ref": "#/components/schemas/WebSearchPluginUserLocation" - } - }, - "required": [ - "id" - ], - "description": "web variant" + "description": "Reasoning detail text schema" } ], "discriminator": { - "propertyName": "id" + "propertyName": "type" }, - "title": "ChatRequestPluginsItems" + "description": "Reasoning detail union schema", + "title": "ReasoningDetailUnion" }, - "ChatRequestReasoningEffort": { - "type": "string", - "enum": [ - "xhigh", - "high", - "medium", - "low", - "minimal", - "none" + "ChatReasoningDetails": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ReasoningDetailUnion" + }, + "description": "Reasoning details for extended thinking models", + "title": "ChatReasoningDetails" + }, + "ChatToolCallFunction": { + "type": "object", + "properties": { + "arguments": { + "type": "string", + "description": "Function arguments as JSON string" + }, + "name": { + "type": "string", + "description": "Function name to call" + } + }, + "required": [ + "arguments", + "name" ], - "description": "Constrains effort on reasoning for reasoning models", - "title": "ChatRequestReasoningEffort" + "title": "ChatToolCallFunction" }, - "ChatReasoningSummaryVerbosityEnum": { + "ChatToolCallType": { "type": "string", "enum": [ - "auto", - "concise", - "detailed" + "function" ], - "title": "ChatReasoningSummaryVerbosityEnum" + "title": "ChatToolCallType" }, - "ChatRequestReasoning": { + "ChatToolCall": { "type": "object", "properties": { - "effort": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatRequestReasoningEffort" - }, - { - "type": "null" - } - ], - "description": "Constrains effort on reasoning for reasoning models" + "function": { + "$ref": "#/components/schemas/ChatToolCallFunction" }, - "summary": { - "$ref": "#/components/schemas/ChatReasoningSummaryVerbosityEnum" + "id": { + "type": "string", + "description": "Tool call identifier" + }, + "type": { + "$ref": "#/components/schemas/ChatToolCallType" } }, - "description": "Configuration options for reasoning models", - "title": "ChatRequestReasoning" + "required": [ + "function", + "id", + "type" + ], + "description": "Tool call made by the assistant", + "title": "ChatToolCall" }, - "ChatJsonSchemaConfig": { + "ChatContentText": { "type": "object", "properties": { - "description": { - "type": "string", - "description": "Schema description for the model" - }, - "name": { - "type": "string", - "description": "Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)" + "cache_control": { + "$ref": "#/components/schemas/ChatContentCacheControl" }, - "schema": { - "type": "object", - "additionalProperties": { - "description": "Any type" - }, - "description": "JSON Schema object" + "text": { + "type": "string" }, - "strict": { - "type": [ - "boolean", - "null" - ], - "description": "Enable strict schema adherence" + "type": { + "$ref": "#/components/schemas/ChatContentTextType" } }, "required": [ - "name" + "text", + "type" ], - "description": "JSON Schema configuration object", - "title": "ChatJsonSchemaConfig" + "description": "Text content part", + "title": "ChatContentText" }, - "ChatRequestResponseFormat": { + "ChatMessagesDiscriminatorMappingDeveloperContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatContentText" + }, + "title": "ChatMessagesDiscriminatorMappingDeveloperContent1" + }, + "ChatMessagesDiscriminatorMappingDeveloperContent": { "oneOf": [ { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "grammar" - ], - "description": "Discriminator value: grammar" - }, - "grammar": { - "type": "string", - "description": "Custom grammar for text generation" - } - }, - "required": [ - "type", - "grammar" - ], - "description": "Custom grammar response format" - }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/FormatJsonObjectConfigType" - } - }, - "required": [ - "type" - ], - "description": "JSON object response format" + "type": "string" }, { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "json_schema" - ], - "description": "Discriminator value: json_schema" - }, - "json_schema": { - "$ref": "#/components/schemas/ChatJsonSchemaConfig" - } - }, - "required": [ - "type", - "json_schema" - ], - "description": "JSON Schema response format for structured outputs" - }, + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingDeveloperContent1" + } + ], + "description": "Developer message content", + "title": "ChatMessagesDiscriminatorMappingDeveloperContent" + }, + "ChatSystemMessageContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatContentText" + }, + "title": "ChatSystemMessageContent1" + }, + "ChatSystemMessageContent": { + "oneOf": [ { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "python" - ], - "description": "Discriminator value: python" - } - }, - "required": [ - "type" - ], - "description": "Python code response format" + "type": "string" }, { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "text" - ], - "description": "Discriminator value: text" - } - }, - "required": [ - "type" - ], - "description": "Default text response format" + "$ref": "#/components/schemas/ChatSystemMessageContent1" } ], - "discriminator": { - "propertyName": "type" - }, - "description": "Response format configuration", - "title": "ChatRequestResponseFormat" + "description": "System message content", + "title": "ChatSystemMessageContent" }, - "ChatRequestServiceTier": { + "ChatSystemMessageRole": { "type": "string", "enum": [ - "auto", - "default", - "flex", - "priority", - "scale" + "system" ], - "description": "The service tier to use for processing this request.", - "title": "ChatRequestServiceTier" + "title": "ChatSystemMessageRole" }, - "ChatRequestStop": { + "ChatToolMessageContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatContentItems" + }, + "title": "ChatToolMessageContent1" + }, + "ChatToolMessageContent": { "oneOf": [ { "type": "string" }, { - "type": "array", - "items": { - "type": "string" - } - }, - { - "description": "Any type" - } - ], - "description": "Stop sequences (up to 4)", - "title": "ChatRequestStop" - }, - "ChatStreamOptions": { - "type": "object", - "properties": { - "include_usage": { - "type": "boolean", - "description": "Deprecated: This field has no effect. Full usage details are always included." + "$ref": "#/components/schemas/ChatToolMessageContent1" } - }, - "description": "Streaming configuration options", - "title": "ChatStreamOptions" - }, - "ChatToolChoice0": { - "type": "string", - "enum": [ - "none" ], - "title": "ChatToolChoice0" + "description": "Tool response content", + "title": "ChatToolMessageContent" }, - "ChatToolChoice1": { + "ChatToolMessageRole": { "type": "string", "enum": [ - "auto" + "tool" ], - "title": "ChatToolChoice1" + "title": "ChatToolMessageRole" }, - "ChatToolChoice2": { - "type": "string", - "enum": [ - "required" - ], - "title": "ChatToolChoice2" + "ChatUserMessageContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatContentItems" + }, + "title": "ChatUserMessageContent1" }, - "ChatNamedToolChoiceFunction": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Function name to call" + "ChatUserMessageContent": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/ChatUserMessageContent1" } - }, - "required": [ - "name" ], - "title": "ChatNamedToolChoiceFunction" + "description": "User message content", + "title": "ChatUserMessageContent" }, - "ChatNamedToolChoiceType": { + "ChatUserMessageRole": { "type": "string", "enum": [ - "function" - ], - "title": "ChatNamedToolChoiceType" - }, - "ChatNamedToolChoice": { - "type": "object", - "properties": { - "function": { - "$ref": "#/components/schemas/ChatNamedToolChoiceFunction" - }, - "type": { - "$ref": "#/components/schemas/ChatNamedToolChoiceType" - } - }, - "required": [ - "function", - "type" + "user" ], - "description": "Named tool choice for specific function", - "title": "ChatNamedToolChoice" + "title": "ChatUserMessageRole" }, - "ChatToolChoice": { + "ChatMessages": { "oneOf": [ { - "$ref": "#/components/schemas/ChatToolChoice0" - }, - { - "$ref": "#/components/schemas/ChatToolChoice1" + "type": "object", + "properties": { + "role": { + "type": "string", + "enum": [ + "assistant" + ], + "description": "Discriminator value: assistant" + }, + "audio": { + "$ref": "#/components/schemas/ChatAudioOutput" + }, + "content": { + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent", + "description": "Assistant message content" + }, + "images": { + "$ref": "#/components/schemas/ChatAssistantImages" + }, + "name": { + "type": "string", + "description": "Optional name for the assistant" + }, + "reasoning": { + "type": [ + "string", + "null" + ], + "description": "Reasoning output" + }, + "reasoning_details": { + "$ref": "#/components/schemas/ChatReasoningDetails" + }, + "refusal": { + "type": [ + "string", + "null" + ], + "description": "Refusal message if content was refused" + }, + "tool_calls": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatToolCall" + }, + "description": "Tool calls made by the assistant" + } + }, + "required": [ + "role" + ], + "description": "Assistant message for requests and responses" }, { - "$ref": "#/components/schemas/ChatToolChoice2" + "type": "object", + "properties": { + "role": { + "type": "string", + "enum": [ + "developer" + ], + "description": "Discriminator value: developer" + }, + "content": { + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingDeveloperContent", + "description": "Developer message content" + }, + "name": { + "type": "string", + "description": "Optional name for the developer message" + } + }, + "required": [ + "role", + "content" + ], + "description": "Developer message" }, { - "$ref": "#/components/schemas/ChatNamedToolChoice" - } - ], - "description": "Tool choice configuration", - "title": "ChatToolChoice" - }, - "ChatFunctionToolOneOf0Function": { - "type": "object", - "properties": { - "description": { - "type": "string", - "description": "Function description for the model" - }, - "name": { - "type": "string", - "description": "Function name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)" - }, - "parameters": { "type": "object", - "additionalProperties": { - "description": "Any type" + "properties": { + "role": { + "$ref": "#/components/schemas/ChatSystemMessageRole" + }, + "content": { + "$ref": "#/components/schemas/ChatSystemMessageContent", + "description": "System message content" + }, + "name": { + "type": "string", + "description": "Optional name for the system message" + } }, - "description": "Function parameters as JSON Schema object" - }, - "strict": { - "type": [ - "boolean", - "null" + "required": [ + "role", + "content" ], - "description": "Enable strict schema adherence" - } - }, - "required": [ - "name" - ], - "description": "Function definition for tool calling", - "title": "ChatFunctionToolOneOf0Function" - }, - "ChatFunctionToolOneOf0Type": { - "type": "string", - "enum": [ - "function" - ], - "title": "ChatFunctionToolOneOf0Type" - }, - "ChatFunctionTool0": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/ChatContentCacheControl" - }, - "function": { - "$ref": "#/components/schemas/ChatFunctionToolOneOf0Function", - "description": "Function definition for tool calling" + "description": "System message for setting behavior" }, - "type": { - "$ref": "#/components/schemas/ChatFunctionToolOneOf0Type" - } - }, - "required": [ - "function", - "type" - ], - "title": "ChatFunctionTool0" - }, - "WebSearchConfig": { - "type": "object", - "properties": { - "allowed_domains": { - "type": "array", - "items": { - "type": "string" + { + "type": "object", + "properties": { + "role": { + "$ref": "#/components/schemas/ChatToolMessageRole" + }, + "content": { + "$ref": "#/components/schemas/ChatToolMessageContent", + "description": "Tool response content" + }, + "tool_call_id": { + "type": "string", + "description": "ID of the assistant message tool call this message responds to" + } }, - "description": "Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers (Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains." - }, - "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" + "required": [ + "role", + "content", + "tool_call_id" + ], + "description": "Tool response message" }, - "excluded_domains": { - "type": "array", - "items": { - "type": "string" + { + "type": "object", + "properties": { + "role": { + "$ref": "#/components/schemas/ChatUserMessageRole" + }, + "content": { + "$ref": "#/components/schemas/ChatUserMessageContent", + "description": "User message content" + }, + "name": { + "type": "string", + "description": "Optional name for the user" + } }, - "description": "Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains." - }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and Parallel engines; ignored with native provider search." - }, - "max_total_results": { - "type": "integer", - "description": "Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified." - }, - "search_context_size": { - "$ref": "#/components/schemas/SearchQualityLevel" - }, - "user_location": { - "$ref": "#/components/schemas/WebSearchUserLocationServerTool" + "required": [ + "role", + "content" + ], + "description": "User message" } + ], + "discriminator": { + "propertyName": "role" }, - "title": "WebSearchConfig" + "description": "Chat completion message with role-based discrimination", + "title": "ChatMessages" }, - "OpenRouterWebSearchServerToolType": { + "ChatRequestModalitiesItems": { "type": "string", "enum": [ - "openrouter:web_search" - ], - "title": "OpenRouterWebSearchServerToolType" - }, - "OpenRouterWebSearchServerTool": { - "type": "object", - "properties": { - "parameters": { - "$ref": "#/components/schemas/WebSearchConfig" - }, - "type": { - "$ref": "#/components/schemas/OpenRouterWebSearchServerToolType" - } - }, - "required": [ - "type" + "text", + "image", + "audio" ], - "description": "OpenRouter built-in server tool: searches the web for current information", - "title": "OpenRouterWebSearchServerTool" + "title": "ChatRequestModalitiesItems" }, - "ChatWebSearchShorthandType": { + "ModelName": { "type": "string", - "enum": [ - "web_search", - "web_search_preview", - "web_search_preview_2025_03_11", - "web_search_2025_08_26" - ], - "title": "ChatWebSearchShorthandType" + "description": "Model to use for completion", + "title": "ModelName" }, - "ChatWebSearchShorthand": { - "type": "object", - "properties": { - "allowed_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers (Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains." - }, - "engine": { - "$ref": "#/components/schemas/WebSearchEngineEnum" - }, - "excluded_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains." - }, - "max_results": { - "type": "integer", - "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and Parallel engines; ignored with native provider search." - }, - "max_total_results": { - "type": "integer", - "description": "Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified." - }, - "parameters": { - "$ref": "#/components/schemas/WebSearchConfig" - }, - "search_context_size": { - "$ref": "#/components/schemas/SearchQualityLevel" - }, - "type": { - "$ref": "#/components/schemas/ChatWebSearchShorthandType" - }, - "user_location": { - "$ref": "#/components/schemas/WebSearchUserLocationServerTool" - } + "ChatModelNames": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ModelName" }, - "required": [ - "type" - ], - "description": "Web search tool using OpenAI Responses API syntax. Automatically converted to openrouter:web_search.", - "title": "ChatWebSearchShorthand" + "description": "Models to use for completion", + "title": "ChatModelNames" }, - "ChatFunctionTool": { + "ChatRequestPluginsItems": { "oneOf": [ { - "$ref": "#/components/schemas/ChatFunctionTool0" - }, - { - "$ref": "#/components/schemas/DatetimeServerTool" - }, - { - "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" - }, - { - "$ref": "#/components/schemas/ChatSearchModelsServerTool" - }, - { - "$ref": "#/components/schemas/WebFetchServerTool" + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "auto-router" + ], + "description": "Discriminator value: auto-router" + }, + "allowed_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." + } + }, + "required": [ + "id" + ], + "description": "auto-router variant" }, { - "$ref": "#/components/schemas/OpenRouterWebSearchServerTool" + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "context-compression" + ], + "description": "Discriminator value: context-compression" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the context-compression plugin for this request. Defaults to true." + }, + "engine": { + "$ref": "#/components/schemas/ContextCompressionEngine" + } + }, + "required": [ + "id" + ], + "description": "context-compression variant" }, { - "$ref": "#/components/schemas/ChatWebSearchShorthand" - } - ], - "description": "Tool definition for function calling (regular function or OpenRouter built-in server tool)", - "title": "ChatFunctionTool" - }, - "ChatRequest": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "debug": { - "$ref": "#/components/schemas/ChatDebugOptions" - }, - "frequency_penalty": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Frequency penalty (-2.0 to 2.0)" - }, - "image_config": { - "$ref": "#/components/schemas/ImageConfig" - }, - "logit_bias": { - "type": [ - "object", - "null" - ], - "additionalProperties": { - "type": "number", - "format": "double" + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "file-parser" + ], + "description": "Discriminator value: file-parser" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the file-parser plugin for this request. Defaults to true." + }, + "pdf": { + "$ref": "#/components/schemas/PDFParserOptions" + } }, - "description": "Token logit bias adjustments" - }, - "logprobs": { - "type": [ - "boolean", - "null" - ], - "description": "Return log probabilities" - }, - "max_completion_tokens": { - "type": [ - "integer", - "null" - ], - "description": "Maximum tokens in completion" - }, - "max_tokens": { - "type": [ - "integer", - "null" + "required": [ + "id" ], - "description": "Maximum tokens (deprecated, use max_completion_tokens). Note: some providers enforce a minimum of 16." - }, - "messages": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatMessages" - }, - "description": "List of messages for the conversation" + "description": "file-parser variant" }, - "metadata": { + { "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values)" - }, - "modalities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatRequestModalitiesItems" + "properties": { + "id": { + "type": "string", + "enum": [ + "fusion" + ], + "description": "Discriminator value: fusion" + }, + "analysis_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Slugs of models to run in parallel as the \"expert panel\" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest)." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the fusion plugin for this request. Defaults to true." + }, + "max_tool_calls": { + "type": "integer", + "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." + }, + "model": { + "type": "string", + "description": "Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset." + } }, - "description": "Output modalities for the response. Supported values are \"text\", \"image\", and \"audio\"." - }, - "model": { - "$ref": "#/components/schemas/ModelName" - }, - "models": { - "$ref": "#/components/schemas/ChatModelNames" - }, - "parallel_tool_calls": { - "type": [ - "boolean", - "null" + "required": [ + "id" ], - "description": "Whether to enable parallel function calling during tool use. When true, the model may generate multiple tool calls in a single response." + "description": "fusion variant" }, - "plugins": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatRequestPluginsItems" + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "moderation" + ], + "description": "Discriminator value: moderation" + } }, - "description": "Plugins you want to enable for this request, including their settings." - }, - "presence_penalty": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Presence penalty (-2.0 to 2.0)" - }, - "provider": { - "$ref": "#/components/schemas/ProviderPreferences" - }, - "reasoning": { - "$ref": "#/components/schemas/ChatRequestReasoning", - "description": "Configuration options for reasoning models" - }, - "response_format": { - "$ref": "#/components/schemas/ChatRequestResponseFormat", - "description": "Response format configuration" - }, - "route": { - "description": "Any type" - }, - "seed": { - "type": [ - "integer", - "null" + "required": [ + "id" ], - "description": "Random seed for deterministic outputs" + "description": "moderation variant" }, - "service_tier": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatRequestServiceTier" + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "pareto-router" + ], + "description": "Discriminator value: pareto-router" }, - { - "type": "null" + "enabled": { + "type": "boolean", + "description": "Set to false to disable the pareto-router plugin for this request. Defaults to true." + }, + "min_coding_score": { + "type": "number", + "format": "double", + "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." } + }, + "required": [ + "id" ], - "description": "The service tier to use for processing this request." - }, - "session_id": { - "type": "string", - "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters." - }, - "stop": { - "$ref": "#/components/schemas/ChatRequestStop", - "description": "Stop sequences (up to 4)" - }, - "stream": { - "type": "boolean", - "default": false, - "description": "Enable streaming response" - }, - "stream_options": { - "$ref": "#/components/schemas/ChatStreamOptions" - }, - "temperature": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Sampling temperature (0-2)" - }, - "tool_choice": { - "$ref": "#/components/schemas/ChatToolChoice" + "description": "pareto-router variant" }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatFunctionTool" + { + "type": "object", + "properties": { + "id": { + "type": "string", + "enum": [ + "response-healing" + ], + "description": "Discriminator value: response-healing" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the response-healing plugin for this request. Defaults to true." + } }, - "description": "Available tools for function calling" + "required": [ + "id" + ], + "description": "response-healing variant" }, - "top_logprobs": { - "type": [ - "integer", - "null" - ], - "description": "Number of top log probabilities to return (0-20)" - }, - "top_p": { - "type": [ - "number", - "null" + { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/WebSearchPluginId" + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the web-search plugin for this request. Defaults to true." + }, + "engine": { + "$ref": "#/components/schemas/WebSearchEngine" + }, + "exclude_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." + }, + "include_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." + }, + "max_results": { + "type": "integer" + }, + "max_uses": { + "type": "integer", + "description": "Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)." + }, + "search_prompt": { + "type": "string" + }, + "user_location": { + "$ref": "#/components/schemas/WebSearchPluginUserLocation" + } + }, + "required": [ + "id" ], - "format": "double", - "description": "Nucleus sampling parameter (0-1)" - }, - "trace": { - "$ref": "#/components/schemas/TraceConfig" - }, - "user": { - "type": "string", - "description": "Unique user identifier" + "description": "web variant" } + ], + "discriminator": { + "propertyName": "id" }, - "required": [ - "messages" + "title": "ChatRequestPluginsItems" + }, + "ChatRequestReasoningEffort": { + "type": "string", + "enum": [ + "xhigh", + "high", + "medium", + "low", + "minimal", + "none" ], - "description": "Chat completion request parameters", - "title": "ChatRequest" + "description": "Constrains effort on reasoning for reasoning models", + "title": "ChatRequestReasoningEffort" }, - "ChatFinishReasonEnum": { + "ChatReasoningSummaryVerbosityEnum": { "type": "string", "enum": [ - "tool_calls", - "stop", - "length", - "content_filter", - "error" + "auto", + "concise", + "detailed" ], - "title": "ChatFinishReasonEnum" + "title": "ChatReasoningSummaryVerbosityEnum" }, - "ChatTokenLogprobTopLogprobsItems": { + "ChatRequestReasoning": { "type": "object", "properties": { - "bytes": { - "type": [ - "array", - "null" + "effort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatRequestReasoningEffort" + }, + { + "type": "null" + } ], - "items": { - "type": "integer" - } - }, - "logprob": { - "type": "number", - "format": "double" + "description": "Constrains effort on reasoning for reasoning models" }, - "token": { - "type": "string" + "summary": { + "$ref": "#/components/schemas/ChatReasoningSummaryVerbosityEnum" } }, - "required": [ - "bytes", - "logprob", - "token" - ], - "title": "ChatTokenLogprobTopLogprobsItems" + "description": "Configuration options for reasoning models", + "title": "ChatRequestReasoning" }, - "ChatTokenLogprob": { + "ChatJsonSchemaConfig": { "type": "object", "properties": { - "bytes": { - "type": [ - "array", - "null" - ], - "items": { - "type": "integer" - }, - "description": "UTF-8 bytes of the token" - }, - "logprob": { - "type": "number", - "format": "double", - "description": "Log probability of the token" + "description": { + "type": "string", + "description": "Schema description for the model" }, - "token": { + "name": { "type": "string", - "description": "The token" + "description": "Schema name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)" }, - "top_logprobs": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ChatTokenLogprobTopLogprobsItems" - }, - "description": "Top alternative tokens with probabilities" - } - }, - "required": [ - "bytes", - "logprob", - "token", - "top_logprobs" - ], - "description": "Token log probability information", - "title": "ChatTokenLogprob" - }, - "ChatTokenLogprobs": { - "type": "object", - "properties": { - "content": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ChatTokenLogprob" + "schema": { + "type": "object", + "additionalProperties": { + "description": "Any type" }, - "description": "Log probabilities for content tokens" + "description": "JSON Schema object" }, - "refusal": { + "strict": { "type": [ - "array", + "boolean", "null" ], - "items": { - "$ref": "#/components/schemas/ChatTokenLogprob" - }, - "description": "Log probabilities for refusal tokens" + "description": "Enable strict schema adherence" } }, "required": [ - "content" + "name" ], - "description": "Log probabilities for the completion", - "title": "ChatTokenLogprobs" + "description": "JSON Schema configuration object", + "title": "ChatJsonSchemaConfig" }, - "ChatAssistantMessage": { - "type": "object", - "properties": { - "audio": { - "$ref": "#/components/schemas/ChatAudioOutput" - }, - "content": { - "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent", - "description": "Assistant message content" - }, - "images": { - "$ref": "#/components/schemas/ChatAssistantImages" - }, - "name": { - "type": "string", - "description": "Optional name for the assistant" - }, - "reasoning": { - "type": [ - "string", - "null" + "ChatRequestResponseFormat": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "grammar" + ], + "description": "Discriminator value: grammar" + }, + "grammar": { + "type": "string", + "description": "Custom grammar for text generation" + } + }, + "required": [ + "type", + "grammar" ], - "description": "Reasoning output" + "description": "Custom grammar response format" }, - "reasoning_details": { - "$ref": "#/components/schemas/ChatReasoningDetails" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/FormatJsonObjectConfigType" + } + }, + "required": [ + "type" + ], + "description": "JSON object response format" }, - "refusal": { - "type": [ - "string", - "null" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "json_schema" + ], + "description": "Discriminator value: json_schema" + }, + "json_schema": { + "$ref": "#/components/schemas/ChatJsonSchemaConfig" + } + }, + "required": [ + "type", + "json_schema" ], - "description": "Refusal message if content was refused" + "description": "JSON Schema response format for structured outputs" }, - "tool_calls": { + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "python" + ], + "description": "Discriminator value: python" + } + }, + "required": [ + "type" + ], + "description": "Python code response format" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "text" + ], + "description": "Discriminator value: text" + } + }, + "required": [ + "type" + ], + "description": "Default text response format" + } + ], + "discriminator": { + "propertyName": "type" + }, + "description": "Response format configuration", + "title": "ChatRequestResponseFormat" + }, + "ChatRequestServiceTier": { + "type": "string", + "enum": [ + "auto", + "default", + "flex", + "priority", + "scale" + ], + "description": "The service tier to use for processing this request.", + "title": "ChatRequestServiceTier" + }, + "ChatRequestStop": { + "oneOf": [ + { + "type": "string" + }, + { "type": "array", "items": { - "$ref": "#/components/schemas/ChatToolCall" - }, - "description": "Tool calls made by the assistant" + "type": "string" + } + }, + { + "description": "Any type" + } + ], + "description": "Stop sequences (up to 4)", + "title": "ChatRequestStop" + }, + "ChatStreamOptions": { + "type": "object", + "properties": { + "include_usage": { + "type": "boolean", + "description": "Deprecated: This field has no effect. Full usage details are always included." } }, - "description": "Assistant message for requests and responses", - "title": "ChatAssistantMessage" + "description": "Streaming configuration options", + "title": "ChatStreamOptions" }, - "ChatChoice": { + "ChatToolChoice0": { + "type": "string", + "enum": [ + "none" + ], + "title": "ChatToolChoice0" + }, + "ChatToolChoice1": { + "type": "string", + "enum": [ + "auto" + ], + "title": "ChatToolChoice1" + }, + "ChatToolChoice2": { + "type": "string", + "enum": [ + "required" + ], + "title": "ChatToolChoice2" + }, + "ChatNamedToolChoiceFunction": { "type": "object", "properties": { - "finish_reason": { - "$ref": "#/components/schemas/ChatFinishReasonEnum" - }, - "index": { - "type": "integer", - "description": "Choice index" - }, - "logprobs": { - "$ref": "#/components/schemas/ChatTokenLogprobs" - }, - "message": { - "$ref": "#/components/schemas/ChatAssistantMessage" + "name": { + "type": "string", + "description": "Function name to call" } }, "required": [ - "finish_reason", - "index", - "message" + "name" ], - "description": "Chat completion choice", - "title": "ChatChoice" + "title": "ChatNamedToolChoiceFunction" }, - "ChatResultObject": { + "ChatNamedToolChoiceType": { "type": "string", "enum": [ - "chat.completion" + "function" ], - "title": "ChatResultObject" + "title": "ChatNamedToolChoiceType" }, - "ChatUsageCompletionTokensDetails": { + "ChatNamedToolChoice": { "type": "object", "properties": { - "accepted_prediction_tokens": { - "type": [ - "integer", - "null" - ], - "description": "Accepted prediction tokens" + "function": { + "$ref": "#/components/schemas/ChatNamedToolChoiceFunction" }, - "audio_tokens": { - "type": [ - "integer", - "null" - ], - "description": "Tokens used for audio output" + "type": { + "$ref": "#/components/schemas/ChatNamedToolChoiceType" + } + }, + "required": [ + "function", + "type" + ], + "description": "Named tool choice for specific function", + "title": "ChatNamedToolChoice" + }, + "ChatToolChoice": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatToolChoice0" }, - "reasoning_tokens": { - "type": [ - "integer", - "null" - ], - "description": "Tokens used for reasoning" + { + "$ref": "#/components/schemas/ChatToolChoice1" }, - "rejected_prediction_tokens": { - "type": [ - "integer", - "null" - ], - "description": "Rejected prediction tokens" + { + "$ref": "#/components/schemas/ChatToolChoice2" + }, + { + "$ref": "#/components/schemas/ChatNamedToolChoice" } - }, - "description": "Detailed completion token usage", - "title": "ChatUsageCompletionTokensDetails" + ], + "description": "Tool choice configuration", + "title": "ChatToolChoice" }, - "CostDetails": { + "ChatFunctionToolOneOf0Function": { "type": "object", "properties": { - "upstream_inference_completions_cost": { - "type": "number", - "format": "double" + "description": { + "type": "string", + "description": "Function description for the model" }, - "upstream_inference_cost": { + "name": { + "type": "string", + "description": "Function name (a-z, A-Z, 0-9, underscores, dashes, max 64 chars)" + }, + "parameters": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Function parameters as JSON Schema object" + }, + "strict": { "type": [ - "number", + "boolean", "null" ], - "format": "double" - }, - "upstream_inference_prompt_cost": { - "type": "number", - "format": "double" + "description": "Enable strict schema adherence" } }, "required": [ - "upstream_inference_completions_cost", - "upstream_inference_prompt_cost" + "name" ], - "description": "Breakdown of upstream inference costs", - "title": "CostDetails" + "description": "Function definition for tool calling", + "title": "ChatFunctionToolOneOf0Function" }, - "ChatUsagePromptTokensDetails": { + "ChatFunctionToolOneOf0Type": { + "type": "string", + "enum": [ + "function" + ], + "title": "ChatFunctionToolOneOf0Type" + }, + "ChatFunctionTool0": { "type": "object", "properties": { - "audio_tokens": { - "type": "integer", - "description": "Audio input tokens" - }, - "cache_write_tokens": { - "type": "integer", - "description": "Tokens written to cache. Only returned for models with explicit caching and cache write pricing." - }, - "cached_tokens": { - "type": "integer", - "description": "Cached prompt tokens" - }, - "video_tokens": { - "type": "integer", - "description": "Video input tokens" - } - }, - "description": "Detailed prompt token usage", - "title": "ChatUsagePromptTokensDetails" - }, - "ChatUsage": { - "type": "object", - "properties": { - "completion_tokens": { - "type": "integer", - "description": "Number of tokens in the completion" - }, - "completion_tokens_details": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatUsageCompletionTokensDetails" - }, - { - "type": "null" - } - ], - "description": "Detailed completion token usage" - }, - "cost": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Cost of the completion" - }, - "cost_details": { - "$ref": "#/components/schemas/CostDetails" - }, - "is_byok": { - "type": "boolean", - "description": "Whether a request was made using a Bring Your Own Key configuration" - }, - "prompt_tokens": { - "type": "integer", - "description": "Number of tokens in the prompt" + "cache_control": { + "$ref": "#/components/schemas/ChatContentCacheControl" }, - "prompt_tokens_details": { - "oneOf": [ - { - "$ref": "#/components/schemas/ChatUsagePromptTokensDetails" - }, - { - "type": "null" - } - ], - "description": "Detailed prompt token usage" + "function": { + "$ref": "#/components/schemas/ChatFunctionToolOneOf0Function", + "description": "Function definition for tool calling" }, - "total_tokens": { - "type": "integer", - "description": "Total number of tokens" + "type": { + "$ref": "#/components/schemas/ChatFunctionToolOneOf0Type" } }, "required": [ - "completion_tokens", - "prompt_tokens", - "total_tokens" + "function", + "type" ], - "description": "Token usage statistics", - "title": "ChatUsage" + "title": "ChatFunctionTool0" }, - "ChatResult": { + "WebSearchConfig": { "type": "object", "properties": { - "choices": { + "allowed_domains": { "type": "array", "items": { - "$ref": "#/components/schemas/ChatChoice" + "type": "string" }, - "description": "List of completion choices" - }, - "created": { - "type": "integer", - "description": "Unix timestamp of creation" - }, - "id": { - "type": "string", - "description": "Unique completion identifier" + "description": "Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers (Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains." }, - "model": { - "type": "string", - "description": "Model used for completion" + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" }, - "object": { - "$ref": "#/components/schemas/ChatResultObject" + "excluded_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains." }, - "openrouter_metadata": { - "$ref": "#/components/schemas/OpenRouterMetadata" + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and Parallel engines; ignored with native provider search." }, - "service_tier": { - "type": [ - "string", - "null" - ], - "description": "The service tier used by the upstream provider for this request" + "max_total_results": { + "type": "integer", + "description": "Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified." }, - "system_fingerprint": { - "type": [ - "string", - "null" - ], - "description": "System fingerprint" + "search_context_size": { + "$ref": "#/components/schemas/SearchQualityLevel" }, - "usage": { - "$ref": "#/components/schemas/ChatUsage" + "user_location": { + "$ref": "#/components/schemas/WebSearchUserLocationServerTool" } }, - "required": [ - "choices", - "created", - "id", - "model", - "object", - "system_fingerprint" - ], - "description": "Chat completion response", - "title": "ChatResult" + "title": "WebSearchConfig" }, - "CreditsGetResponsesContentApplicationJsonSchemaData": { - "type": "object", - "properties": { - "total_credits": { - "type": "number", - "format": "double", - "description": "Total credits purchased" - }, - "total_usage": { - "type": "number", - "format": "double", - "description": "Total credits used" - } - }, - "required": [ - "total_credits", - "total_usage" + "OpenRouterWebSearchServerToolType": { + "type": "string", + "enum": [ + "openrouter:web_search" ], - "title": "CreditsGetResponsesContentApplicationJsonSchemaData" + "title": "OpenRouterWebSearchServerToolType" }, - "Credits_getCredits_Response_200": { + "OpenRouterWebSearchServerTool": { "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/CreditsGetResponsesContentApplicationJsonSchemaData" + "parameters": { + "$ref": "#/components/schemas/WebSearchConfig" + }, + "type": { + "$ref": "#/components/schemas/OpenRouterWebSearchServerToolType" } }, "required": [ - "data" - ], - "description": "Total credits purchased and used", - "title": "Credits_getCredits_Response_200" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat": { - "type": "string", - "enum": [ - "float", - "base64" + "type" ], - "description": "The format of the output embeddings", - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat" + "description": "OpenRouter built-in server tool: searches the web for current information", + "title": "OpenRouterWebSearchServerTool" }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type": { + "ChatWebSearchShorthandType": { "type": "string", "enum": [ - "text" + "web_search", + "web_search_preview", + "web_search_preview_2025_03_11", + "web_search_2025_08_26" ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type" + "title": "ChatWebSearchShorthandType" }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0": { + "ChatWebSearchShorthand": { "type": "object", "properties": { - "text": { - "type": "string" + "allowed_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Limit search results to these domains. Supported by Exa, Firecrawl, Parallel, and most native providers (Anthropic, OpenAI, xAI). Not supported with Perplexity. Cannot be used with excluded_domains." + }, + "engine": { + "$ref": "#/components/schemas/WebSearchEngineEnum" + }, + "excluded_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Exclude search results from these domains. Supported by Exa, Firecrawl, Parallel, Anthropic, and xAI. Not supported with OpenAI (silently ignored) or Perplexity. Cannot be used with allowed_domains." + }, + "max_results": { + "type": "integer", + "description": "Maximum number of search results to return per search call. Defaults to 5. Applies to Exa, Firecrawl, and Parallel engines; ignored with native provider search." + }, + "max_total_results": { + "type": "integer", + "description": "Maximum total number of search results across all search calls in a single request. Once this limit is reached, the tool will stop returning new results. Useful for controlling cost and context size in agentic loops. Defaults to 50 when not specified." + }, + "parameters": { + "$ref": "#/components/schemas/WebSearchConfig" + }, + "search_context_size": { + "$ref": "#/components/schemas/SearchQualityLevel" }, "type": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type" + "$ref": "#/components/schemas/ChatWebSearchShorthandType" + }, + "user_location": { + "$ref": "#/components/schemas/WebSearchUserLocationServerTool" } }, "required": [ - "text", "type" ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0" + "description": "Web search tool using OpenAI Responses API syntax. Automatically converted to openrouter:web_search.", + "title": "ChatWebSearchShorthand" }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl": { - "type": "object", - "properties": { - "url": { - "type": "string" - } - }, - "required": [ - "url" - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type": { - "type": "string", - "enum": [ - "image_url" - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1": { - "type": "object", - "properties": { - "image_url": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl" - }, - "type": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type" - } - }, - "required": [ - "image_url", - "type" - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1" - }, - "MultimodalMedia": { - "type": "object", - "properties": { - "data": { - "type": "string" - }, - "format": { - "type": "string" - } - }, - "required": [ - "data" - ], - "title": "MultimodalMedia" - }, - "ContentPartInputAudioType": { - "type": "string", - "enum": [ - "input_audio" - ], - "title": "ContentPartInputAudioType" - }, - "ContentPartInputAudio": { - "type": "object", - "properties": { - "input_audio": { - "$ref": "#/components/schemas/MultimodalMedia" - }, - "type": { - "$ref": "#/components/schemas/ContentPartInputAudioType" - } - }, - "required": [ - "input_audio", - "type" - ], - "title": "ContentPartInputAudio" - }, - "ContentPartInputVideoType": { - "type": "string", - "enum": [ - "input_video" - ], - "title": "ContentPartInputVideoType" - }, - "ContentPartInputVideo": { - "type": "object", - "properties": { - "input_video": { - "$ref": "#/components/schemas/MultimodalMedia" + "ChatFunctionTool": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatFunctionTool0" }, - "type": { - "$ref": "#/components/schemas/ContentPartInputVideoType" - } - }, - "required": [ - "input_video", - "type" - ], - "title": "ContentPartInputVideo" - }, - "ContentPartInputFileType": { - "type": "string", - "enum": [ - "input_file" - ], - "title": "ContentPartInputFileType" - }, - "ContentPartInputFile": { - "type": "object", - "properties": { - "input_file": { - "$ref": "#/components/schemas/MultimodalMedia" + { + "$ref": "#/components/schemas/DatetimeServerTool" }, - "type": { - "$ref": "#/components/schemas/ContentPartInputFileType" - } - }, - "required": [ - "input_file", - "type" - ], - "title": "ContentPartInputFile" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems": { - "oneOf": [ { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0" + "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" }, { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1" + "$ref": "#/components/schemas/ChatSearchModelsServerTool" }, { - "$ref": "#/components/schemas/ContentPartInputAudio" + "$ref": "#/components/schemas/WebFetchServerTool" }, { - "$ref": "#/components/schemas/ContentPartInputVideo" + "$ref": "#/components/schemas/OpenRouterWebSearchServerTool" }, { - "$ref": "#/components/schemas/ContentPartInputFile" + "$ref": "#/components/schemas/ChatWebSearchShorthand" } ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems" + "description": "Tool definition for function calling (regular function or OpenRouter built-in server tool)", + "title": "ChatFunctionTool" }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items": { + "ChatRequest": { "type": "object", "properties": { - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems" - } - } - }, - "required": [ - "content" - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput4": { - "type": "array", - "items": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items" - }, - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput4" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput": { - "oneOf": [ - { - "type": "string" + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - { + "debug": { + "$ref": "#/components/schemas/ChatDebugOptions" + }, + "frequency_penalty": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Frequency penalty (-2.0 to 2.0)" + }, + "image_config": { + "$ref": "#/components/schemas/ImageConfig" + }, + "logit_bias": { + "type": [ + "object", + "null" + ], + "additionalProperties": { + "type": "number", + "format": "double" + }, + "description": "Token logit bias adjustments" + }, + "logprobs": { + "type": [ + "boolean", + "null" + ], + "description": "Return log probabilities" + }, + "max_completion_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Maximum tokens in completion" + }, + "max_tokens": { + "type": [ + "integer", + "null" + ], + "description": "Maximum tokens (deprecated, use max_completion_tokens). Note: some providers enforce a minimum of 16." + }, + "messages": { "type": "array", "items": { + "$ref": "#/components/schemas/ChatMessages" + }, + "description": "List of messages for the conversation" + }, + "metadata": { + "type": "object", + "additionalProperties": { "type": "string" - } + }, + "description": "Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values)" }, - { + "modalities": { "type": "array", "items": { - "type": "number", - "format": "double" - } + "$ref": "#/components/schemas/ChatRequestModalitiesItems" + }, + "description": "Output modalities for the response. Supported values are \"text\", \"image\", and \"audio\"." }, - { + "model": { + "$ref": "#/components/schemas/ModelName" + }, + "models": { + "$ref": "#/components/schemas/ChatModelNames" + }, + "parallel_tool_calls": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enable parallel function calling during tool use. When true, the model may generate multiple tool calls in a single response." + }, + "plugins": { "type": "array", "items": { - "type": "array", - "items": { - "type": "number", - "format": "double" - } - } + "$ref": "#/components/schemas/ChatRequestPluginsItems" + }, + "description": "Plugins you want to enable for this request, including their settings." }, - { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput4" - } - ], - "description": "Text, token, or multimodal input(s) to embed", - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection": { - "type": "string", - "enum": [ - "deny", - "allow" - ], - "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.", - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderName" - }, - { - "type": "string" - } - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice": { - "type": "object", - "properties": { - "audio": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "completion": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "image": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "prompt": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "request": { - "$ref": "#/components/schemas/BigNumberUnion" - } - }, - "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.", - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderName" + "presence_penalty": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Presence penalty (-2.0 to 2.0)" }, - { - "type": "string" - } - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderName" + "provider": { + "$ref": "#/components/schemas/ProviderPreferences" }, - { - "type": "string" - } - ], - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort": { - "oneOf": [ - { - "$ref": "#/components/schemas/ProviderSort" + "reasoning": { + "$ref": "#/components/schemas/ChatRequestReasoning", + "description": "Configuration options for reasoning models" }, - { - "$ref": "#/components/schemas/ProviderSortConfig" + "response_format": { + "$ref": "#/components/schemas/ChatRequestResponseFormat", + "description": "Response format configuration" }, - { + "route": { "description": "Any type" - } - ], - "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort" - }, - "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider": { - "type": "object", - "properties": { - "allow_fallbacks": { + }, + "seed": { "type": [ - "boolean", + "integer", "null" ], - "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" + "description": "Random seed for deterministic outputs" }, - "data_collection": { + "service_tier": { "oneOf": [ { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection" + "$ref": "#/components/schemas/ChatRequestServiceTier" }, { "type": "null" } ], - "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data." + "description": "The service tier to use for processing this request." }, - "enforce_distillable_text": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used." + "session_id": { + "type": "string", + "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters." }, - "ignore": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems" - }, - "description": "List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request." + "stop": { + "$ref": "#/components/schemas/ChatRequestStop", + "description": "Stop sequences (up to 4)" }, - "max_price": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice", - "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion." + "stream": { + "type": "boolean", + "default": false, + "description": "Enable streaming response" }, - "only": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems" - }, - "description": "List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request." + "stream_options": { + "$ref": "#/components/schemas/ChatStreamOptions" }, - "order": { + "temperature": { "type": [ - "array", + "number", "null" ], - "items": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems" - }, - "description": "An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message." - }, - "preferred_max_latency": { - "$ref": "#/components/schemas/PreferredMaxLatency" + "format": "double", + "description": "Sampling temperature (0-2)" }, - "preferred_min_throughput": { - "$ref": "#/components/schemas/PreferredMinThroughput" + "tool_choice": { + "$ref": "#/components/schemas/ChatToolChoice" }, - "quantizations": { - "type": [ - "array", - "null" - ], + "tools": { + "type": "array", "items": { - "$ref": "#/components/schemas/Quantization" + "$ref": "#/components/schemas/ChatFunctionTool" }, - "description": "A list of quantization levels to filter the provider by." + "description": "Available tools for function calling" }, - "require_parameters": { + "top_logprobs": { "type": [ - "boolean", + "integer", "null" ], - "description": "Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest." - }, - "sort": { - "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort", - "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." + "description": "Number of top log probabilities to return (0-20)" }, - "zdr": { + "top_p": { "type": [ - "boolean", + "number", "null" ], - "description": "Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used." - } - }, - "description": "Provider routing preferences for the request.", - "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider" - }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding": { - "oneOf": [ - { - "type": "array", - "items": { - "type": "number", - "format": "double" - } + "format": "double", + "description": "Nucleus sampling parameter (0-1)" }, - { - "type": "string" + "trace": { + "$ref": "#/components/schemas/TraceConfig" + }, + "user": { + "type": "string", + "description": "Unique user identifier" } + }, + "required": [ + "messages" ], - "description": "Embedding vector as an array of floats or a base64 string", - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding" + "description": "Chat completion request parameters", + "title": "ChatRequest" }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject": { + "ChatFinishReasonEnum": { "type": "string", "enum": [ - "embedding" + "tool_calls", + "stop", + "length", + "content_filter", + "error" ], - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject" + "title": "ChatFinishReasonEnum" }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems": { + "ChatTokenLogprobTopLogprobsItems": { "type": "object", "properties": { - "embedding": { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding", - "description": "Embedding vector as an array of floats or a base64 string" + "bytes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "integer" + } }, - "index": { - "type": "integer", - "description": "Index of the embedding in the input list" + "logprob": { + "type": "number", + "format": "double" }, - "object": { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject" + "token": { + "type": "string" } }, "required": [ - "embedding", - "object" + "bytes", + "logprob", + "token" ], - "description": "A single embedding object", - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems" - }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaObject": { - "type": "string", - "enum": [ - "list" - ], - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaObject" + "title": "ChatTokenLogprobTopLogprobsItems" }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails": { + "ChatTokenLogprob": { "type": "object", "properties": { - "audio_tokens": { - "type": "integer", - "description": "Number of audio tokens in the input" - }, - "file_tokens": { - "type": "integer", - "description": "Number of file/document tokens in the input" - }, - "image_tokens": { - "type": "integer", - "description": "Number of image tokens in the input" - }, - "text_tokens": { - "type": "integer", - "description": "Number of text tokens in the input" + "bytes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "integer" + }, + "description": "UTF-8 bytes of the token" }, - "video_tokens": { - "type": "integer", - "description": "Number of video tokens in the input" - } - }, - "description": "Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text + image) and the upstream provider returns modality-level usage data. Only non-zero modality counts are included.", - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails" - }, - "EmbeddingsPostResponsesContentApplicationJsonSchemaUsage": { - "type": "object", - "properties": { - "cost": { + "logprob": { "type": "number", "format": "double", - "description": "Cost of the request in credits" - }, - "prompt_tokens": { - "type": "integer", - "description": "Number of tokens in the input" + "description": "Log probability of the token" }, - "prompt_tokens_details": { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails", - "description": "Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text + image) and the upstream provider returns modality-level usage data. Only non-zero modality counts are included." + "token": { + "type": "string", + "description": "The token" }, - "total_tokens": { - "type": "integer", - "description": "Total number of tokens used" + "top_logprobs": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatTokenLogprobTopLogprobsItems" + }, + "description": "Top alternative tokens with probabilities" } }, "required": [ - "prompt_tokens", - "total_tokens" + "bytes", + "logprob", + "token", + "top_logprobs" ], - "description": "Token usage statistics", - "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaUsage" + "description": "Token log probability information", + "title": "ChatTokenLogprob" }, - "Embeddings_createEmbeddings_Response_200": { + "ChatTokenLogprobs": { "type": "object", "properties": { - "data": { - "type": "array", + "content": { + "type": [ + "array", + "null" + ], "items": { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems" + "$ref": "#/components/schemas/ChatTokenLogprob" }, - "description": "List of embedding objects" - }, - "id": { - "type": "string", - "description": "Unique identifier for the embeddings response" - }, - "model": { - "type": "string", - "description": "The model used for embeddings" - }, - "object": { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaObject" + "description": "Log probabilities for content tokens" }, - "usage": { - "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaUsage", - "description": "Token usage statistics" + "refusal": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ChatTokenLogprob" + }, + "description": "Log probabilities for refusal tokens" } }, "required": [ - "data", - "model", - "object" - ], - "description": "Embeddings response containing embedding vectors", - "title": "Embeddings_createEmbeddings_Response_200" - }, - "InputModality": { - "type": "string", - "enum": [ - "text", - "image", - "file", - "audio", - "video" - ], - "title": "InputModality" - }, - "ModelArchitectureInstructType": { - "type": "string", - "enum": [ - "none", - "airoboros", - "alpaca", - "alpaca-modif", - "chatml", - "claude", - "code-llama", - "gemma", - "llama2", - "llama3", - "mistral", - "nemotron", - "neural", - "openchat", - "phi3", - "rwkv", - "vicuna", - "zephyr", - "deepseek-r1", - "deepseek-v3.1", - "qwq", - "qwen3" - ], - "description": "Instruction format type", - "title": "ModelArchitectureInstructType" - }, - "OutputModality": { - "type": "string", - "enum": [ - "text", - "image", - "embeddings", - "audio", - "video", - "rerank", - "speech", - "transcription" - ], - "title": "OutputModality" - }, - "ModelGroup": { - "type": "string", - "enum": [ - "Router", - "Media", - "Other", - "GPT", - "Claude", - "Gemini", - "Gemma", - "Grok", - "Cohere", - "Nova", - "Qwen", - "Yi", - "DeepSeek", - "Mistral", - "Llama2", - "Llama3", - "Llama4", - "PaLM", - "RWKV", - "Qwen3" + "content" ], - "description": "Tokenizer type used by the model", - "title": "ModelGroup" + "description": "Log probabilities for the completion", + "title": "ChatTokenLogprobs" }, - "ModelArchitecture": { + "ChatAssistantMessage": { "type": "object", "properties": { - "input_modalities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InputModality" - }, - "description": "Supported input modalities" + "audio": { + "$ref": "#/components/schemas/ChatAudioOutput" }, - "instruct_type": { - "oneOf": [ - { - "$ref": "#/components/schemas/ModelArchitectureInstructType" - }, - { - "type": "null" - } + "content": { + "$ref": "#/components/schemas/ChatMessagesDiscriminatorMappingAssistantContent", + "description": "Assistant message content" + }, + "images": { + "$ref": "#/components/schemas/ChatAssistantImages" + }, + "name": { + "type": "string", + "description": "Optional name for the assistant" + }, + "reasoning": { + "type": [ + "string", + "null" ], - "description": "Instruction format type" + "description": "Reasoning output" }, - "modality": { + "reasoning_details": { + "$ref": "#/components/schemas/ChatReasoningDetails" + }, + "refusal": { "type": [ "string", "null" ], - "description": "Primary modality of the model" + "description": "Refusal message if content was refused" }, - "output_modalities": { + "tool_calls": { "type": "array", "items": { - "$ref": "#/components/schemas/OutputModality" + "$ref": "#/components/schemas/ChatToolCall" }, - "description": "Supported output modalities" - }, - "tokenizer": { - "$ref": "#/components/schemas/ModelGroup" + "description": "Tool calls made by the assistant" } }, - "required": [ - "input_modalities", - "modality", - "output_modalities" + "description": "Assistant message for requests and responses", + "title": "ChatAssistantMessage" + }, + "ChatChoice": { + "type": "object", + "properties": { + "finish_reason": { + "$ref": "#/components/schemas/ChatFinishReasonEnum" + }, + "index": { + "type": "integer", + "description": "Choice index" + }, + "logprobs": { + "$ref": "#/components/schemas/ChatTokenLogprobs" + }, + "message": { + "$ref": "#/components/schemas/ChatAssistantMessage" + } + }, + "required": [ + "finish_reason", + "index", + "message" ], - "description": "Model architecture information", - "title": "ModelArchitecture" + "description": "Chat completion choice", + "title": "ChatChoice" }, - "DefaultParameters": { + "ChatResultObject": { + "type": "string", + "enum": [ + "chat.completion" + ], + "title": "ChatResultObject" + }, + "ChatUsageCompletionTokensDetails": { "type": "object", "properties": { - "frequency_penalty": { + "accepted_prediction_tokens": { "type": [ - "number", + "integer", "null" ], - "format": "double" + "description": "Accepted prediction tokens" }, - "presence_penalty": { + "audio_tokens": { "type": [ - "number", + "integer", "null" ], - "format": "double" + "description": "Tokens used for audio output" }, - "repetition_penalty": { + "reasoning_tokens": { "type": [ - "number", + "integer", "null" ], - "format": "double" + "description": "Tokens used for reasoning" }, - "temperature": { + "rejected_prediction_tokens": { "type": [ - "number", + "integer", "null" ], + "description": "Rejected prediction tokens" + } + }, + "description": "Detailed completion token usage", + "title": "ChatUsageCompletionTokensDetails" + }, + "CostDetails": { + "type": "object", + "properties": { + "upstream_inference_completions_cost": { + "type": "number", "format": "double" }, - "top_k": { - "type": [ - "integer", - "null" - ] - }, - "top_p": { + "upstream_inference_cost": { "type": [ "number", "null" ], "format": "double" + }, + "upstream_inference_prompt_cost": { + "type": "number", + "format": "double" } }, - "description": "Default parameters for this model", - "title": "DefaultParameters" + "required": [ + "upstream_inference_completions_cost", + "upstream_inference_prompt_cost" + ], + "description": "Breakdown of upstream inference costs", + "title": "CostDetails" }, - "ModelLinks": { + "ChatUsagePromptTokensDetails": { "type": "object", "properties": { - "details": { - "type": "string", - "description": "URL for the model details/endpoints API" + "audio_tokens": { + "type": "integer", + "description": "Audio input tokens" + }, + "cache_write_tokens": { + "type": "integer", + "description": "Tokens written to cache. Only returned for models with explicit caching and cache write pricing." + }, + "cached_tokens": { + "type": "integer", + "description": "Cached prompt tokens" + }, + "video_tokens": { + "type": "integer", + "description": "Video input tokens" } }, - "required": [ - "details" - ], - "description": "Related API endpoints and resources for this model.", - "title": "ModelLinks" + "description": "Detailed prompt token usage", + "title": "ChatUsagePromptTokensDetails" }, - "PerRequestLimits": { + "ChatUsage": { "type": "object", "properties": { "completion_tokens": { - "type": "number", + "type": "integer", + "description": "Number of tokens in the completion" + }, + "completion_tokens_details": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatUsageCompletionTokensDetails" + }, + { + "type": "null" + } + ], + "description": "Detailed completion token usage" + }, + "cost": { + "type": [ + "number", + "null" + ], "format": "double", - "description": "Maximum completion tokens per request" + "description": "Cost of the completion" + }, + "cost_details": { + "$ref": "#/components/schemas/CostDetails" + }, + "is_byok": { + "type": "boolean", + "description": "Whether a request was made using a Bring Your Own Key configuration" }, "prompt_tokens": { - "type": "number", - "format": "double", - "description": "Maximum prompt tokens per request" + "type": "integer", + "description": "Number of tokens in the prompt" + }, + "prompt_tokens_details": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatUsagePromptTokensDetails" + }, + { + "type": "null" + } + ], + "description": "Detailed prompt token usage" + }, + "total_tokens": { + "type": "integer", + "description": "Total number of tokens" } }, "required": [ "completion_tokens", - "prompt_tokens" + "prompt_tokens", + "total_tokens" ], - "description": "Per-request token limits", - "title": "PerRequestLimits" + "description": "Token usage statistics", + "title": "ChatUsage" }, - "PublicPricing": { + "ChatResult": { "type": "object", "properties": { - "audio": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "audio_output": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "completion": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "discount": { - "type": "number", - "format": "double" - }, - "image": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "image_output": { - "$ref": "#/components/schemas/BigNumberUnion" + "choices": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ChatChoice" + }, + "description": "List of completion choices" }, - "image_token": { - "$ref": "#/components/schemas/BigNumberUnion" + "created": { + "type": "integer", + "description": "Unix timestamp of creation" }, - "input_audio_cache": { - "$ref": "#/components/schemas/BigNumberUnion" + "id": { + "type": "string", + "description": "Unique completion identifier" }, - "input_cache_read": { - "$ref": "#/components/schemas/BigNumberUnion" + "model": { + "type": "string", + "description": "Model used for completion" }, - "input_cache_write": { - "$ref": "#/components/schemas/BigNumberUnion" + "object": { + "$ref": "#/components/schemas/ChatResultObject" }, - "internal_reasoning": { - "$ref": "#/components/schemas/BigNumberUnion" + "openrouter_metadata": { + "$ref": "#/components/schemas/OpenRouterMetadata" }, - "prompt": { - "$ref": "#/components/schemas/BigNumberUnion" + "service_tier": { + "type": [ + "string", + "null" + ], + "description": "The service tier used by the upstream provider for this request" }, - "request": { - "$ref": "#/components/schemas/BigNumberUnion" + "system_fingerprint": { + "type": [ + "string", + "null" + ], + "description": "System fingerprint" }, - "web_search": { - "$ref": "#/components/schemas/BigNumberUnion" + "usage": { + "$ref": "#/components/schemas/ChatUsage" } }, "required": [ - "completion", - "prompt" + "choices", + "created", + "id", + "model", + "object", + "system_fingerprint" ], - "description": "Pricing information for the model", - "title": "PublicPricing" - }, - "Parameter": { - "type": "string", - "enum": [ - "temperature", - "top_p", - "top_k", - "min_p", - "top_a", - "frequency_penalty", - "presence_penalty", - "repetition_penalty", - "max_tokens", - "max_completion_tokens", - "logit_bias", - "logprobs", - "top_logprobs", - "seed", - "response_format", - "structured_outputs", - "stop", - "tools", - "tool_choice", - "parallel_tool_calls", - "include_reasoning", - "reasoning", - "reasoning_effort", - "web_search_options", - "verbosity" - ], - "title": "Parameter" + "description": "Chat completion response", + "title": "ChatResult" }, - "TopProviderInfo": { + "CreditsGetResponsesContentApplicationJsonSchemaData": { "type": "object", "properties": { - "context_length": { - "type": [ - "integer", - "null" - ], - "description": "Context length from the top provider" - }, - "is_moderated": { - "type": "boolean", - "description": "Whether the top provider moderates content" + "total_credits": { + "type": "number", + "format": "double", + "description": "Total credits purchased" }, - "max_completion_tokens": { - "type": [ - "integer", - "null" - ], - "description": "Maximum completion tokens from the top provider" + "total_usage": { + "type": "number", + "format": "double", + "description": "Total credits used" } }, "required": [ - "is_moderated" + "total_credits", + "total_usage" ], - "description": "Information about the top provider for this model", - "title": "TopProviderInfo" + "title": "CreditsGetResponsesContentApplicationJsonSchemaData" }, - "Model": { + "Credits_getCredits_Response_200": { "type": "object", "properties": { - "architecture": { - "$ref": "#/components/schemas/ModelArchitecture" - }, - "canonical_slug": { - "type": "string", - "description": "Canonical slug for the model" - }, - "context_length": { - "type": [ - "integer", - "null" - ], - "description": "Maximum context length in tokens" - }, - "created": { - "type": "integer", - "description": "Unix timestamp of when the model was created" - }, - "default_parameters": { - "$ref": "#/components/schemas/DefaultParameters" - }, - "description": { - "type": "string", - "description": "Description of the model" - }, - "expiration_date": { - "type": [ - "string", - "null" - ], - "description": "The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration." - }, - "hugging_face_id": { - "type": [ - "string", - "null" - ], - "description": "Hugging Face model identifier, if applicable" - }, - "id": { - "type": "string", - "description": "Unique identifier for the model" - }, - "knowledge_cutoff": { - "type": [ - "string", - "null" - ], - "description": "The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown." - }, - "links": { - "$ref": "#/components/schemas/ModelLinks" - }, - "name": { - "type": "string", - "description": "Display name of the model" - }, - "per_request_limits": { - "$ref": "#/components/schemas/PerRequestLimits" - }, - "pricing": { - "$ref": "#/components/schemas/PublicPricing" - }, - "supported_parameters": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Parameter" - }, - "description": "List of supported parameters for this model" - }, - "supported_voices": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of supported voice identifiers for TTS models. Null for non-TTS models." - }, - "top_provider": { - "$ref": "#/components/schemas/TopProviderInfo" + "data": { + "$ref": "#/components/schemas/CreditsGetResponsesContentApplicationJsonSchemaData" } }, "required": [ - "architecture", - "canonical_slug", - "context_length", - "created", - "default_parameters", - "id", - "links", - "name", - "per_request_limits", - "pricing", - "supported_parameters", - "supported_voices", - "top_provider" + "data" ], - "description": "Information about an AI model available on OpenRouter", - "title": "Model" + "description": "Total credits purchased and used", + "title": "Credits_getCredits_Response_200" }, - "ModelsListResponseData": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Model" - }, - "description": "List of available models", - "title": "ModelsListResponseData" + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat": { + "type": "string", + "enum": [ + "float", + "base64" + ], + "description": "The format of the output embeddings", + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat" }, - "ModelsListResponse": { + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type": { + "type": "string", + "enum": [ + "text" + ], + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0": { "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/ModelsListResponseData" + "text": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type" } }, "required": [ - "data" + "text", + "type" ], - "description": "List of available models", - "title": "ModelsListResponse" + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0" }, - "PercentileStats": { + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl": { "type": "object", "properties": { - "p50": { - "type": "number", - "format": "double", - "description": "Median (50th percentile)" - }, - "p75": { - "type": "number", - "format": "double", - "description": "75th percentile" - }, - "p90": { - "type": "number", - "format": "double", - "description": "90th percentile" - }, - "p99": { - "type": "number", - "format": "double", - "description": "99th percentile" + "url": { + "type": "string" } }, "required": [ - "p50", - "p75", - "p90", - "p99" + "url" ], - "description": "Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.", - "title": "PercentileStats" + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl" }, - "PublicEndpointPricing": { + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type": { + "type": "string", + "enum": [ + "image_url" + ], + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1": { "type": "object", "properties": { - "audio": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "audio_output": { - "$ref": "#/components/schemas/BigNumberUnion" + "image_url": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl" }, - "completion": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "discount": { - "type": "number", - "format": "double" - }, - "image": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "image_output": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "image_token": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "input_audio_cache": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "input_cache_read": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "input_cache_write": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "internal_reasoning": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "prompt": { - "$ref": "#/components/schemas/BigNumberUnion" - }, - "request": { - "$ref": "#/components/schemas/BigNumberUnion" + "type": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type" + } + }, + "required": [ + "image_url", + "type" + ], + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1" + }, + "MultimodalMedia": { + "type": "object", + "properties": { + "data": { + "type": "string" }, - "web_search": { - "$ref": "#/components/schemas/BigNumberUnion" + "format": { + "type": "string" } }, "required": [ - "completion", - "prompt" + "data" ], - "title": "PublicEndpointPricing" + "title": "MultimodalMedia" }, - "EndpointStatus": { + "ContentPartInputAudioType": { "type": "string", "enum": [ - "0", - "-1", - "-2", - "-3", - "-5", - "-10" + "input_audio" ], - "title": "EndpointStatus" + "title": "ContentPartInputAudioType" }, - "PublicEndpointThroughputLast30M": { + "ContentPartInputAudio": { "type": "object", "properties": { - "p50": { - "type": "number", - "format": "double", - "description": "Median (50th percentile)" - }, - "p75": { - "type": "number", - "format": "double", - "description": "75th percentile" - }, - "p90": { - "type": "number", - "format": "double", - "description": "90th percentile" + "input_audio": { + "$ref": "#/components/schemas/MultimodalMedia" }, - "p99": { - "type": "number", - "format": "double", - "description": "99th percentile" + "type": { + "$ref": "#/components/schemas/ContentPartInputAudioType" } }, "required": [ - "p50", - "p75", - "p90", - "p99" + "input_audio", + "type" ], - "description": "Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.", - "title": "PublicEndpointThroughputLast30M" + "title": "ContentPartInputAudio" }, - "PublicEndpoint": { + "ContentPartInputVideoType": { + "type": "string", + "enum": [ + "input_video" + ], + "title": "ContentPartInputVideoType" + }, + "ContentPartInputVideo": { "type": "object", "properties": { - "context_length": { - "type": "integer" - }, - "latency_last_30m": { - "$ref": "#/components/schemas/PercentileStats" - }, - "max_completion_tokens": { - "type": [ - "integer", - "null" - ] - }, - "max_prompt_tokens": { - "type": [ - "integer", - "null" - ] - }, - "model_id": { - "type": "string", - "description": "The unique identifier for the model (permaslug)" - }, - "model_name": { - "type": "string" - }, - "name": { - "type": "string" - }, - "pricing": { - "$ref": "#/components/schemas/PublicEndpointPricing" - }, - "provider_name": { - "$ref": "#/components/schemas/ProviderName" - }, - "quantization": { - "$ref": "#/components/schemas/Quantization" - }, - "status": { - "$ref": "#/components/schemas/EndpointStatus" - }, - "supported_parameters": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Parameter" - } + "input_video": { + "$ref": "#/components/schemas/MultimodalMedia" }, - "supports_implicit_caching": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/ContentPartInputVideoType" + } + }, + "required": [ + "input_video", + "type" + ], + "title": "ContentPartInputVideo" + }, + "ContentPartInputFileType": { + "type": "string", + "enum": [ + "input_file" + ], + "title": "ContentPartInputFileType" + }, + "ContentPartInputFile": { + "type": "object", + "properties": { + "input_file": { + "$ref": "#/components/schemas/MultimodalMedia" }, - "tag": { - "type": "string" + "type": { + "$ref": "#/components/schemas/ContentPartInputFileType" + } + }, + "required": [ + "input_file", + "type" + ], + "title": "ContentPartInputFile" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0" }, - "throughput_last_30m": { - "$ref": "#/components/schemas/PublicEndpointThroughputLast30M" + { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1" }, - "uptime_last_1d": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Uptime percentage over the last 1 day, calculated as successful requests / (successful + error requests) * 100. Rate-limited requests are excluded. Returns null if insufficient data." + { + "$ref": "#/components/schemas/ContentPartInputAudio" }, - "uptime_last_30m": { - "type": [ - "number", - "null" - ], - "format": "double" + { + "$ref": "#/components/schemas/ContentPartInputVideo" }, - "uptime_last_5m": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Uptime percentage over the last 5 minutes, calculated as successful requests / (successful + error requests) * 100. Rate-limited requests are excluded. Returns null if insufficient data." + { + "$ref": "#/components/schemas/ContentPartInputFile" } - }, - "required": [ - "context_length", - "latency_last_30m", - "max_completion_tokens", - "max_prompt_tokens", - "model_id", - "model_name", - "name", - "pricing", - "provider_name", - "quantization", - "supported_parameters", - "supports_implicit_caching", - "tag", - "throughput_last_30m", - "uptime_last_1d", - "uptime_last_30m", - "uptime_last_5m" ], - "description": "Information about a specific model endpoint", - "title": "PublicEndpoint" + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems" }, - "Endpoints_listEndpointsZdr_Response_200": { + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items": { "type": "object", "properties": { - "data": { + "content": { "type": "array", "items": { - "$ref": "#/components/schemas/PublicEndpoint" + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems" } } }, "required": [ - "data" + "content" ], - "title": "Endpoints_listEndpointsZdr_Response_200" + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items" }, - "InstructType": { + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput4": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items" + }, + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput4" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + { + "type": "array", + "items": { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + } + }, + { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput4" + } + ], + "description": "Text, token, or multimodal input(s) to embed", + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection": { "type": "string", "enum": [ - "none", - "airoboros", - "alpaca", - "alpaca-modif", - "chatml", - "claude", - "code-llama", - "gemma", - "llama2", - "llama3", - "mistral", - "nemotron", - "neural", - "openchat", - "phi3", - "rwkv", - "vicuna", - "zephyr", - "deepseek-r1", - "deepseek-v3.1", - "qwq", - "qwen3" + "deny", + "allow" ], - "description": "Instruction format type", - "title": "InstructType" + "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data.", + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection" }, - "ListEndpointsResponseArchitecture": { + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } + ], + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice": { "type": "object", "properties": { - "input_modalities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InputModality" - }, - "description": "Supported input modalities" + "audio": { + "$ref": "#/components/schemas/BigNumberUnion" }, - "instruct_type": { + "completion": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "image": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "prompt": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "request": { + "$ref": "#/components/schemas/BigNumberUnion" + } + }, + "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion.", + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } + ], + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderName" + }, + { + "type": "string" + } + ], + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ProviderSort" + }, + { + "$ref": "#/components/schemas/ProviderSortConfig" + }, + { + "description": "Any type" + } + ], + "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed.", + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort" + }, + "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider": { + "type": "object", + "properties": { + "allow_fallbacks": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to allow backup providers to serve requests\n- true: (default) when the primary provider (or your custom providers in \"order\") is unavailable, use the next best provider.\n- false: use only the primary/custom provider, and return the upstream error if it's unavailable.\n" + }, + "data_collection": { "oneOf": [ { - "$ref": "#/components/schemas/InstructType" + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderDataCollection" }, { "type": "null" } ], - "description": "Instruction format type" + "description": "Data collection setting. If no available model provider meets the requirement, your request will return an error.\n- allow: (default) allow providers which store user data non-transiently and may train on it\n\n- deny: use only providers which do not collect user data." }, - "modality": { + "enforce_distillable_text": { "type": [ - "string", + "boolean", "null" ], - "description": "Primary modality of the model" + "description": "Whether to restrict routing to only models that allow text distillation. When true, only models where the author has allowed distillation will be used." }, - "output_modalities": { - "type": "array", + "ignore": { + "type": [ + "array", + "null" + ], "items": { - "$ref": "#/components/schemas/OutputModality" + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderIgnoreItems" }, - "description": "Supported output modalities" + "description": "List of provider slugs to ignore. If provided, this list is merged with your account-wide ignored provider settings for this request." }, - "tokenizer": { - "$ref": "#/components/schemas/ModelGroup" - } - }, - "required": [ - "input_modalities", - "instruct_type", - "modality", - "output_modalities", - "tokenizer" - ], - "description": "Model architecture information", - "title": "ListEndpointsResponseArchitecture" - }, - "ListEndpointsResponse": { - "type": "object", - "properties": { - "architecture": { - "$ref": "#/components/schemas/ListEndpointsResponseArchitecture" + "max_price": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderMaxPrice", + "description": "The object specifying the maximum price you want to pay for this request. USD price per million tokens, for prompt and completion." }, - "created": { - "type": "integer", - "description": "Unix timestamp of when the model was created" + "only": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOnlyItems" + }, + "description": "List of provider slugs to allow. If provided, this list is merged with your account-wide allowed provider settings for this request." }, - "description": { - "type": "string", - "description": "Description of the model" + "order": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderOrderItems" + }, + "description": "An ordered list of provider slugs. The router will attempt to use the first provider in the subset of this list that supports your requested model, and fall back to the next if it is unavailable. If no providers are available, the request will fail with an error message." }, - "endpoints": { - "type": "array", + "preferred_max_latency": { + "$ref": "#/components/schemas/PreferredMaxLatency" + }, + "preferred_min_throughput": { + "$ref": "#/components/schemas/PreferredMinThroughput" + }, + "quantizations": { + "type": [ + "array", + "null" + ], "items": { - "$ref": "#/components/schemas/PublicEndpoint" + "$ref": "#/components/schemas/Quantization" }, - "description": "List of available endpoints for this model" + "description": "A list of quantization levels to filter the provider by." }, - "id": { - "type": "string", - "description": "Unique identifier for the model" + "require_parameters": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to filter providers to only those that support the parameters you've provided. If this setting is omitted or set to false, then providers will receive only the parameters they support, and ignore the rest." }, - "name": { - "type": "string", - "description": "Display name of the model" - } + "sort": { + "$ref": "#/components/schemas/EmbeddingsPostRequestBodyContentApplicationJsonSchemaProviderSort", + "description": "The sorting strategy to use for this request, if \"order\" is not specified. When set, no load balancing is performed." + }, + "zdr": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to restrict routing to only ZDR (Zero Data Retention) endpoints. When true, only endpoints that do not retain prompts will be used." + } }, - "required": [ - "architecture", - "created", - "description", - "endpoints", - "id", - "name" + "description": "Provider routing preferences for the request.", + "title": "EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider" + }, + "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding": { + "oneOf": [ + { + "type": "array", + "items": { + "type": "number", + "format": "double" + } + }, + { + "type": "string" + } ], - "description": "List of available endpoints for a model", - "title": "ListEndpointsResponse" + "description": "Embedding vector as an array of floats or a base64 string", + "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding" }, - "Endpoints_listEndpoints_Response_200": { + "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject": { + "type": "string", + "enum": [ + "embedding" + ], + "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject" + }, + "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems": { "type": "object", "properties": { - "data": { - "$ref": "#/components/schemas/ListEndpointsResponse" + "embedding": { + "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding", + "description": "Embedding vector as an array of floats or a base64 string" + }, + "index": { + "type": "integer", + "description": "Index of the embedding in the input list" + }, + "object": { + "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject" } }, "required": [ - "data" - ], - "title": "Endpoints_listEndpoints_Response_200" - }, - "GenerationResponseDataApiType": { - "type": "string", - "enum": [ - "completions", - "embeddings", - "rerank", - "tts", - "stt", - "video" + "embedding", + "object" ], - "description": "Type of API used for the generation", - "title": "GenerationResponseDataApiType" + "description": "A single embedding object", + "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems" }, - "ProviderResponseProviderName": { + "EmbeddingsPostResponsesContentApplicationJsonSchemaObject": { "type": "string", "enum": [ - "AnyScale", - "Atoma", - "Cent-ML", - "CrofAI", - "Enfer", - "GoPomelo", - "HuggingFace", - "Hyperbolic 2", - "InoCloud", - "Kluster", - "Lambda", - "Lepton", - "Lynn 2", - "Lynn", - "Mancer", - "Meta", - "Modal", - "Nineteen", - "OctoAI", - "Recursal", - "Reflection", - "Replicate", - "SambaNova 2", - "SF Compute", - "Targon", - "Together 2", - "Ubicloud", - "01.AI", - "AkashML", - "AI21", - "AionLabs", - "Alibaba", - "Ambient", - "Baidu", - "Amazon Bedrock", - "Amazon Nova", - "Anthropic", - "Arcee AI", - "AtlasCloud", - "Avian", - "Azure", - "BaseTen", - "BytePlus", - "Black Forest Labs", - "Cerebras", - "Chutes", - "Cirrascale", - "Clarifai", - "Cloudflare", - "Cohere", - "Crucible", - "Crusoe", - "DeepInfra", - "DeepSeek", - "DekaLLM", - "Featherless", - "Fireworks", - "Friendli", - "GMICloud", - "Google", - "Google AI Studio", - "Groq", - "Hyperbolic", - "Inception", - "Inceptron", - "InferenceNet", - "Ionstream", - "Infermatic", - "Io Net", - "Inflection", - "Liquid", - "Mara", - "Mancer 2", - "Minimax", - "ModelRun", - "Mistral", - "Modular", - "Moonshot AI", - "Morph", - "NCompass", - "Nebius", - "Nex AGI", - "NextBit", - "Novita", - "Nvidia", - "OpenAI", - "OpenInference", - "Parasail", - "Poolside", - "Perceptron", - "Perplexity", - "Phala", - "Recraft", - "Reka", - "Relace", - "SambaNova", - "Seed", - "SiliconFlow", - "Sourceful", - "StepFun", - "Stealth", - "StreamLake", - "Switchpoint", - "Together", - "Upstage", - "Venice", - "WandB", - "Xiaomi", - "xAI", - "Z.AI", - "FakeProvider" + "list" ], - "description": "Name of the provider", - "title": "ProviderResponseProviderName" + "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaObject" }, - "ProviderResponse": { + "EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails": { "type": "object", "properties": { - "endpoint_id": { - "type": "string", - "description": "Internal endpoint identifier" + "audio_tokens": { + "type": "integer", + "description": "Number of audio tokens in the input" }, - "id": { - "type": "string", - "description": "Upstream provider response identifier" + "file_tokens": { + "type": "integer", + "description": "Number of file/document tokens in the input" }, - "is_byok": { - "type": "boolean", - "description": "Whether the request used a bring-your-own-key" + "image_tokens": { + "type": "integer", + "description": "Number of image tokens in the input" }, - "latency": { + "text_tokens": { + "type": "integer", + "description": "Number of text tokens in the input" + }, + "video_tokens": { + "type": "integer", + "description": "Number of video tokens in the input" + } + }, + "description": "Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text + image) and the upstream provider returns modality-level usage data. Only non-zero modality counts are included.", + "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails" + }, + "EmbeddingsPostResponsesContentApplicationJsonSchemaUsage": { + "type": "object", + "properties": { + "cost": { "type": "number", "format": "double", - "description": "Response latency in milliseconds" + "description": "Cost of the request in credits" }, - "model_permaslug": { - "type": "string", - "description": "Canonical model slug" + "prompt_tokens": { + "type": "integer", + "description": "Number of tokens in the input" }, - "provider_name": { - "$ref": "#/components/schemas/ProviderResponseProviderName", - "description": "Name of the provider" + "prompt_tokens_details": { + "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaUsagePromptTokensDetails", + "description": "Per-modality token breakdown. Only present when the input contains 2+ modalities (e.g. text + image) and the upstream provider returns modality-level usage data. Only non-zero modality counts are included." }, - "status": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "HTTP status code from the provider" + "total_tokens": { + "type": "integer", + "description": "Total number of tokens used" } }, "required": [ - "status" + "prompt_tokens", + "total_tokens" ], - "description": "Details of a provider response for a generation attempt", - "title": "ProviderResponse" + "description": "Token usage statistics", + "title": "EmbeddingsPostResponsesContentApplicationJsonSchemaUsage" }, - "GenerationResponseData": { + "Embeddings_createEmbeddings_Response_200": { "type": "object", "properties": { - "api_type": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems" + }, + "description": "List of embedding objects" + }, + "id": { + "type": "string", + "description": "Unique identifier for the embeddings response" + }, + "model": { + "type": "string", + "description": "The model used for embeddings" + }, + "object": { + "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaObject" + }, + "usage": { + "$ref": "#/components/schemas/EmbeddingsPostResponsesContentApplicationJsonSchemaUsage", + "description": "Token usage statistics" + } + }, + "required": [ + "data", + "model", + "object" + ], + "description": "Embeddings response containing embedding vectors", + "title": "Embeddings_createEmbeddings_Response_200" + }, + "InputModality": { + "type": "string", + "enum": [ + "text", + "image", + "file", + "audio", + "video" + ], + "title": "InputModality" + }, + "ModelArchitectureInstructType": { + "type": "string", + "enum": [ + "none", + "airoboros", + "alpaca", + "alpaca-modif", + "chatml", + "claude", + "code-llama", + "gemma", + "llama2", + "llama3", + "mistral", + "nemotron", + "neural", + "openchat", + "phi3", + "rwkv", + "vicuna", + "zephyr", + "deepseek-r1", + "deepseek-v3.1", + "qwq", + "qwen3" + ], + "description": "Instruction format type", + "title": "ModelArchitectureInstructType" + }, + "OutputModality": { + "type": "string", + "enum": [ + "text", + "image", + "embeddings", + "audio", + "video", + "rerank", + "speech", + "transcription" + ], + "title": "OutputModality" + }, + "ModelGroup": { + "type": "string", + "enum": [ + "Router", + "Media", + "Other", + "GPT", + "Claude", + "Gemini", + "Gemma", + "Grok", + "Cohere", + "Nova", + "Qwen", + "Yi", + "DeepSeek", + "Mistral", + "Llama2", + "Llama3", + "Llama4", + "PaLM", + "RWKV", + "Qwen3" + ], + "description": "Tokenizer type used by the model", + "title": "ModelGroup" + }, + "ModelArchitecture": { + "type": "object", + "properties": { + "input_modalities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InputModality" + }, + "description": "Supported input modalities" + }, + "instruct_type": { "oneOf": [ { - "$ref": "#/components/schemas/GenerationResponseDataApiType" + "$ref": "#/components/schemas/ModelArchitectureInstructType" }, { "type": "null" } ], - "description": "Type of API used for the generation" - }, - "app_id": { - "type": [ - "integer", - "null" - ], - "description": "ID of the app that made the request" - }, - "cache_discount": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Discount applied due to caching" - }, - "cancelled": { - "type": [ - "boolean", - "null" - ], - "description": "Whether the generation was cancelled" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the generation was created" + "description": "Instruction format type" }, - "external_user": { + "modality": { "type": [ "string", "null" ], - "description": "External user identifier" + "description": "Primary modality of the model" }, - "finish_reason": { - "type": [ - "string", - "null" - ], - "description": "Reason the generation finished" + "output_modalities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OutputModality" + }, + "description": "Supported output modalities" }, - "generation_time": { + "tokenizer": { + "$ref": "#/components/schemas/ModelGroup" + } + }, + "required": [ + "input_modalities", + "modality", + "output_modalities" + ], + "description": "Model architecture information", + "title": "ModelArchitecture" + }, + "DefaultParameters": { + "type": "object", + "properties": { + "frequency_penalty": { "type": [ "number", "null" ], - "format": "double", - "description": "Time taken for generation in milliseconds" - }, - "http_referer": { - "type": [ - "string", - "null" - ], - "description": "Referer header from the request" - }, - "id": { - "type": "string", - "description": "Unique identifier for the generation" - }, - "is_byok": { - "type": "boolean", - "description": "Whether this used bring-your-own-key" + "format": "double" }, - "latency": { + "presence_penalty": { "type": [ "number", "null" ], - "format": "double", - "description": "Total latency in milliseconds" - }, - "model": { - "type": "string", - "description": "Model used for the generation" + "format": "double" }, - "moderation_latency": { + "repetition_penalty": { "type": [ "number", "null" ], - "format": "double", - "description": "Moderation latency in milliseconds" - }, - "native_finish_reason": { - "type": [ - "string", - "null" - ], - "description": "Native finish reason as reported by provider" - }, - "native_tokens_cached": { - "type": [ - "integer", - "null" - ], - "description": "Native cached tokens as reported by provider" + "format": "double" }, - "native_tokens_completion": { + "temperature": { "type": [ - "integer", + "number", "null" ], - "description": "Native completion tokens as reported by provider" + "format": "double" }, - "native_tokens_completion_images": { + "top_k": { "type": [ "integer", "null" - ], - "description": "Native completion image tokens as reported by provider" + ] }, - "native_tokens_prompt": { + "top_p": { "type": [ - "integer", + "number", "null" ], - "description": "Native prompt tokens as reported by provider" + "format": "double" + } + }, + "description": "Default parameters for this model", + "title": "DefaultParameters" + }, + "ModelLinks": { + "type": "object", + "properties": { + "details": { + "type": "string", + "description": "URL for the model details/endpoints API" + } + }, + "required": [ + "details" + ], + "description": "Related API endpoints and resources for this model.", + "title": "ModelLinks" + }, + "PerRequestLimits": { + "type": "object", + "properties": { + "completion_tokens": { + "type": "number", + "format": "double", + "description": "Maximum completion tokens per request" }, - "native_tokens_reasoning": { - "type": [ - "integer", - "null" - ], - "description": "Native reasoning tokens as reported by provider" + "prompt_tokens": { + "type": "number", + "format": "double", + "description": "Maximum prompt tokens per request" + } + }, + "required": [ + "completion_tokens", + "prompt_tokens" + ], + "description": "Per-request token limits", + "title": "PerRequestLimits" + }, + "PublicPricing": { + "type": "object", + "properties": { + "audio": { + "$ref": "#/components/schemas/BigNumberUnion" }, - "num_fetches": { - "type": [ - "integer", - "null" - ], - "description": "Number of web fetches performed" + "audio_output": { + "$ref": "#/components/schemas/BigNumberUnion" }, - "num_input_audio_prompt": { - "type": [ - "integer", - "null" - ], - "description": "Number of audio inputs in the prompt" + "completion": { + "$ref": "#/components/schemas/BigNumberUnion" }, - "num_media_completion": { - "type": [ - "integer", - "null" - ], - "description": "Number of media items in the completion" + "discount": { + "type": "number", + "format": "double" }, - "num_media_prompt": { + "image": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "image_output": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "image_token": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "input_audio_cache": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "input_cache_read": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "input_cache_write": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "internal_reasoning": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "prompt": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "request": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "web_search": { + "$ref": "#/components/schemas/BigNumberUnion" + } + }, + "required": [ + "completion", + "prompt" + ], + "description": "Pricing information for the model", + "title": "PublicPricing" + }, + "Parameter": { + "type": "string", + "enum": [ + "temperature", + "top_p", + "top_k", + "min_p", + "top_a", + "frequency_penalty", + "presence_penalty", + "repetition_penalty", + "max_tokens", + "max_completion_tokens", + "logit_bias", + "logprobs", + "top_logprobs", + "seed", + "response_format", + "structured_outputs", + "stop", + "tools", + "tool_choice", + "parallel_tool_calls", + "include_reasoning", + "reasoning", + "reasoning_effort", + "web_search_options", + "verbosity" + ], + "title": "Parameter" + }, + "TopProviderInfo": { + "type": "object", + "properties": { + "context_length": { "type": [ "integer", "null" ], - "description": "Number of media items in the prompt" + "description": "Context length from the top provider" }, - "num_search_results": { + "is_moderated": { + "type": "boolean", + "description": "Whether the top provider moderates content" + }, + "max_completion_tokens": { "type": [ "integer", "null" ], - "description": "Number of search results included" + "description": "Maximum completion tokens from the top provider" + } + }, + "required": [ + "is_moderated" + ], + "description": "Information about the top provider for this model", + "title": "TopProviderInfo" + }, + "Model": { + "type": "object", + "properties": { + "architecture": { + "$ref": "#/components/schemas/ModelArchitecture" }, - "origin": { + "canonical_slug": { "type": "string", - "description": "Origin URL of the request" + "description": "Canonical slug for the model" }, - "provider_name": { + "context_length": { "type": [ - "string", + "integer", "null" ], - "description": "Name of the provider that served the request" + "description": "Maximum context length in tokens" }, - "provider_responses": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ProviderResponse" - }, - "description": "List of provider responses for this generation, including fallback attempts" + "created": { + "type": "integer", + "description": "Unix timestamp of when the model was created" }, - "request_id": { - "type": [ - "string", - "null" - ], - "description": "Unique identifier grouping all generations from a single API request" + "default_parameters": { + "$ref": "#/components/schemas/DefaultParameters" }, - "response_cache_source_id": { - "type": [ - "string", - "null" - ], - "description": "If this generation was served from response cache, contains the original generation ID. Null otherwise." + "description": { + "type": "string", + "description": "Description of the model" }, - "router": { + "expiration_date": { "type": [ "string", "null" ], - "description": "Router used for the request (e.g., openrouter/auto)" + "description": "The date after which the model may be removed. ISO 8601 date string (YYYY-MM-DD) or null if no expiration." }, - "service_tier": { + "hugging_face_id": { "type": [ "string", "null" ], - "description": "Service tier the upstream provider reported running this request on, or null if it did not report one." + "description": "Hugging Face model identifier, if applicable" }, - "session_id": { + "id": { + "type": "string", + "description": "Unique identifier for the model" + }, + "knowledge_cutoff": { "type": [ "string", "null" ], - "description": "Session identifier grouping multiple generations in the same session" + "description": "The date up to which the model was trained on data. ISO 8601 date string (YYYY-MM-DD) or null if unknown." }, - "streamed": { - "type": [ - "boolean", - "null" - ], - "description": "Whether the response was streamed" + "links": { + "$ref": "#/components/schemas/ModelLinks" }, - "tokens_completion": { - "type": [ - "integer", - "null" - ], - "description": "Number of tokens in the completion" + "name": { + "type": "string", + "description": "Display name of the model" }, - "tokens_prompt": { - "type": [ - "integer", - "null" - ], - "description": "Number of tokens in the prompt" + "per_request_limits": { + "$ref": "#/components/schemas/PerRequestLimits" }, - "total_cost": { - "type": "number", - "format": "double", - "description": "Total cost of the generation in USD" - }, - "upstream_id": { - "type": [ - "string", - "null" - ], - "description": "Upstream provider's identifier for this generation" - }, - "upstream_inference_cost": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Cost charged by the upstream provider" + "pricing": { + "$ref": "#/components/schemas/PublicPricing" }, - "usage": { - "type": "number", - "format": "double", - "description": "Usage amount in USD" + "supported_parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Parameter" + }, + "description": "List of supported parameters for this model" }, - "user_agent": { + "supported_voices": { "type": [ - "string", + "array", "null" ], - "description": "User-Agent header from the request" + "items": { + "type": "string" + }, + "description": "List of supported voice identifiers for TTS models. Null for non-TTS models." }, - "web_search_engine": { - "type": [ - "string", - "null" - ], - "description": "The resolved web search engine used for this generation (e.g. exa, firecrawl, parallel)" + "top_provider": { + "$ref": "#/components/schemas/TopProviderInfo" } }, "required": [ - "api_type", - "app_id", - "cache_discount", - "cancelled", - "created_at", - "external_user", - "finish_reason", - "generation_time", - "http_referer", + "architecture", + "canonical_slug", + "context_length", + "created", + "default_parameters", "id", - "is_byok", - "latency", - "model", - "moderation_latency", - "native_finish_reason", - "native_tokens_cached", - "native_tokens_completion", - "native_tokens_completion_images", - "native_tokens_prompt", - "native_tokens_reasoning", - "num_fetches", - "num_input_audio_prompt", - "num_media_completion", - "num_media_prompt", - "num_search_results", - "origin", - "provider_name", - "provider_responses", - "router", - "service_tier", - "streamed", - "tokens_completion", - "tokens_prompt", - "total_cost", - "upstream_id", - "upstream_inference_cost", - "usage", - "user_agent", - "web_search_engine" + "links", + "name", + "per_request_limits", + "pricing", + "supported_parameters", + "supported_voices", + "top_provider" ], - "description": "Generation data", - "title": "GenerationResponseData" + "description": "Information about an AI model available on OpenRouter", + "title": "Model" }, - "GenerationResponse": { + "ModelsListResponseData": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Model" + }, + "description": "List of available models", + "title": "ModelsListResponseData" + }, + "ModelsListResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/GenerationResponseData", - "description": "Generation data" + "$ref": "#/components/schemas/ModelsListResponseData" } }, "required": [ "data" ], - "description": "Generation response", - "title": "GenerationResponse" + "description": "List of available models", + "title": "ModelsListResponse" }, - "GenerationContentDataInput0": { + "PercentileStats": { "type": "object", "properties": { - "prompt": { - "type": "string" + "p50": { + "type": "number", + "format": "double", + "description": "Median (50th percentile)" + }, + "p75": { + "type": "number", + "format": "double", + "description": "75th percentile" + }, + "p90": { + "type": "number", + "format": "double", + "description": "90th percentile" + }, + "p99": { + "type": "number", + "format": "double", + "description": "99th percentile" } }, "required": [ - "prompt" + "p50", + "p75", + "p90", + "p99" ], - "title": "GenerationContentDataInput0" + "description": "Latency percentiles in milliseconds over the last 30 minutes. Latency measures time to first token. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.", + "title": "PercentileStats" }, - "GenerationContentDataInput1": { + "PublicEndpointPricing": { "type": "object", "properties": { - "messages": { - "type": "array", - "items": { - "description": "Any type" - } + "audio": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "audio_output": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "completion": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "discount": { + "type": "number", + "format": "double" + }, + "image": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "image_output": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "image_token": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "input_audio_cache": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "input_cache_read": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "input_cache_write": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "internal_reasoning": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "prompt": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "request": { + "$ref": "#/components/schemas/BigNumberUnion" + }, + "web_search": { + "$ref": "#/components/schemas/BigNumberUnion" } }, "required": [ - "messages" + "completion", + "prompt" ], - "title": "GenerationContentDataInput1" + "title": "PublicEndpointPricing" }, - "GenerationContentDataInput": { - "oneOf": [ - { - "$ref": "#/components/schemas/GenerationContentDataInput0" - }, - { - "$ref": "#/components/schemas/GenerationContentDataInput1" - } + "EndpointStatus": { + "type": "string", + "enum": [ + "0", + "-1", + "-2", + "-3", + "-5", + "-10" ], - "description": "The input to the generation — either a prompt string or an array of messages", - "title": "GenerationContentDataInput" + "title": "EndpointStatus" }, - "GenerationContentDataOutput": { + "PublicEndpointThroughputLast30M": { "type": "object", "properties": { - "completion": { - "type": [ - "string", - "null" - ], - "description": "The completion output" + "p50": { + "type": "number", + "format": "double", + "description": "Median (50th percentile)" }, - "reasoning": { - "type": [ - "string", - "null" - ], - "description": "Reasoning/thinking output, if any" + "p75": { + "type": "number", + "format": "double", + "description": "75th percentile" + }, + "p90": { + "type": "number", + "format": "double", + "description": "90th percentile" + }, + "p99": { + "type": "number", + "format": "double", + "description": "99th percentile" } }, "required": [ - "completion", - "reasoning" + "p50", + "p75", + "p90", + "p99" ], - "description": "The output from the generation", - "title": "GenerationContentDataOutput" + "description": "Throughput percentiles in tokens per second over the last 30 minutes. Throughput measures output token generation speed. Only visible when authenticated with an API key or cookie; returns null for unauthenticated requests.", + "title": "PublicEndpointThroughputLast30M" }, - "GenerationContentData": { + "PublicEndpoint": { "type": "object", "properties": { - "input": { - "$ref": "#/components/schemas/GenerationContentDataInput", - "description": "The input to the generation — either a prompt string or an array of messages" + "context_length": { + "type": "integer" }, - "output": { - "$ref": "#/components/schemas/GenerationContentDataOutput", - "description": "The output from the generation" + "latency_last_30m": { + "$ref": "#/components/schemas/PercentileStats" + }, + "max_completion_tokens": { + "type": [ + "integer", + "null" + ] + }, + "max_prompt_tokens": { + "type": [ + "integer", + "null" + ] + }, + "model_id": { + "type": "string", + "description": "The unique identifier for the model (permaslug)" + }, + "model_name": { + "type": "string" + }, + "name": { + "type": "string" + }, + "pricing": { + "$ref": "#/components/schemas/PublicEndpointPricing" + }, + "provider_name": { + "$ref": "#/components/schemas/ProviderName" + }, + "quantization": { + "$ref": "#/components/schemas/Quantization" + }, + "status": { + "$ref": "#/components/schemas/EndpointStatus" + }, + "supported_parameters": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Parameter" + } + }, + "supports_implicit_caching": { + "type": "boolean" + }, + "tag": { + "type": "string" + }, + "throughput_last_30m": { + "$ref": "#/components/schemas/PublicEndpointThroughputLast30M" + }, + "uptime_last_1d": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Uptime percentage over the last 1 day, calculated as successful requests / (successful + error requests) * 100. Rate-limited requests are excluded. Returns null if insufficient data." + }, + "uptime_last_30m": { + "type": [ + "number", + "null" + ], + "format": "double" + }, + "uptime_last_5m": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Uptime percentage over the last 5 minutes, calculated as successful requests / (successful + error requests) * 100. Rate-limited requests are excluded. Returns null if insufficient data." } }, "required": [ - "input", - "output" + "context_length", + "latency_last_30m", + "max_completion_tokens", + "max_prompt_tokens", + "model_id", + "model_name", + "name", + "pricing", + "provider_name", + "quantization", + "supported_parameters", + "supports_implicit_caching", + "tag", + "throughput_last_30m", + "uptime_last_1d", + "uptime_last_30m", + "uptime_last_5m" ], - "description": "Stored prompt and completion content", - "title": "GenerationContentData" + "description": "Information about a specific model endpoint", + "title": "PublicEndpoint" }, - "GenerationContentResponse": { + "Endpoints_listEndpointsZdr_Response_200": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/GenerationContentData" + "type": "array", + "items": { + "$ref": "#/components/schemas/PublicEndpoint" + } } }, "required": [ "data" ], - "description": "Stored prompt and completion content for a generation", - "title": "GenerationContentResponse" - }, - "ContentFilterBuiltinAction": { - "type": "string", - "enum": [ - "redact", - "block", - "flag" - ], - "description": "Action taken when the builtin filter triggers", - "title": "ContentFilterBuiltinAction" + "title": "Endpoints_listEndpointsZdr_Response_200" }, - "ContentFilterBuiltinSlug": { + "InstructType": { "type": "string", "enum": [ - "email", - "phone", - "ssn", - "credit-card", - "ip-address", - "person-name", - "address", - "regex-prompt-injection" + "none", + "airoboros", + "alpaca", + "alpaca-modif", + "chatml", + "claude", + "code-llama", + "gemma", + "llama2", + "llama3", + "mistral", + "nemotron", + "neural", + "openchat", + "phi3", + "rwkv", + "vicuna", + "zephyr", + "deepseek-r1", + "deepseek-v3.1", + "qwq", + "qwen3" ], - "description": "The builtin filter identifier", - "title": "ContentFilterBuiltinSlug" + "description": "Instruction format type", + "title": "InstructType" }, - "ContentFilterBuiltinEntry": { + "ListEndpointsResponseArchitecture": { "type": "object", "properties": { - "action": { - "$ref": "#/components/schemas/ContentFilterBuiltinAction" - }, - "label": { - "type": "string", - "description": "Optional label used in redaction placeholders (e.g. \"[PROMPT_INJECTION]\")" + "input_modalities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InputModality" + }, + "description": "Supported input modalities" }, - "slug": { - "$ref": "#/components/schemas/ContentFilterBuiltinSlug" - } - }, - "required": [ - "action", - "slug" - ], - "description": "A builtin content filter entry. Builtin filters include PII detectors and the regex-based prompt injection detector.", - "title": "ContentFilterBuiltinEntry" - }, - "ContentFilterAction": { - "type": "string", - "enum": [ - "redact", - "block" - ], - "description": "Action taken when the pattern matches", - "title": "ContentFilterAction" - }, - "ContentFilterEntry": { - "type": "object", - "properties": { - "action": { - "$ref": "#/components/schemas/ContentFilterAction" + "instruct_type": { + "oneOf": [ + { + "$ref": "#/components/schemas/InstructType" + }, + { + "type": "null" + } + ], + "description": "Instruction format type" }, - "label": { + "modality": { "type": [ "string", "null" ], - "description": "Optional label used in redaction placeholders or error messages" + "description": "Primary modality of the model" }, - "pattern": { - "type": "string", - "description": "A regex pattern to match against request content" + "output_modalities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/OutputModality" + }, + "description": "Supported output modalities" + }, + "tokenizer": { + "$ref": "#/components/schemas/ModelGroup" } }, "required": [ - "action", - "pattern" + "input_modalities", + "instruct_type", + "modality", + "output_modalities", + "tokenizer" ], - "description": "A custom regex content filter that scans request messages for matching patterns.", - "title": "ContentFilterEntry" + "description": "Model architecture information", + "title": "ListEndpointsResponseArchitecture" }, - "GuardrailInterval": { - "type": "string", - "enum": [ - "daily", - "weekly", - "monthly" - ], - "description": "Interval at which the limit resets (daily, weekly, monthly)", - "title": "GuardrailInterval" - }, - "Guardrail": { + "ListEndpointsResponse": { "type": "object", "properties": { - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs (immutable identifiers)" - }, - "allowed_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of allowed provider IDs" - }, - "content_filter_builtins": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterBuiltinEntry" - }, - "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." - }, - "content_filters": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterEntry" - }, - "description": "Custom regex content filters applied to request messages" + "architecture": { + "$ref": "#/components/schemas/ListEndpointsResponseArchitecture" }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the guardrail was created" + "created": { + "type": "integer", + "description": "Unix timestamp of when the model was created" }, "description": { - "type": [ - "string", - "null" - ], - "description": "Description of the guardrail" - }, - "enforce_zdr": { - "type": [ - "boolean", - "null" - ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." - }, - "enforce_zdr_anthropic": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_google": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_openai": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_other": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." - }, - "id": { "type": "string", - "format": "uuid", - "description": "Unique identifier for the guardrail" - }, - "ignored_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs to exclude from routing" + "description": "Description of the model" }, - "ignored_providers": { - "type": [ - "array", - "null" - ], + "endpoints": { + "type": "array", "items": { - "type": "string" + "$ref": "#/components/schemas/PublicEndpoint" }, - "description": "List of provider IDs to exclude from routing" - }, - "limit_usd": { - "type": [ - "number", - "null" - ], - "format": "double", - "description": "Spending limit in USD" + "description": "List of available endpoints for this model" }, - "name": { + "id": { "type": "string", - "description": "Name of the guardrail" - }, - "reset_interval": { - "$ref": "#/components/schemas/GuardrailInterval" - }, - "updated_at": { - "type": [ - "string", - "null" - ], - "description": "ISO 8601 timestamp of when the guardrail was last updated" + "description": "Unique identifier for the model" }, - "workspace_id": { + "name": { "type": "string", - "description": "The workspace ID this guardrail belongs to." + "description": "Display name of the model" } }, "required": [ - "created_at", + "architecture", + "created", + "description", + "endpoints", "id", - "name", - "workspace_id" + "name" ], - "title": "Guardrail" + "description": "List of available endpoints for a model", + "title": "ListEndpointsResponse" }, - "ListGuardrailsResponse": { + "Endpoints_listEndpoints_Response_200": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Guardrail" - }, - "description": "List of guardrails" - }, - "total_count": { - "type": "integer", - "description": "Total number of guardrails" + "$ref": "#/components/schemas/ListEndpointsResponse" } }, "required": [ - "data", - "total_count" + "data" ], - "title": "ListGuardrailsResponse" + "title": "Endpoints_listEndpoints_Response_200" }, - "CreateGuardrailRequest": { - "type": "object", - "properties": { - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model identifiers (slug or canonical_slug accepted)" - }, - "allowed_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of allowed provider IDs" - }, - "content_filter_builtins": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterBuiltinEntry" - }, - "description": "Builtin content filters to apply. The \"flag\" action is only supported for \"regex-prompt-injection\"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept \"block\" or \"redact\" only." - }, - "content_filters": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterEntry" - }, - "description": "Custom regex content filters to apply to request messages" - }, - "description": { - "type": [ - "string", - "null" - ], - "description": "Description of the guardrail" - }, - "enforce_zdr": { - "type": [ - "boolean", - "null" - ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." - }, - "enforce_zdr_anthropic": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_google": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_openai": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_other": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." - }, - "ignored_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model identifiers to exclude from routing (slug or canonical_slug accepted)" + "GenerationResponseDataApiType": { + "type": "string", + "enum": [ + "completions", + "embeddings", + "rerank", + "tts", + "stt", + "video" + ], + "description": "Type of API used for the generation", + "title": "GenerationResponseDataApiType" + }, + "ProviderResponseProviderName": { + "type": "string", + "enum": [ + "AnyScale", + "Atoma", + "Cent-ML", + "CrofAI", + "Enfer", + "GoPomelo", + "HuggingFace", + "Hyperbolic 2", + "InoCloud", + "Kluster", + "Lambda", + "Lepton", + "Lynn 2", + "Lynn", + "Mancer", + "Meta", + "Modal", + "Nineteen", + "OctoAI", + "Recursal", + "Reflection", + "Replicate", + "SambaNova 2", + "SF Compute", + "Targon", + "Together 2", + "Ubicloud", + "01.AI", + "AkashML", + "AI21", + "AionLabs", + "Alibaba", + "Ambient", + "Baidu", + "Amazon Bedrock", + "Amazon Nova", + "Anthropic", + "Arcee AI", + "AtlasCloud", + "Avian", + "Azure", + "BaseTen", + "BytePlus", + "Black Forest Labs", + "Cerebras", + "Chutes", + "Cirrascale", + "Clarifai", + "Cloudflare", + "Cohere", + "Crucible", + "Crusoe", + "DeepInfra", + "DeepSeek", + "DekaLLM", + "Featherless", + "Fireworks", + "Friendli", + "GMICloud", + "Google", + "Google AI Studio", + "Groq", + "Hyperbolic", + "Inception", + "Inceptron", + "InferenceNet", + "Ionstream", + "Infermatic", + "Io Net", + "Inflection", + "Liquid", + "Mara", + "Mancer 2", + "Minimax", + "ModelRun", + "Mistral", + "Modular", + "Moonshot AI", + "Morph", + "NCompass", + "Nebius", + "Nex AGI", + "NextBit", + "Novita", + "Nvidia", + "OpenAI", + "OpenInference", + "Parasail", + "Poolside", + "Perceptron", + "Perplexity", + "Phala", + "Recraft", + "Reka", + "Relace", + "SambaNova", + "Seed", + "SiliconFlow", + "Sourceful", + "StepFun", + "Stealth", + "StreamLake", + "Switchpoint", + "Together", + "Upstage", + "Venice", + "WandB", + "Xiaomi", + "xAI", + "Z.AI", + "FakeProvider" + ], + "description": "Name of the provider", + "title": "ProviderResponseProviderName" + }, + "ProviderResponse": { + "type": "object", + "properties": { + "endpoint_id": { + "type": "string", + "description": "Internal endpoint identifier" }, - "ignored_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of provider IDs to exclude from routing" + "id": { + "type": "string", + "description": "Upstream provider response identifier" }, - "limit_usd": { - "type": [ - "number", - "null" - ], + "is_byok": { + "type": "boolean", + "description": "Whether the request used a bring-your-own-key" + }, + "latency": { + "type": "number", "format": "double", - "description": "Spending limit in USD" + "description": "Response latency in milliseconds" }, - "name": { + "model_permaslug": { "type": "string", - "description": "Name for the new guardrail" + "description": "Canonical model slug" }, - "reset_interval": { - "$ref": "#/components/schemas/GuardrailInterval" + "provider_name": { + "$ref": "#/components/schemas/ProviderResponseProviderName", + "description": "Name of the provider" }, - "workspace_id": { - "type": "string", - "format": "uuid", - "description": "The workspace to create the guardrail in. Defaults to the default workspace if not provided." + "status": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "HTTP status code from the provider" } }, "required": [ - "name" + "status" ], - "title": "CreateGuardrailRequest" + "description": "Details of a provider response for a generation attempt", + "title": "ProviderResponse" }, - "CreateGuardrailResponseData": { + "GenerationResponseData": { "type": "object", "properties": { - "allowed_models": { - "type": [ - "array", - "null" + "api_type": { + "oneOf": [ + { + "$ref": "#/components/schemas/GenerationResponseDataApiType" + }, + { + "type": "null" + } ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs (immutable identifiers)" + "description": "Type of API used for the generation" }, - "allowed_providers": { + "app_id": { "type": [ - "array", + "integer", "null" ], - "items": { - "type": "string" - }, - "description": "List of allowed provider IDs" + "description": "ID of the app that made the request" }, - "content_filter_builtins": { + "cache_discount": { "type": [ - "array", + "number", "null" ], - "items": { - "$ref": "#/components/schemas/ContentFilterBuiltinEntry" - }, - "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." + "format": "double", + "description": "Discount applied due to caching" }, - "content_filters": { + "cancelled": { "type": [ - "array", + "boolean", "null" ], - "items": { - "$ref": "#/components/schemas/ContentFilterEntry" - }, - "description": "Custom regex content filters applied to request messages" + "description": "Whether the generation was cancelled" }, "created_at": { "type": "string", - "description": "ISO 8601 timestamp of when the guardrail was created" + "description": "ISO 8601 timestamp of when the generation was created" }, - "description": { + "external_user": { "type": [ "string", "null" ], - "description": "Description of the guardrail" + "description": "External user identifier" }, - "enforce_zdr": { + "finish_reason": { "type": [ - "boolean", + "string", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "description": "Reason the generation finished" }, - "enforce_zdr_anthropic": { + "generation_time": { "type": [ - "boolean", + "number", "null" ], - "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." + "format": "double", + "description": "Time taken for generation in milliseconds" }, - "enforce_zdr_google": { + "http_referer": { "type": [ - "boolean", + "string", "null" ], - "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." + "description": "Referer header from the request" }, - "enforce_zdr_openai": { + "id": { + "type": "string", + "description": "Unique identifier for the generation" + }, + "is_byok": { + "type": "boolean", + "description": "Whether this used bring-your-own-key" + }, + "latency": { "type": [ - "boolean", + "number", "null" ], - "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." + "format": "double", + "description": "Total latency in milliseconds" }, - "enforce_zdr_other": { + "model": { + "type": "string", + "description": "Model used for the generation" + }, + "moderation_latency": { "type": [ - "boolean", + "number", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + "format": "double", + "description": "Moderation latency in milliseconds" }, - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the guardrail" + "native_finish_reason": { + "type": [ + "string", + "null" + ], + "description": "Native finish reason as reported by provider" }, - "ignored_models": { + "native_tokens_cached": { "type": [ - "array", + "integer", "null" ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs to exclude from routing" + "description": "Native cached tokens as reported by provider" }, - "ignored_providers": { + "native_tokens_completion": { "type": [ - "array", + "integer", "null" ], - "items": { - "type": "string" - }, - "description": "List of provider IDs to exclude from routing" + "description": "Native completion tokens as reported by provider" }, - "limit_usd": { + "native_tokens_completion_images": { "type": [ - "number", + "integer", "null" ], - "format": "double", - "description": "Spending limit in USD" + "description": "Native completion image tokens as reported by provider" }, - "name": { - "type": "string", - "description": "Name of the guardrail" + "native_tokens_prompt": { + "type": [ + "integer", + "null" + ], + "description": "Native prompt tokens as reported by provider" }, - "reset_interval": { - "$ref": "#/components/schemas/GuardrailInterval" + "native_tokens_reasoning": { + "type": [ + "integer", + "null" + ], + "description": "Native reasoning tokens as reported by provider" }, - "updated_at": { + "num_fetches": { "type": [ - "string", + "integer", "null" ], - "description": "ISO 8601 timestamp of when the guardrail was last updated" + "description": "Number of web fetches performed" }, - "workspace_id": { - "type": "string", - "description": "The workspace ID this guardrail belongs to." - } - }, - "required": [ - "created_at", - "id", - "name", - "workspace_id" - ], - "description": "The created guardrail", - "title": "CreateGuardrailResponseData" - }, - "CreateGuardrailResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/CreateGuardrailResponseData" - } - }, - "required": [ - "data" - ], - "title": "CreateGuardrailResponse" - }, - "GetGuardrailResponseData": { - "type": "object", - "properties": { - "allowed_models": { + "num_input_audio_prompt": { "type": [ - "array", + "integer", "null" ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs (immutable identifiers)" + "description": "Number of audio inputs in the prompt" }, - "allowed_providers": { + "num_media_completion": { "type": [ - "array", + "integer", "null" ], - "items": { - "type": "string" - }, - "description": "List of allowed provider IDs" + "description": "Number of media items in the completion" }, - "content_filter_builtins": { + "num_media_prompt": { "type": [ - "array", + "integer", "null" ], - "items": { - "$ref": "#/components/schemas/ContentFilterBuiltinEntry" - }, - "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." + "description": "Number of media items in the prompt" }, - "content_filters": { + "num_search_results": { "type": [ - "array", + "integer", "null" ], - "items": { - "$ref": "#/components/schemas/ContentFilterEntry" - }, - "description": "Custom regex content filters applied to request messages" + "description": "Number of search results included" }, - "created_at": { + "origin": { "type": "string", - "description": "ISO 8601 timestamp of when the guardrail was created" + "description": "Origin URL of the request" }, - "description": { + "provider_name": { "type": [ "string", "null" ], - "description": "Description of the guardrail" + "description": "Name of the provider that served the request" }, - "enforce_zdr": { + "provider_responses": { "type": [ - "boolean", + "array", "null" ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + "items": { + "$ref": "#/components/schemas/ProviderResponse" + }, + "description": "List of provider responses for this generation, including fallback attempts" }, - "enforce_zdr_anthropic": { + "request_id": { "type": [ - "boolean", + "string", "null" ], - "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." + "description": "Unique identifier grouping all generations from a single API request" }, - "enforce_zdr_google": { + "response_cache_source_id": { "type": [ - "boolean", + "string", "null" ], - "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." + "description": "If this generation was served from response cache, contains the original generation ID. Null otherwise." }, - "enforce_zdr_openai": { + "router": { "type": [ - "boolean", + "string", "null" ], - "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." + "description": "Router used for the request (e.g., openrouter/auto)" }, - "enforce_zdr_other": { + "service_tier": { "type": [ - "boolean", + "string", "null" ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." - }, - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the guardrail" + "description": "Service tier the upstream provider reported running this request on, or null if it did not report one." }, - "ignored_models": { + "session_id": { "type": [ - "array", + "string", "null" ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs to exclude from routing" + "description": "Session identifier grouping multiple generations in the same session" }, - "ignored_providers": { + "streamed": { "type": [ - "array", + "boolean", "null" ], - "items": { - "type": "string" - }, - "description": "List of provider IDs to exclude from routing" + "description": "Whether the response was streamed" }, - "limit_usd": { + "tokens_completion": { "type": [ - "number", + "integer", "null" ], - "format": "double", - "description": "Spending limit in USD" + "description": "Number of tokens in the completion" }, - "name": { - "type": "string", - "description": "Name of the guardrail" + "tokens_prompt": { + "type": [ + "integer", + "null" + ], + "description": "Number of tokens in the prompt" }, - "reset_interval": { - "$ref": "#/components/schemas/GuardrailInterval" + "total_cost": { + "type": "number", + "format": "double", + "description": "Total cost of the generation in USD" }, - "updated_at": { + "upstream_id": { "type": [ "string", "null" ], - "description": "ISO 8601 timestamp of when the guardrail was last updated" + "description": "Upstream provider's identifier for this generation" }, - "workspace_id": { - "type": "string", - "description": "The workspace ID this guardrail belongs to." - } - }, - "required": [ + "upstream_inference_cost": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Cost charged by the upstream provider" + }, + "usage": { + "type": "number", + "format": "double", + "description": "Usage amount in USD" + }, + "user_agent": { + "type": [ + "string", + "null" + ], + "description": "User-Agent header from the request" + }, + "web_search_engine": { + "type": [ + "string", + "null" + ], + "description": "The resolved web search engine used for this generation (e.g. exa, firecrawl, parallel)" + } + }, + "required": [ + "api_type", + "app_id", + "cache_discount", + "cancelled", "created_at", + "external_user", + "finish_reason", + "generation_time", + "http_referer", "id", - "name", - "workspace_id" + "is_byok", + "latency", + "model", + "moderation_latency", + "native_finish_reason", + "native_tokens_cached", + "native_tokens_completion", + "native_tokens_completion_images", + "native_tokens_prompt", + "native_tokens_reasoning", + "num_fetches", + "num_input_audio_prompt", + "num_media_completion", + "num_media_prompt", + "num_search_results", + "origin", + "provider_name", + "provider_responses", + "router", + "service_tier", + "streamed", + "tokens_completion", + "tokens_prompt", + "total_cost", + "upstream_id", + "upstream_inference_cost", + "usage", + "user_agent", + "web_search_engine" ], - "description": "The guardrail", - "title": "GetGuardrailResponseData" + "description": "Generation data", + "title": "GenerationResponseData" }, - "GetGuardrailResponse": { + "GenerationResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/GetGuardrailResponseData" + "$ref": "#/components/schemas/GenerationResponseData", + "description": "Generation data" } }, "required": [ "data" ], - "title": "GetGuardrailResponse" + "description": "Generation response", + "title": "GenerationResponse" }, - "DeleteGuardrailResponse": { + "GenerationContentDataInput0": { "type": "object", "properties": { - "deleted": { - "type": "boolean", - "enum": [ - true - ], - "description": "Confirmation that the guardrail was deleted" + "prompt": { + "type": "string" } }, "required": [ - "deleted" + "prompt" ], - "title": "DeleteGuardrailResponse" + "title": "GenerationContentDataInput0" }, - "UpdateGuardrailRequest": { + "GenerationContentDataInput1": { "type": "object", "properties": { - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model identifiers (slug or canonical_slug accepted)" - }, - "allowed_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "New list of allowed provider IDs" - }, - "content_filter_builtins": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/ContentFilterBuiltinEntry" - }, - "description": "Builtin content filters to apply. Set to null to remove. The \"flag\" action is only supported for \"regex-prompt-injection\"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept \"block\" or \"redact\" only." - }, - "content_filters": { - "type": [ - "array", - "null" - ], + "messages": { + "type": "array", "items": { - "$ref": "#/components/schemas/ContentFilterEntry" - }, - "description": "Custom regex content filters to apply. Set to null to remove." + "description": "Any type" + } + } + }, + "required": [ + "messages" + ], + "title": "GenerationContentDataInput1" + }, + "GenerationContentDataInput": { + "oneOf": [ + { + "$ref": "#/components/schemas/GenerationContentDataInput0" }, - "description": { + { + "$ref": "#/components/schemas/GenerationContentDataInput1" + } + ], + "description": "The input to the generation — either a prompt string or an array of messages", + "title": "GenerationContentDataInput" + }, + "GenerationContentDataOutput": { + "type": "object", + "properties": { + "completion": { "type": [ "string", "null" ], - "description": "New description for the guardrail" - }, - "enforce_zdr": { - "type": [ - "boolean", - "null" - ], - "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." - }, - "enforce_zdr_anthropic": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_google": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_openai": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." - }, - "enforce_zdr_other": { - "type": [ - "boolean", - "null" - ], - "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." - }, - "ignored_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model identifiers to exclude from routing (slug or canonical_slug accepted)" - }, - "ignored_providers": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "List of provider IDs to exclude from routing" + "description": "The completion output" }, - "limit_usd": { + "reasoning": { "type": [ - "number", + "string", "null" ], - "format": "double", - "description": "New spending limit in USD" - }, - "name": { - "type": "string", - "description": "New name for the guardrail" - }, - "reset_interval": { - "$ref": "#/components/schemas/GuardrailInterval" + "description": "Reasoning/thinking output, if any" } }, - "title": "UpdateGuardrailRequest" + "required": [ + "completion", + "reasoning" + ], + "description": "The output from the generation", + "title": "GenerationContentDataOutput" }, - "UpdateGuardrailResponseData": { + "GenerationContentData": { "type": "object", "properties": { - "allowed_models": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - }, - "description": "Array of model canonical_slugs (immutable identifiers)" + "input": { + "$ref": "#/components/schemas/GenerationContentDataInput", + "description": "The input to the generation — either a prompt string or an array of messages" }, - "allowed_providers": { - "type": [ - "array", + "output": { + "$ref": "#/components/schemas/GenerationContentDataOutput", + "description": "The output from the generation" + } + }, + "required": [ + "input", + "output" + ], + "description": "Stored prompt and completion content", + "title": "GenerationContentData" + }, + "GenerationContentResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/GenerationContentData" + } + }, + "required": [ + "data" + ], + "description": "Stored prompt and completion content for a generation", + "title": "GenerationContentResponse" + }, + "ContentFilterBuiltinAction": { + "type": "string", + "enum": [ + "redact", + "block", + "flag" + ], + "description": "Action taken when the builtin filter triggers", + "title": "ContentFilterBuiltinAction" + }, + "ContentFilterBuiltinSlug": { + "type": "string", + "enum": [ + "email", + "phone", + "ssn", + "credit-card", + "ip-address", + "person-name", + "address", + "regex-prompt-injection" + ], + "description": "The builtin filter identifier", + "title": "ContentFilterBuiltinSlug" + }, + "ContentFilterBuiltinEntry": { + "type": "object", + "properties": { + "action": { + "$ref": "#/components/schemas/ContentFilterBuiltinAction" + }, + "label": { + "type": "string", + "description": "Optional label used in redaction placeholders (e.g. \"[PROMPT_INJECTION]\")" + }, + "slug": { + "$ref": "#/components/schemas/ContentFilterBuiltinSlug" + } + }, + "required": [ + "action", + "slug" + ], + "description": "A builtin content filter entry. Builtin filters include PII detectors and the regex-based prompt injection detector.", + "title": "ContentFilterBuiltinEntry" + }, + "ContentFilterAction": { + "type": "string", + "enum": [ + "redact", + "block" + ], + "description": "Action taken when the pattern matches", + "title": "ContentFilterAction" + }, + "ContentFilterEntry": { + "type": "object", + "properties": { + "action": { + "$ref": "#/components/schemas/ContentFilterAction" + }, + "label": { + "type": [ + "string", + "null" + ], + "description": "Optional label used in redaction placeholders or error messages" + }, + "pattern": { + "type": "string", + "description": "A regex pattern to match against request content" + } + }, + "required": [ + "action", + "pattern" + ], + "description": "A custom regex content filter that scans request messages for matching patterns.", + "title": "ContentFilterEntry" + }, + "GuardrailInterval": { + "type": "string", + "enum": [ + "daily", + "weekly", + "monthly" + ], + "description": "Interval at which the limit resets (daily, weekly, monthly)", + "title": "GuardrailInterval" + }, + "Guardrail": { + "type": "object", + "properties": { + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs (immutable identifiers)" + }, + "allowed_providers": { + "type": [ + "array", "null" ], "items": { @@ -20620,6374 +20624,9934 @@ "name", "workspace_id" ], - "description": "The updated guardrail", - "title": "UpdateGuardrailResponseData" - }, - "UpdateGuardrailResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/UpdateGuardrailResponseData" - } - }, - "required": [ - "data" - ], - "title": "UpdateGuardrailResponse" - }, - "KeyAssignment": { - "type": "object", - "properties": { - "assigned_by": { - "type": [ - "string", - "null" - ], - "description": "User ID of who made the assignment" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the assignment was created" - }, - "guardrail_id": { - "type": "string", - "format": "uuid", - "description": "ID of the guardrail" - }, - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the assignment" - }, - "key_hash": { - "type": "string", - "description": "Hash of the assigned API key" - }, - "key_label": { - "type": "string", - "description": "Label of the API key" - }, - "key_name": { - "type": "string", - "description": "Name of the API key" - } - }, - "required": [ - "assigned_by", - "created_at", - "guardrail_id", - "id", - "key_hash", - "key_label", - "key_name" - ], - "title": "KeyAssignment" + "title": "Guardrail" }, - "ListKeyAssignmentsResponse": { + "ListGuardrailsResponse": { "type": "object", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/KeyAssignment" + "$ref": "#/components/schemas/Guardrail" }, - "description": "List of key assignments" + "description": "List of guardrails" }, "total_count": { "type": "integer", - "description": "Total number of key assignments for this guardrail" + "description": "Total number of guardrails" } }, "required": [ "data", "total_count" ], - "title": "ListKeyAssignmentsResponse" + "title": "ListGuardrailsResponse" }, - "BulkAssignKeysRequest": { + "CreateGuardrailRequest": { "type": "object", "properties": { - "key_hashes": { - "type": "array", + "allowed_models": { + "type": [ + "array", + "null" + ], "items": { "type": "string" }, - "description": "Array of API key hashes to assign to the guardrail" - } - }, - "required": [ - "key_hashes" - ], - "title": "BulkAssignKeysRequest" - }, - "BulkAssignKeysResponse": { - "type": "object", - "properties": { - "assigned_count": { - "type": "integer", - "description": "Number of keys successfully assigned" - } - }, - "required": [ - "assigned_count" - ], - "title": "BulkAssignKeysResponse" - }, - "BulkUnassignKeysRequest": { - "type": "object", - "properties": { - "key_hashes": { - "type": "array", + "description": "Array of model identifiers (slug or canonical_slug accepted)" + }, + "allowed_providers": { + "type": [ + "array", + "null" + ], "items": { "type": "string" }, - "description": "Array of API key hashes to unassign from the guardrail" - } - }, - "required": [ - "key_hashes" - ], - "title": "BulkUnassignKeysRequest" - }, - "BulkUnassignKeysResponse": { - "type": "object", - "properties": { - "unassigned_count": { - "type": "integer", - "description": "Number of keys successfully unassigned" - } - }, - "required": [ - "unassigned_count" - ], - "title": "BulkUnassignKeysResponse" - }, - "MemberAssignment": { - "type": "object", - "properties": { - "assigned_by": { + "description": "List of allowed provider IDs" + }, + "content_filter_builtins": { "type": [ - "string", + "array", "null" ], - "description": "User ID of who made the assignment" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the assignment was created" - }, - "guardrail_id": { - "type": "string", - "format": "uuid", - "description": "ID of the guardrail" - }, - "id": { - "type": "string", - "format": "uuid", - "description": "Unique identifier for the assignment" - }, - "organization_id": { - "type": "string", - "description": "Organization ID" - }, - "user_id": { - "type": "string", - "description": "Clerk user ID of the assigned member" - } - }, - "required": [ - "assigned_by", - "created_at", - "guardrail_id", - "id", - "organization_id", - "user_id" - ], - "title": "MemberAssignment" - }, - "ListMemberAssignmentsResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", "items": { - "$ref": "#/components/schemas/MemberAssignment" + "$ref": "#/components/schemas/ContentFilterBuiltinEntry" }, - "description": "List of member assignments" + "description": "Builtin content filters to apply. The \"flag\" action is only supported for \"regex-prompt-injection\"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept \"block\" or \"redact\" only." }, - "total_count": { - "type": "integer", - "description": "Total number of member assignments" - } - }, - "required": [ - "data", - "total_count" - ], - "title": "ListMemberAssignmentsResponse" - }, - "BulkAssignMembersRequest": { - "type": "object", - "properties": { - "member_user_ids": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Array of member user IDs to assign to the guardrail" - } - }, - "required": [ - "member_user_ids" - ], - "title": "BulkAssignMembersRequest" - }, - "BulkAssignMembersResponse": { - "type": "object", - "properties": { - "assigned_count": { - "type": "integer", - "description": "Number of members successfully assigned" - } - }, - "required": [ - "assigned_count" - ], - "title": "BulkAssignMembersResponse" - }, - "BulkUnassignMembersRequest": { - "type": "object", - "properties": { - "member_user_ids": { - "type": "array", + "content_filters": { + "type": [ + "array", + "null" + ], "items": { - "type": "string" + "$ref": "#/components/schemas/ContentFilterEntry" }, - "description": "Array of member user IDs to unassign from the guardrail" - } - }, - "required": [ - "member_user_ids" - ], - "title": "BulkUnassignMembersRequest" - }, - "BulkUnassignMembersResponse": { - "type": "object", - "properties": { - "unassigned_count": { - "type": "integer", - "description": "Number of members successfully unassigned" - } - }, - "required": [ - "unassigned_count" - ], - "title": "BulkUnassignMembersResponse" - }, - "KeyGetResponsesContentApplicationJsonSchemaDataRateLimit": { - "type": "object", - "properties": { - "interval": { - "type": "string", - "description": "Rate limit interval" - }, - "note": { - "type": "string", - "description": "Note about the rate limit" - }, - "requests": { - "type": "integer", - "description": "Number of requests allowed per interval" - } - }, - "required": [ - "interval", - "note", - "requests" - ], - "description": "Legacy rate limit information about a key. Will always return -1.", - "title": "KeyGetResponsesContentApplicationJsonSchemaDataRateLimit" - }, - "KeyGetResponsesContentApplicationJsonSchemaData": { - "type": "object", - "properties": { - "byok_usage": { - "type": "number", - "format": "double", - "description": "Total external BYOK usage (in USD) for the API key" - }, - "byok_usage_daily": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC day" - }, - "byok_usage_monthly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for current UTC month" - }, - "byok_usage_weekly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + "description": "Custom regex content filters to apply to request messages" }, - "creator_user_id": { + "description": { "type": [ "string", "null" ], - "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." + "description": "Description of the guardrail" }, - "expires_at": { + "enforce_zdr": { "type": [ - "string", + "boolean", "null" ], - "format": "date-time", - "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" - }, - "include_byok_in_limit": { - "type": "boolean", - "description": "Whether to include external BYOK usage in the credit limit" - }, - "is_free_tier": { - "type": "boolean", - "description": "Whether this is a free tier API key" + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, - "is_management_key": { - "type": "boolean", - "description": "Whether this is a management key" + "enforce_zdr_anthropic": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." }, - "is_provisioning_key": { - "type": "boolean", - "description": "Whether this is a management key" + "enforce_zdr_google": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." }, - "label": { - "type": "string", - "description": "Human-readable label for the API key" + "enforce_zdr_openai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." }, - "limit": { + "enforce_zdr_other": { "type": [ - "number", + "boolean", "null" ], - "format": "double", - "description": "Spending limit for the API key in USD" + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." }, - "limit_remaining": { + "ignored_models": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Remaining spending limit in USD" + "items": { + "type": "string" + }, + "description": "Array of model identifiers to exclude from routing (slug or canonical_slug accepted)" }, - "limit_reset": { + "ignored_providers": { "type": [ - "string", + "array", "null" ], - "description": "Type of limit reset for the API key" + "items": { + "type": "string" + }, + "description": "List of provider IDs to exclude from routing" }, - "rate_limit": { - "$ref": "#/components/schemas/KeyGetResponsesContentApplicationJsonSchemaDataRateLimit", - "description": "Legacy rate limit information about a key. Will always return -1." - }, - "usage": { - "type": "number", + "limit_usd": { + "type": [ + "number", + "null" + ], "format": "double", - "description": "Total OpenRouter credit usage (in USD) for the API key" + "description": "Spending limit in USD" }, - "usage_daily": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC day" + "name": { + "type": "string", + "description": "Name for the new guardrail" }, - "usage_monthly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC month" + "reset_interval": { + "$ref": "#/components/schemas/GuardrailInterval" }, - "usage_weekly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" - } - }, - "required": [ - "byok_usage", - "byok_usage_daily", - "byok_usage_monthly", - "byok_usage_weekly", - "creator_user_id", - "include_byok_in_limit", - "is_free_tier", - "is_management_key", - "is_provisioning_key", - "label", - "limit", - "limit_remaining", - "limit_reset", - "rate_limit", - "usage", - "usage_daily", - "usage_monthly", - "usage_weekly" - ], - "description": "Current API key information", - "title": "KeyGetResponsesContentApplicationJsonSchemaData" - }, - "ApiKeys_getCurrentKey_Response_200": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/KeyGetResponsesContentApplicationJsonSchemaData", - "description": "Current API key information" + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "The workspace to create the guardrail in. Defaults to the default workspace if not provided." } }, "required": [ - "data" + "name" ], - "title": "API Keys_getCurrentKey_Response_200" + "title": "CreateGuardrailRequest" }, - "KeysGetResponsesContentApplicationJsonSchemaDataItems": { + "CreateGuardrailResponseData": { "type": "object", "properties": { - "byok_usage": { - "type": "number", - "format": "double", - "description": "Total external BYOK usage (in USD) for the API key" + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs (immutable identifiers)" }, - "byok_usage_daily": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC day" + "allowed_providers": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "List of allowed provider IDs" }, - "byok_usage_monthly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for current UTC month" + "content_filter_builtins": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterBuiltinEntry" + }, + "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." }, - "byok_usage_weekly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + "content_filters": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterEntry" + }, + "description": "Custom regex content filters applied to request messages" }, "created_at": { "type": "string", - "description": "ISO 8601 timestamp of when the API key was created" + "description": "ISO 8601 timestamp of when the guardrail was created" }, - "creator_user_id": { + "description": { "type": [ "string", "null" ], - "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." + "description": "Description of the guardrail" }, - "disabled": { - "type": "boolean", - "description": "Whether the API key is disabled" + "enforce_zdr": { + "type": [ + "boolean", + "null" + ], + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, - "expires_at": { + "enforce_zdr_anthropic": { "type": [ - "string", + "boolean", "null" ], - "format": "date-time", - "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" + "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." }, - "hash": { - "type": "string", - "description": "Unique hash identifier for the API key" + "enforce_zdr_google": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." }, - "include_byok_in_limit": { - "type": "boolean", - "description": "Whether to include external BYOK usage in the credit limit" + "enforce_zdr_openai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." }, - "label": { + "enforce_zdr_other": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + }, + "id": { "type": "string", - "description": "Human-readable label for the API key" + "format": "uuid", + "description": "Unique identifier for the guardrail" }, - "limit": { + "ignored_models": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Spending limit for the API key in USD" + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs to exclude from routing" }, - "limit_remaining": { + "ignored_providers": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Remaining spending limit in USD" + "items": { + "type": "string" + }, + "description": "List of provider IDs to exclude from routing" }, - "limit_reset": { + "limit_usd": { "type": [ - "string", + "number", "null" ], - "description": "Type of limit reset for the API key" + "format": "double", + "description": "Spending limit in USD" }, "name": { "type": "string", - "description": "Name of the API key" + "description": "Name of the guardrail" + }, + "reset_interval": { + "$ref": "#/components/schemas/GuardrailInterval" }, "updated_at": { "type": [ "string", "null" ], - "description": "ISO 8601 timestamp of when the API key was last updated" - }, - "usage": { - "type": "number", - "format": "double", - "description": "Total OpenRouter credit usage (in USD) for the API key" - }, - "usage_daily": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC day" - }, - "usage_monthly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC month" - }, - "usage_weekly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + "description": "ISO 8601 timestamp of when the guardrail was last updated" }, "workspace_id": { "type": "string", - "description": "The workspace ID this API key belongs to." + "description": "The workspace ID this guardrail belongs to." } }, "required": [ - "byok_usage", - "byok_usage_daily", - "byok_usage_monthly", - "byok_usage_weekly", "created_at", - "creator_user_id", - "disabled", - "hash", - "include_byok_in_limit", - "label", - "limit", - "limit_remaining", - "limit_reset", + "id", "name", - "updated_at", - "usage", - "usage_daily", - "usage_monthly", - "usage_weekly", "workspace_id" ], - "title": "KeysGetResponsesContentApplicationJsonSchemaDataItems" + "description": "The created guardrail", + "title": "CreateGuardrailResponseData" }, - "ApiKeys_list_Response_200": { + "CreateGuardrailResponse": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/KeysGetResponsesContentApplicationJsonSchemaDataItems" - }, - "description": "List of API keys" + "$ref": "#/components/schemas/CreateGuardrailResponseData" } }, "required": [ "data" ], - "title": "API Keys_list_Response_200" - }, - "KeysPostRequestBodyContentApplicationJsonSchemaLimitReset": { - "type": "string", - "enum": [ - "daily", - "weekly", - "monthly" - ], - "description": "Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.", - "title": "KeysPostRequestBodyContentApplicationJsonSchemaLimitReset" + "title": "CreateGuardrailResponse" }, - "KeysPostResponsesContentApplicationJsonSchemaData": { + "GetGuardrailResponseData": { "type": "object", "properties": { - "byok_usage": { - "type": "number", - "format": "double", - "description": "Total external BYOK usage (in USD) for the API key" + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs (immutable identifiers)" }, - "byok_usage_daily": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC day" + "allowed_providers": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "List of allowed provider IDs" }, - "byok_usage_monthly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for current UTC month" + "content_filter_builtins": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterBuiltinEntry" + }, + "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." }, - "byok_usage_weekly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + "content_filters": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterEntry" + }, + "description": "Custom regex content filters applied to request messages" }, "created_at": { "type": "string", - "description": "ISO 8601 timestamp of when the API key was created" + "description": "ISO 8601 timestamp of when the guardrail was created" }, - "creator_user_id": { + "description": { "type": [ "string", "null" ], - "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." + "description": "Description of the guardrail" }, - "disabled": { - "type": "boolean", - "description": "Whether the API key is disabled" + "enforce_zdr": { + "type": [ + "boolean", + "null" + ], + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, - "expires_at": { + "enforce_zdr_anthropic": { "type": [ - "string", + "boolean", "null" ], - "format": "date-time", - "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" + "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." }, - "hash": { - "type": "string", - "description": "Unique hash identifier for the API key" + "enforce_zdr_google": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." }, - "include_byok_in_limit": { - "type": "boolean", - "description": "Whether to include external BYOK usage in the credit limit" + "enforce_zdr_openai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." }, - "label": { + "enforce_zdr_other": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + }, + "id": { "type": "string", - "description": "Human-readable label for the API key" + "format": "uuid", + "description": "Unique identifier for the guardrail" }, - "limit": { + "ignored_models": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Spending limit for the API key in USD" + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs to exclude from routing" }, - "limit_remaining": { + "ignored_providers": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Remaining spending limit in USD" + "items": { + "type": "string" + }, + "description": "List of provider IDs to exclude from routing" }, - "limit_reset": { + "limit_usd": { "type": [ - "string", + "number", "null" ], - "description": "Type of limit reset for the API key" + "format": "double", + "description": "Spending limit in USD" }, "name": { "type": "string", - "description": "Name of the API key" + "description": "Name of the guardrail" + }, + "reset_interval": { + "$ref": "#/components/schemas/GuardrailInterval" }, "updated_at": { "type": [ "string", "null" ], - "description": "ISO 8601 timestamp of when the API key was last updated" - }, - "usage": { - "type": "number", - "format": "double", - "description": "Total OpenRouter credit usage (in USD) for the API key" - }, - "usage_daily": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC day" - }, - "usage_monthly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC month" - }, - "usage_weekly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + "description": "ISO 8601 timestamp of when the guardrail was last updated" }, "workspace_id": { "type": "string", - "description": "The workspace ID this API key belongs to." + "description": "The workspace ID this guardrail belongs to." } }, "required": [ - "byok_usage", - "byok_usage_daily", - "byok_usage_monthly", - "byok_usage_weekly", "created_at", - "creator_user_id", - "disabled", - "hash", - "include_byok_in_limit", - "label", - "limit", - "limit_remaining", - "limit_reset", + "id", "name", - "updated_at", - "usage", - "usage_daily", - "usage_monthly", - "usage_weekly", "workspace_id" ], - "description": "The created API key information", - "title": "KeysPostResponsesContentApplicationJsonSchemaData" + "description": "The guardrail", + "title": "GetGuardrailResponseData" }, - "ApiKeys_createKeys_Response_201": { + "GetGuardrailResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/KeysPostResponsesContentApplicationJsonSchemaData", - "description": "The created API key information" - }, - "key": { - "type": "string", - "description": "The actual API key string (only shown once)" + "$ref": "#/components/schemas/GetGuardrailResponseData" } }, "required": [ - "data", - "key" + "data" ], - "title": "API Keys_createKeys_Response_201" + "title": "GetGuardrailResponse" }, - "KeysHashGetResponsesContentApplicationJsonSchemaData": { + "DeleteGuardrailResponse": { "type": "object", "properties": { - "byok_usage": { - "type": "number", - "format": "double", - "description": "Total external BYOK usage (in USD) for the API key" - }, - "byok_usage_daily": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC day" - }, - "byok_usage_monthly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for current UTC month" - }, - "byok_usage_weekly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the API key was created" - }, - "creator_user_id": { - "type": [ - "string", - "null" - ], - "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." - }, - "disabled": { + "deleted": { "type": "boolean", - "description": "Whether the API key is disabled" - }, - "expires_at": { - "type": [ - "string", - "null" - ], - "format": "date-time", - "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" - }, - "hash": { - "type": "string", - "description": "Unique hash identifier for the API key" - }, - "include_byok_in_limit": { - "type": "boolean", - "description": "Whether to include external BYOK usage in the credit limit" - }, - "label": { - "type": "string", - "description": "Human-readable label for the API key" - }, - "limit": { + "enum": [ + true + ], + "description": "Confirmation that the guardrail was deleted" + } + }, + "required": [ + "deleted" + ], + "title": "DeleteGuardrailResponse" + }, + "UpdateGuardrailRequest": { + "type": "object", + "properties": { + "allowed_models": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Spending limit for the API key in USD" + "items": { + "type": "string" + }, + "description": "Array of model identifiers (slug or canonical_slug accepted)" }, - "limit_remaining": { + "allowed_providers": { "type": [ - "number", + "array", "null" ], - "format": "double", - "description": "Remaining spending limit in USD" + "items": { + "type": "string" + }, + "description": "New list of allowed provider IDs" }, - "limit_reset": { + "content_filter_builtins": { "type": [ - "string", + "array", "null" ], - "description": "Type of limit reset for the API key" + "items": { + "$ref": "#/components/schemas/ContentFilterBuiltinEntry" + }, + "description": "Builtin content filters to apply. Set to null to remove. The \"flag\" action is only supported for \"regex-prompt-injection\"; PII slugs (email, phone, ssn, credit-card, ip-address, person-name, address) accept \"block\" or \"redact\" only." }, - "name": { - "type": "string", - "description": "Name of the API key" + "content_filters": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterEntry" + }, + "description": "Custom regex content filters to apply. Set to null to remove." }, - "updated_at": { + "description": { "type": [ "string", "null" ], - "description": "ISO 8601 timestamp of when the API key was last updated" - }, - "usage": { - "type": "number", - "format": "double", - "description": "Total OpenRouter credit usage (in USD) for the API key" - }, - "usage_daily": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC day" - }, - "usage_monthly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC month" - }, - "usage_weekly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + "description": "New description for the guardrail" }, - "workspace_id": { - "type": "string", - "description": "The workspace ID this API key belongs to." - } - }, - "required": [ - "byok_usage", - "byok_usage_daily", - "byok_usage_monthly", - "byok_usage_weekly", - "created_at", - "creator_user_id", - "disabled", - "hash", - "include_byok_in_limit", - "label", - "limit", - "limit_remaining", - "limit_reset", - "name", - "updated_at", - "usage", - "usage_daily", - "usage_monthly", - "usage_weekly", - "workspace_id" - ], - "description": "The API key information", - "title": "KeysHashGetResponsesContentApplicationJsonSchemaData" - }, - "ApiKeys_getKey_Response_200": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/KeysHashGetResponsesContentApplicationJsonSchemaData", - "description": "The API key information" - } - }, - "required": [ - "data" - ], - "title": "API Keys_getKey_Response_200" - }, - "ApiKeys_deleteKeys_Response_200": { - "type": "object", - "properties": { - "deleted": { - "type": "boolean", - "enum": [ - true + "enforce_zdr": { + "type": [ + "boolean", + "null" ], - "description": "Confirmation that the API key was deleted" - } - }, - "required": [ - "deleted" - ], - "title": "API Keys_deleteKeys_Response_200" - }, - "KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset": { - "type": "string", - "enum": [ - "daily", - "weekly", - "monthly" - ], - "description": "New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.", - "title": "KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset" - }, - "KeysHashPatchResponsesContentApplicationJsonSchemaData": { - "type": "object", - "properties": { - "byok_usage": { - "type": "number", - "format": "double", - "description": "Total external BYOK usage (in USD) for the API key" - }, - "byok_usage_daily": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC day" - }, - "byok_usage_monthly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for current UTC month" - }, - "byok_usage_weekly": { - "type": "number", - "format": "double", - "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 timestamp of when the API key was created" + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." }, - "creator_user_id": { + "enforce_zdr_anthropic": { "type": [ - "string", + "boolean", "null" ], - "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." - }, - "disabled": { - "type": "boolean", - "description": "Whether the API key is disabled" + "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." }, - "expires_at": { + "enforce_zdr_google": { "type": [ - "string", + "boolean", "null" ], - "format": "date-time", - "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" - }, - "hash": { - "type": "string", - "description": "Unique hash identifier for the API key" - }, - "include_byok_in_limit": { - "type": "boolean", - "description": "Whether to include external BYOK usage in the credit limit" - }, - "label": { - "type": "string", - "description": "Human-readable label for the API key" + "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." }, - "limit": { + "enforce_zdr_openai": { "type": [ - "number", + "boolean", "null" ], - "format": "double", - "description": "Spending limit for the API key in USD" + "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." }, - "limit_remaining": { + "enforce_zdr_other": { "type": [ - "number", + "boolean", "null" ], - "format": "double", - "description": "Remaining spending limit in USD" + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." }, - "limit_reset": { + "ignored_models": { "type": [ - "string", + "array", "null" ], - "description": "Type of limit reset for the API key" - }, - "name": { - "type": "string", - "description": "Name of the API key" + "items": { + "type": "string" + }, + "description": "Array of model identifiers to exclude from routing (slug or canonical_slug accepted)" }, - "updated_at": { + "ignored_providers": { "type": [ - "string", + "array", "null" ], - "description": "ISO 8601 timestamp of when the API key was last updated" - }, - "usage": { - "type": "number", - "format": "double", - "description": "Total OpenRouter credit usage (in USD) for the API key" + "items": { + "type": "string" + }, + "description": "List of provider IDs to exclude from routing" }, - "usage_daily": { - "type": "number", + "limit_usd": { + "type": [ + "number", + "null" + ], "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC day" + "description": "New spending limit in USD" }, - "usage_monthly": { - "type": "number", - "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC month" + "name": { + "type": "string", + "description": "New name for the guardrail" }, - "usage_weekly": { - "type": "number", + "reset_interval": { + "$ref": "#/components/schemas/GuardrailInterval" + } + }, + "title": "UpdateGuardrailRequest" + }, + "UpdateGuardrailResponseData": { + "type": "object", + "properties": { + "allowed_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs (immutable identifiers)" + }, + "allowed_providers": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "List of allowed provider IDs" + }, + "content_filter_builtins": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterBuiltinEntry" + }, + "description": "Builtin content filters applied to requests. Includes PII detectors and the regex-based prompt injection detector." + }, + "content_filters": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/ContentFilterEntry" + }, + "description": "Custom regex content filters applied to request messages" + }, + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the guardrail was created" + }, + "description": { + "type": [ + "string", + "null" + ], + "description": "Description of the guardrail" + }, + "enforce_zdr": { + "type": [ + "boolean", + "null" + ], + "description": "Deprecated. Use enforce_zdr_anthropic, enforce_zdr_openai, enforce_zdr_google, and enforce_zdr_other instead. When provided, its value is copied into any of those per-provider fields that are not explicitly specified on the request." + }, + "enforce_zdr_anthropic": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Anthropic models. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_google": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for Google models. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_openai": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for OpenAI models. Falls back to enforce_zdr when not provided." + }, + "enforce_zdr_other": { + "type": [ + "boolean", + "null" + ], + "description": "Whether to enforce zero data retention for models that are not from Anthropic, OpenAI, or Google. Falls back to enforce_zdr when not provided." + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the guardrail" + }, + "ignored_models": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Array of model canonical_slugs to exclude from routing" + }, + "ignored_providers": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "List of provider IDs to exclude from routing" + }, + "limit_usd": { + "type": [ + "number", + "null" + ], "format": "double", - "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + "description": "Spending limit in USD" + }, + "name": { + "type": "string", + "description": "Name of the guardrail" + }, + "reset_interval": { + "$ref": "#/components/schemas/GuardrailInterval" + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "description": "ISO 8601 timestamp of when the guardrail was last updated" }, "workspace_id": { "type": "string", - "description": "The workspace ID this API key belongs to." + "description": "The workspace ID this guardrail belongs to." } }, "required": [ - "byok_usage", - "byok_usage_daily", - "byok_usage_monthly", - "byok_usage_weekly", "created_at", - "creator_user_id", - "disabled", - "hash", - "include_byok_in_limit", - "label", - "limit", - "limit_remaining", - "limit_reset", + "id", "name", - "updated_at", - "usage", - "usage_daily", - "usage_monthly", - "usage_weekly", "workspace_id" ], - "description": "The updated API key information", - "title": "KeysHashPatchResponsesContentApplicationJsonSchemaData" + "description": "The updated guardrail", + "title": "UpdateGuardrailResponseData" }, - "ApiKeys_updateKeys_Response_200": { + "UpdateGuardrailResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/KeysHashPatchResponsesContentApplicationJsonSchemaData", - "description": "The updated API key information" + "$ref": "#/components/schemas/UpdateGuardrailResponseData" } }, "required": [ "data" ], - "title": "API Keys_updateKeys_Response_200" - }, - "AnthropicInputTokensClearAtLeastType": { - "type": "string", - "enum": [ - "input_tokens" - ], - "title": "AnthropicInputTokensClearAtLeastType" + "title": "UpdateGuardrailResponse" }, - "AnthropicInputTokensClearAtLeast": { + "KeyAssignment": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicInputTokensClearAtLeastType" + "assigned_by": { + "type": [ + "string", + "null" + ], + "description": "User ID of who made the assignment" }, - "value": { - "type": "integer" + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the assignment was created" + }, + "guardrail_id": { + "type": "string", + "format": "uuid", + "description": "ID of the guardrail" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the assignment" + }, + "key_hash": { + "type": "string", + "description": "Hash of the assigned API key" + }, + "key_label": { + "type": "string", + "description": "Label of the API key" + }, + "key_name": { + "type": "string", + "description": "Name of the API key" } }, "required": [ - "type", - "value" + "assigned_by", + "created_at", + "guardrail_id", + "id", + "key_hash", + "key_label", + "key_name" ], - "title": "AnthropicInputTokensClearAtLeast" + "title": "KeyAssignment" }, - "MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs": { - "oneOf": [ - { - "type": "boolean" - }, - { + "ListKeyAssignmentsResponse": { + "type": "object", + "properties": { + "data": { "type": "array", "items": { - "type": "string" - } + "$ref": "#/components/schemas/KeyAssignment" + }, + "description": "List of key assignments" }, - { - "description": "Any type" + "total_count": { + "type": "integer", + "description": "Total number of key assignments for this guardrail" } + }, + "required": [ + "data", + "total_count" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" + "title": "ListKeyAssignmentsResponse" }, - "AnthropicToolUsesKeepType": { - "type": "string", - "enum": [ - "tool_uses" + "BulkAssignKeysRequest": { + "type": "object", + "properties": { + "key_hashes": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of API key hashes to assign to the guardrail" + } + }, + "required": [ + "key_hashes" ], - "title": "AnthropicToolUsesKeepType" + "title": "BulkAssignKeysRequest" }, - "AnthropicToolUsesKeep": { + "BulkAssignKeysResponse": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicToolUsesKeepType" - }, - "value": { - "type": "integer" + "assigned_count": { + "type": "integer", + "description": "Number of keys successfully assigned" } }, "required": [ - "type", - "value" + "assigned_count" ], - "title": "AnthropicToolUsesKeep" + "title": "BulkAssignKeysResponse" }, - "MessagesRequestContextManagementEditsItemsOneOf0Trigger": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "input_tokens" - ], - "description": "Discriminator value: input_tokens" - }, - "value": { - "type": "integer" - } - }, - "required": [ - "type", - "value" - ], - "description": "input_tokens variant" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_uses" - ], - "description": "Discriminator value: tool_uses" - }, - "value": { - "type": "integer" - } + "BulkUnassignKeysRequest": { + "type": "object", + "properties": { + "key_hashes": { + "type": "array", + "items": { + "type": "string" }, - "required": [ - "type", - "value" - ], - "description": "tool_uses variant" + "description": "Array of API key hashes to unassign from the guardrail" } - ], - "discriminator": { - "propertyName": "type" }, - "title": "MessagesRequestContextManagementEditsItemsOneOf0Trigger" + "required": [ + "key_hashes" + ], + "title": "BulkUnassignKeysRequest" }, - "MessagesRequestContextManagementEditsItemsOneOf0Type": { - "type": "string", - "enum": [ - "clear_tool_uses_20250919" + "BulkUnassignKeysResponse": { + "type": "object", + "properties": { + "unassigned_count": { + "type": "integer", + "description": "Number of keys successfully unassigned" + } + }, + "required": [ + "unassigned_count" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf0Type" + "title": "BulkUnassignKeysResponse" }, - "MessagesRequestContextManagementEditsItems0": { + "MemberAssignment": { "type": "object", "properties": { - "clear_at_least": { - "$ref": "#/components/schemas/AnthropicInputTokensClearAtLeast" - }, - "clear_tool_inputs": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" - }, - "exclude_tools": { + "assigned_by": { "type": [ - "array", + "string", "null" ], - "items": { - "type": "string" - } + "description": "User ID of who made the assignment" }, - "keep": { - "$ref": "#/components/schemas/AnthropicToolUsesKeep" + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the assignment was created" }, - "trigger": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0Trigger" + "guardrail_id": { + "type": "string", + "format": "uuid", + "description": "ID of the guardrail" }, - "type": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0Type" + "id": { + "type": "string", + "format": "uuid", + "description": "Unique identifier for the assignment" + }, + "organization_id": { + "type": "string", + "description": "Organization ID" + }, + "user_id": { + "type": "string", + "description": "Clerk user ID of the assigned member" } }, "required": [ - "type" - ], - "title": "MessagesRequestContextManagementEditsItems0" - }, - "AnthropicThinkingTurnsType": { - "type": "string", - "enum": [ - "thinking_turns" + "assigned_by", + "created_at", + "guardrail_id", + "id", + "organization_id", + "user_id" ], - "title": "AnthropicThinkingTurnsType" + "title": "MemberAssignment" }, - "AnthropicThinkingTurns": { + "ListMemberAssignmentsResponse": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicThinkingTurnsType" + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MemberAssignment" + }, + "description": "List of member assignments" }, - "value": { - "type": "integer" + "total_count": { + "type": "integer", + "description": "Total number of member assignments" } }, "required": [ - "type", - "value" + "data", + "total_count" ], - "title": "AnthropicThinkingTurns" + "title": "ListMemberAssignmentsResponse" }, - "MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type": { - "type": "string", - "enum": [ - "all" + "BulkAssignMembersRequest": { + "type": "object", + "properties": { + "member_user_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of member user IDs to assign to the guardrail" + } + }, + "required": [ + "member_user_ids" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type" + "title": "BulkAssignMembersRequest" }, - "MessagesRequestContextManagementEditsItemsOneOf1Keep1": { + "BulkAssignMembersResponse": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type" + "assigned_count": { + "type": "integer", + "description": "Number of members successfully assigned" } }, "required": [ - "type" + "assigned_count" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf1Keep1" + "title": "BulkAssignMembersResponse" }, - "MessagesRequestContextManagementEditsItemsOneOf1Keep2": { - "type": "string", - "enum": [ - "all" + "BulkUnassignMembersRequest": { + "type": "object", + "properties": { + "member_user_ids": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Array of member user IDs to unassign from the guardrail" + } + }, + "required": [ + "member_user_ids" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf1Keep2" + "title": "BulkUnassignMembersRequest" }, - "MessagesRequestContextManagementEditsItemsOneOf1Keep": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicThinkingTurns" - }, - { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Keep1" - }, - { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Keep2" - } - ], - "title": "MessagesRequestContextManagementEditsItemsOneOf1Keep" - }, - "MessagesRequestContextManagementEditsItemsOneOf1Type": { - "type": "string", - "enum": [ - "clear_thinking_20251015" - ], - "title": "MessagesRequestContextManagementEditsItemsOneOf1Type" - }, - "MessagesRequestContextManagementEditsItems1": { + "BulkUnassignMembersResponse": { "type": "object", "properties": { - "keep": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Keep" - }, - "type": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Type" + "unassigned_count": { + "type": "integer", + "description": "Number of members successfully unassigned" } }, "required": [ - "type" - ], - "title": "MessagesRequestContextManagementEditsItems1" - }, - "MessagesRequestContextManagementEditsItemsOneOf2TriggerType": { - "type": "string", - "enum": [ - "input_tokens" + "unassigned_count" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf2TriggerType" + "title": "BulkUnassignMembersResponse" }, - "MessagesRequestContextManagementEditsItemsOneOf2Trigger": { + "KeyGetResponsesContentApplicationJsonSchemaDataRateLimit": { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2TriggerType" + "interval": { + "type": "string", + "description": "Rate limit interval" }, - "value": { - "type": "integer" + "note": { + "type": "string", + "description": "Note about the rate limit" + }, + "requests": { + "type": "integer", + "description": "Number of requests allowed per interval" } }, "required": [ - "type", - "value" - ], - "title": "MessagesRequestContextManagementEditsItemsOneOf2Trigger" - }, - "MessagesRequestContextManagementEditsItemsOneOf2Type": { - "type": "string", - "enum": [ - "compact_20260112" + "interval", + "note", + "requests" ], - "title": "MessagesRequestContextManagementEditsItemsOneOf2Type" + "description": "Legacy rate limit information about a key. Will always return -1.", + "title": "KeyGetResponsesContentApplicationJsonSchemaDataRateLimit" }, - "MessagesRequestContextManagementEditsItems2": { + "KeyGetResponsesContentApplicationJsonSchemaData": { "type": "object", "properties": { - "instructions": { + "byok_usage": { + "type": "number", + "format": "double", + "description": "Total external BYOK usage (in USD) for the API key" + }, + "byok_usage_daily": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC day" + }, + "byok_usage_monthly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for current UTC month" + }, + "byok_usage_weekly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "creator_user_id": { "type": [ "string", "null" - ] + ], + "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." }, - "pause_after_compaction": { - "type": "boolean" + "expires_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" }, - "trigger": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Trigger" + "include_byok_in_limit": { + "type": "boolean", + "description": "Whether to include external BYOK usage in the credit limit" }, - "type": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Type" - } - }, - "required": [ - "type" - ], - "title": "MessagesRequestContextManagementEditsItems2" - }, - "MessagesRequestContextManagementEditsItems": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems0" + "is_free_tier": { + "type": "boolean", + "description": "Whether this is a free tier API key" }, - { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems1" + "is_management_key": { + "type": "boolean", + "description": "Whether this is a management key" }, - { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems2" + "is_provisioning_key": { + "type": "boolean", + "description": "Whether this is a management key" + }, + "label": { + "type": "string", + "description": "Human-readable label for the API key" + }, + "limit": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Spending limit for the API key in USD" + }, + "limit_remaining": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Remaining spending limit in USD" + }, + "limit_reset": { + "type": [ + "string", + "null" + ], + "description": "Type of limit reset for the API key" + }, + "rate_limit": { + "$ref": "#/components/schemas/KeyGetResponsesContentApplicationJsonSchemaDataRateLimit", + "description": "Legacy rate limit information about a key. Will always return -1." + }, + "usage": { + "type": "number", + "format": "double", + "description": "Total OpenRouter credit usage (in USD) for the API key" + }, + "usage_daily": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC day" + }, + "usage_monthly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC month" + }, + "usage_weekly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" } + }, + "required": [ + "byok_usage", + "byok_usage_daily", + "byok_usage_monthly", + "byok_usage_weekly", + "creator_user_id", + "include_byok_in_limit", + "is_free_tier", + "is_management_key", + "is_provisioning_key", + "label", + "limit", + "limit_remaining", + "limit_reset", + "rate_limit", + "usage", + "usage_daily", + "usage_monthly", + "usage_weekly" ], - "title": "MessagesRequestContextManagementEditsItems" + "description": "Current API key information", + "title": "KeyGetResponsesContentApplicationJsonSchemaData" }, - "MessagesRequestContextManagement": { + "ApiKeys_getCurrentKey_Response_200": { "type": "object", "properties": { - "edits": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems" - } + "data": { + "$ref": "#/components/schemas/KeyGetResponsesContentApplicationJsonSchemaData", + "description": "Current API key information" } }, - "title": "MessagesRequestContextManagement" + "required": [ + "data" + ], + "title": "API Keys_getCurrentKey_Response_200" }, - "AnthropicTextBlockParamCitationsItems": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "char_location" - ], - "description": "Discriminator value: char_location" - }, - "cited_text": { - "type": "string" - }, - "document_index": { - "type": "integer" - }, - "document_title": { - "type": [ - "string", - "null" - ] - }, - "end_char_index": { - "type": "integer" - }, - "start_char_index": { - "type": "integer" - } - }, - "required": [ - "type", - "cited_text", - "document_index", - "document_title", - "end_char_index", - "start_char_index" - ], - "description": "char_location variant" + "KeysGetResponsesContentApplicationJsonSchemaDataItems": { + "type": "object", + "properties": { + "byok_usage": { + "type": "number", + "format": "double", + "description": "Total external BYOK usage (in USD) for the API key" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "content_block_location" - ], - "description": "Discriminator value: content_block_location" - }, - "cited_text": { - "type": "string" - }, - "document_index": { - "type": "integer" - }, - "document_title": { - "type": [ - "string", - "null" - ] - }, - "end_block_index": { - "type": "integer" - }, - "start_block_index": { - "type": "integer" - } - }, - "required": [ - "type", - "cited_text", - "document_index", - "document_title", - "end_block_index", - "start_block_index" - ], - "description": "content_block_location variant" + "byok_usage_daily": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC day" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "page_location" - ], - "description": "Discriminator value: page_location" - }, - "cited_text": { - "type": "string" - }, - "document_index": { - "type": "integer" - }, - "document_title": { - "type": [ - "string", - "null" - ] - }, - "end_page_number": { - "type": "integer" - }, - "start_page_number": { - "type": "integer" - } - }, - "required": [ - "type", - "cited_text", - "document_index", - "document_title", - "end_page_number", - "start_page_number" + "byok_usage_monthly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for current UTC month" + }, + "byok_usage_weekly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the API key was created" + }, + "creator_user_id": { + "type": [ + "string", + "null" ], - "description": "page_location variant" + "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "search_result_location" - ], - "description": "Discriminator value: search_result_location" - }, - "cited_text": { - "type": "string" - }, - "end_block_index": { - "type": "integer" - }, - "search_result_index": { - "type": "integer" - }, - "source": { - "type": "string" - }, - "start_block_index": { - "type": "integer" - }, - "title": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "type", - "cited_text", - "end_block_index", - "search_result_index", - "source", - "start_block_index", - "title" + "disabled": { + "type": "boolean", + "description": "Whether the API key is disabled" + }, + "expires_at": { + "type": [ + "string", + "null" ], - "description": "search_result_location variant" + "format": "date-time", + "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "web_search_result_location" - ], - "description": "Discriminator value: web_search_result_location" - }, - "cited_text": { - "type": "string" - }, - "encrypted_index": { - "type": "string" - }, - "title": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": "string" - } - }, - "required": [ - "type", - "cited_text", - "encrypted_index", - "title", - "url" + "hash": { + "type": "string", + "description": "Unique hash identifier for the API key" + }, + "include_byok_in_limit": { + "type": "boolean", + "description": "Whether to include external BYOK usage in the credit limit" + }, + "label": { + "type": "string", + "description": "Human-readable label for the API key" + }, + "limit": { + "type": [ + "number", + "null" ], - "description": "web_search_result_location variant" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicTextBlockParamCitationsItems" - }, - "AnthropicTextBlockParamType": { - "type": "string", - "enum": [ - "text" - ], - "title": "AnthropicTextBlockParamType" - }, - "AnthropicTextBlockParam": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "format": "double", + "description": "Spending limit for the API key in USD" }, - "citations": { + "limit_remaining": { "type": [ - "array", + "number", "null" ], - "items": { - "$ref": "#/components/schemas/AnthropicTextBlockParamCitationsItems" - } + "format": "double", + "description": "Remaining spending limit in USD" }, - "text": { - "type": "string" + "limit_reset": { + "type": [ + "string", + "null" + ], + "description": "Type of limit reset for the API key" }, - "type": { - "$ref": "#/components/schemas/AnthropicTextBlockParamType" - } - }, - "required": [ - "text", - "type" - ], - "title": "AnthropicTextBlockParam" - }, - "AnthropicImageMimeType": { - "type": "string", - "enum": [ - "image/jpeg", - "image/png", - "image/gif", - "image/webp" - ], - "title": "AnthropicImageMimeType" - }, - "AnthropicUrlImageSourceType": { - "type": "string", - "enum": [ - "url" - ], - "title": "AnthropicUrlImageSourceType" - }, - "AnthropicImageBlockParamSource": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "base64" - ], - "description": "Discriminator value: base64" - }, - "data": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/AnthropicImageMimeType" - } - }, - "required": [ - "type", - "data", - "media_type" - ], - "description": "base64 variant" + "name": { + "type": "string", + "description": "Name of the API key" }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicUrlImageSourceType" - }, - "url": { - "type": "string" - } - }, - "required": [ - "type", - "url" + "updated_at": { + "type": [ + "string", + "null" ], - "description": "url variant" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicImageBlockParamSource" - }, - "AnthropicImageBlockParamType": { - "type": "string", - "enum": [ - "image" - ], - "title": "AnthropicImageBlockParamType" - }, - "AnthropicImageBlockParam": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "description": "ISO 8601 timestamp of when the API key was last updated" }, - "source": { - "$ref": "#/components/schemas/AnthropicImageBlockParamSource" + "usage": { + "type": "number", + "format": "double", + "description": "Total OpenRouter credit usage (in USD) for the API key" }, - "type": { - "$ref": "#/components/schemas/AnthropicImageBlockParamType" + "usage_daily": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC day" + }, + "usage_monthly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC month" + }, + "usage_weekly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ - "source", - "type" - ], - "title": "AnthropicImageBlockParam" - }, - "AnthropicDocumentBlockParamCitations": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - } - }, - "title": "AnthropicDocumentBlockParamCitations" - }, - "AnthropicBase64PdfSourceMediaType": { - "type": "string", - "enum": [ - "application/pdf" - ], - "title": "AnthropicBase64PdfSourceMediaType" - }, - "AnthropicBase64PdfSourceType": { - "type": "string", - "enum": [ - "base64" + "byok_usage", + "byok_usage_daily", + "byok_usage_monthly", + "byok_usage_weekly", + "created_at", + "creator_user_id", + "disabled", + "hash", + "include_byok_in_limit", + "label", + "limit", + "limit_remaining", + "limit_reset", + "name", + "updated_at", + "usage", + "usage_daily", + "usage_monthly", + "usage_weekly", + "workspace_id" ], - "title": "AnthropicBase64PdfSourceType" + "title": "KeysGetResponsesContentApplicationJsonSchemaDataItems" }, - "AnthropicBase64PdfSource": { + "ApiKeys_list_Response_200": { "type": "object", "properties": { "data": { - "type": "string" - }, - "media_type": { - "$ref": "#/components/schemas/AnthropicBase64PdfSourceMediaType" - }, - "type": { - "$ref": "#/components/schemas/AnthropicBase64PdfSourceType" + "type": "array", + "items": { + "$ref": "#/components/schemas/KeysGetResponsesContentApplicationJsonSchemaDataItems" + }, + "description": "List of API keys" } }, "required": [ - "data", - "media_type", - "type" - ], - "title": "AnthropicBase64PdfSource" - }, - "AnthropicPlainTextSourceMediaType": { - "type": "string", - "enum": [ - "text/plain" + "data" ], - "title": "AnthropicPlainTextSourceMediaType" + "title": "API Keys_list_Response_200" }, - "AnthropicPlainTextSourceType": { + "KeysPostRequestBodyContentApplicationJsonSchemaLimitReset": { "type": "string", "enum": [ - "text" + "daily", + "weekly", + "monthly" ], - "title": "AnthropicPlainTextSourceType" + "description": "Type of limit reset for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.", + "title": "KeysPostRequestBodyContentApplicationJsonSchemaLimitReset" }, - "AnthropicPlainTextSource": { + "KeysPostResponsesContentApplicationJsonSchemaData": { "type": "object", "properties": { - "data": { - "type": "string" + "byok_usage": { + "type": "number", + "format": "double", + "description": "Total external BYOK usage (in USD) for the API key" }, - "media_type": { - "$ref": "#/components/schemas/AnthropicPlainTextSourceMediaType" + "byok_usage_daily": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC day" }, - "type": { - "$ref": "#/components/schemas/AnthropicPlainTextSourceType" - } - }, - "required": [ - "data", - "media_type", - "type" - ], - "title": "AnthropicPlainTextSource" - }, - "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicImageBlockParamType" - }, - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "source": { - "$ref": "#/components/schemas/AnthropicImageBlockParamSource" - } - }, - "required": [ - "type", - "source" - ], - "description": "image variant" + "byok_usage_monthly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for current UTC month" }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicTextBlockParamType" - }, - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "citations": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/AnthropicTextBlockParamCitationsItems" - } - }, - "text": { - "type": "string" - } - }, - "required": [ - "type", - "text" + "byok_usage_weekly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the API key was created" + }, + "creator_user_id": { + "type": [ + "string", + "null" ], - "description": "text variant" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items" - }, - "AnthropicDocumentBlockParamSourceOneOf2Content1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items" - }, - "title": "AnthropicDocumentBlockParamSourceOneOf2Content1" - }, - "AnthropicDocumentBlockParamSourceOneOf2Content": { - "oneOf": [ - { - "type": "string" + "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." }, - { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2Content1" - } - ], - "title": "AnthropicDocumentBlockParamSourceOneOf2Content" - }, - "AnthropicDocumentBlockParamSourceOneOf2Type": { - "type": "string", - "enum": [ - "content" - ], - "title": "AnthropicDocumentBlockParamSourceOneOf2Type" - }, - "AnthropicDocumentBlockParamSource2": { - "type": "object", - "properties": { - "content": { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2Content" + "disabled": { + "type": "boolean", + "description": "Whether the API key is disabled" }, - "type": { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2Type" - } - }, - "required": [ - "content", - "type" - ], - "title": "AnthropicDocumentBlockParamSource2" - }, - "AnthropicUrlPdfSourceType": { - "type": "string", - "enum": [ - "url" - ], - "title": "AnthropicUrlPdfSourceType" - }, - "AnthropicUrlPdfSource": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicUrlPdfSourceType" + "expires_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" }, - "url": { - "type": "string" - } - }, - "required": [ - "type", - "url" - ], - "title": "AnthropicUrlPdfSource" - }, - "AnthropicDocumentBlockParamSource": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicBase64PdfSource" + "hash": { + "type": "string", + "description": "Unique hash identifier for the API key" }, - { - "$ref": "#/components/schemas/AnthropicPlainTextSource" + "include_byok_in_limit": { + "type": "boolean", + "description": "Whether to include external BYOK usage in the credit limit" }, - { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamSource2" + "label": { + "type": "string", + "description": "Human-readable label for the API key" }, - { - "$ref": "#/components/schemas/AnthropicUrlPdfSource" - } - ], - "title": "AnthropicDocumentBlockParamSource" - }, - "AnthropicDocumentBlockParamType": { - "type": "string", - "enum": [ - "document" - ], - "title": "AnthropicDocumentBlockParamType" - }, - "AnthropicDocumentBlockParam": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "limit": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Spending limit for the API key in USD" }, - "citations": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamCitations" - }, - { - "type": "null" - } - ] + "limit_remaining": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Remaining spending limit in USD" }, - "context": { + "limit_reset": { "type": [ "string", "null" - ] + ], + "description": "Type of limit reset for the API key" }, - "source": { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamSource" + "name": { + "type": "string", + "description": "Name of the API key" }, - "title": { + "updated_at": { "type": [ "string", "null" - ] + ], + "description": "ISO 8601 timestamp of when the API key was last updated" }, - "type": { - "$ref": "#/components/schemas/AnthropicDocumentBlockParamType" - } - }, - "required": [ - "source", - "type" - ], - "title": "AnthropicDocumentBlockParam" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf3Type": { - "type": "string", - "enum": [ - "tool_use" - ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf3Type" - }, - "MessagesMessageParamContentOneOf1Items3": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "usage": { + "type": "number", + "format": "double", + "description": "Total OpenRouter credit usage (in USD) for the API key" }, - "id": { - "type": "string" + "usage_daily": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC day" }, - "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] + "usage_monthly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC month" }, - "name": { - "type": "string" + "usage_weekly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" }, - "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf3Type" + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ - "id", + "byok_usage", + "byok_usage_daily", + "byok_usage_monthly", + "byok_usage_weekly", + "created_at", + "creator_user_id", + "disabled", + "hash", + "include_byok_in_limit", + "label", + "limit", + "limit_remaining", + "limit_reset", "name", - "type" - ], - "title": "MessagesMessageParamContentOneOf1Items3" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type": { - "type": "string", - "enum": [ - "tool_reference" + "updated_at", + "usage", + "usage_daily", + "usage_monthly", + "usage_weekly", + "workspace_id" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type" + "description": "The created API key information", + "title": "KeysPostResponsesContentApplicationJsonSchemaData" }, - "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2": { + "ApiKeys_createKeys_Response_201": { "type": "object", "properties": { - "tool_name": { - "type": "string" + "data": { + "$ref": "#/components/schemas/KeysPostResponsesContentApplicationJsonSchemaData", + "description": "The created API key information" }, - "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type" + "key": { + "type": "string", + "description": "The actual API key string (only shown once)" } }, "required": [ - "tool_name", - "type" - ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2" - }, - "AnthropicSearchResultBlockParamCitations": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean" - } - }, - "title": "AnthropicSearchResultBlockParamCitations" - }, - "AnthropicSearchResultBlockParamType": { - "type": "string", - "enum": [ - "search_result" + "data", + "key" ], - "title": "AnthropicSearchResultBlockParamType" + "title": "API Keys_createKeys_Response_201" }, - "AnthropicSearchResultBlockParam": { + "KeysHashGetResponsesContentApplicationJsonSchemaData": { "type": "object", "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "byok_usage": { + "type": "number", + "format": "double", + "description": "Total external BYOK usage (in USD) for the API key" }, - "citations": { - "$ref": "#/components/schemas/AnthropicSearchResultBlockParamCitations" + "byok_usage_daily": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC day" }, - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicTextBlockParam" - } + "byok_usage_monthly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for current UTC month" }, - "source": { - "type": "string" + "byok_usage_weekly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" }, - "title": { - "type": "string" + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the API key was created" }, - "type": { - "$ref": "#/components/schemas/AnthropicSearchResultBlockParamType" - } - }, - "required": [ - "content", - "source", - "title", - "type" - ], - "title": "AnthropicSearchResultBlockParam" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicTextBlockParam" + "creator_user_id": { + "type": [ + "string", + "null" + ], + "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." }, - { - "$ref": "#/components/schemas/AnthropicImageBlockParam" + "disabled": { + "type": "boolean", + "description": "Whether the API key is disabled" }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2" + "expires_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" }, - { - "$ref": "#/components/schemas/AnthropicSearchResultBlockParam" + "hash": { + "type": "string", + "description": "Unique hash identifier for the API key" }, - { - "$ref": "#/components/schemas/AnthropicDocumentBlockParam" - } - ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf4Content1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items" - }, - "title": "MessagesMessageParamContentOneOf1ItemsOneOf4Content1" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf4Content": { - "oneOf": [ - { - "type": "string" + "include_byok_in_limit": { + "type": "boolean", + "description": "Whether to include external BYOK usage in the credit limit" }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4Content1" - } - ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf4Content" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf4Type": { - "type": "string", - "enum": [ - "tool_result" - ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf4Type" - }, - "MessagesMessageParamContentOneOf1Items4": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "label": { + "type": "string", + "description": "Human-readable label for the API key" }, - "content": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4Content" + "limit": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Spending limit for the API key in USD" }, - "is_error": { - "type": "boolean" + "limit_remaining": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Remaining spending limit in USD" }, - "tool_use_id": { - "type": "string" + "limit_reset": { + "type": [ + "string", + "null" + ], + "description": "Type of limit reset for the API key" }, - "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4Type" - } - }, - "required": [ - "tool_use_id", - "type" - ], - "title": "MessagesMessageParamContentOneOf1Items4" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf5Type": { - "type": "string", - "enum": [ - "thinking" - ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf5Type" - }, - "MessagesMessageParamContentOneOf1Items5": { - "type": "object", - "properties": { - "signature": { - "type": "string" + "name": { + "type": "string", + "description": "Name of the API key" }, - "thinking": { - "type": "string" + "updated_at": { + "type": [ + "string", + "null" + ], + "description": "ISO 8601 timestamp of when the API key was last updated" }, - "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf5Type" + "usage": { + "type": "number", + "format": "double", + "description": "Total OpenRouter credit usage (in USD) for the API key" + }, + "usage_daily": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC day" + }, + "usage_monthly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC month" + }, + "usage_weekly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ - "signature", - "thinking", - "type" - ], - "title": "MessagesMessageParamContentOneOf1Items5" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf6Type": { - "type": "string", - "enum": [ - "redacted_thinking" + "byok_usage", + "byok_usage_daily", + "byok_usage_monthly", + "byok_usage_weekly", + "created_at", + "creator_user_id", + "disabled", + "hash", + "include_byok_in_limit", + "label", + "limit", + "limit_remaining", + "limit_reset", + "name", + "updated_at", + "usage", + "usage_daily", + "usage_monthly", + "usage_weekly", + "workspace_id" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf6Type" + "description": "The API key information", + "title": "KeysHashGetResponsesContentApplicationJsonSchemaData" }, - "MessagesMessageParamContentOneOf1Items6": { + "ApiKeys_getKey_Response_200": { "type": "object", "properties": { "data": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf6Type" + "$ref": "#/components/schemas/KeysHashGetResponsesContentApplicationJsonSchemaData", + "description": "The API key information" } }, "required": [ - "data", - "type" - ], - "title": "MessagesMessageParamContentOneOf1Items6" - }, - "MessagesMessageParamContentOneOf1ItemsOneOf7Type": { - "type": "string", - "enum": [ - "server_tool_use" + "data" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf7Type" + "title": "API Keys_getKey_Response_200" }, - "MessagesMessageParamContentOneOf1Items7": { + "ApiKeys_deleteKeys_Response_200": { "type": "object", "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "id": { - "type": "string" - }, - "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] - }, - "name": { - "type": "string" - }, - "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf7Type" + "deleted": { + "type": "boolean", + "enum": [ + true + ], + "description": "Confirmation that the API key was deleted" } }, "required": [ - "id", - "name", - "type" + "deleted" ], - "title": "MessagesMessageParamContentOneOf1Items7" + "title": "API Keys_deleteKeys_Response_200" }, - "AnthropicWebSearchResultBlockParamType": { + "KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset": { "type": "string", "enum": [ - "web_search_result" + "daily", + "weekly", + "monthly" ], - "title": "AnthropicWebSearchResultBlockParamType" + "description": "New limit reset type for the API key (daily, weekly, monthly, or null for no reset). Resets happen automatically at midnight UTC, and weeks are Monday through Sunday.", + "title": "KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset" }, - "AnthropicWebSearchResultBlockParam": { + "KeysHashPatchResponsesContentApplicationJsonSchemaData": { "type": "object", "properties": { - "encrypted_content": { - "type": "string" + "byok_usage": { + "type": "number", + "format": "double", + "description": "Total external BYOK usage (in USD) for the API key" }, - "page_age": { + "byok_usage_daily": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC day" + }, + "byok_usage_monthly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for current UTC month" + }, + "byok_usage_weekly": { + "type": "number", + "format": "double", + "description": "External BYOK usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "created_at": { + "type": "string", + "description": "ISO 8601 timestamp of when the API key was created" + }, + "creator_user_id": { "type": [ "string", "null" - ] + ], + "description": "The user ID of the key creator. For organization-owned keys, this is the member who created the key. For individual users, this is the user's own ID." }, - "title": { - "type": "string" + "disabled": { + "type": "boolean", + "description": "Whether the API key is disabled" }, - "type": { - "$ref": "#/components/schemas/AnthropicWebSearchResultBlockParamType" + "expires_at": { + "type": [ + "string", + "null" + ], + "format": "date-time", + "description": "ISO 8601 UTC timestamp when the API key expires, or null if no expiration" }, - "url": { - "type": "string" + "hash": { + "type": "string", + "description": "Unique hash identifier for the API key" + }, + "include_byok_in_limit": { + "type": "boolean", + "description": "Whether to include external BYOK usage in the credit limit" + }, + "label": { + "type": "string", + "description": "Human-readable label for the API key" + }, + "limit": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Spending limit for the API key in USD" + }, + "limit_remaining": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Remaining spending limit in USD" + }, + "limit_reset": { + "type": [ + "string", + "null" + ], + "description": "Type of limit reset for the API key" + }, + "name": { + "type": "string", + "description": "Name of the API key" + }, + "updated_at": { + "type": [ + "string", + "null" + ], + "description": "ISO 8601 timestamp of when the API key was last updated" + }, + "usage": { + "type": "number", + "format": "double", + "description": "Total OpenRouter credit usage (in USD) for the API key" + }, + "usage_daily": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC day" + }, + "usage_monthly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC month" + }, + "usage_weekly": { + "type": "number", + "format": "double", + "description": "OpenRouter credit usage (in USD) for the current UTC week (Monday-Sunday)" + }, + "workspace_id": { + "type": "string", + "description": "The workspace ID this API key belongs to." } }, "required": [ - "encrypted_content", - "title", - "type", - "url" + "byok_usage", + "byok_usage_daily", + "byok_usage_monthly", + "byok_usage_weekly", + "created_at", + "creator_user_id", + "disabled", + "hash", + "include_byok_in_limit", + "label", + "limit", + "limit_remaining", + "limit_reset", + "name", + "updated_at", + "usage", + "usage_daily", + "usage_monthly", + "usage_weekly", + "workspace_id" ], - "title": "AnthropicWebSearchResultBlockParam" + "description": "The updated API key information", + "title": "KeysHashPatchResponsesContentApplicationJsonSchemaData" }, - "MessagesMessageParamContentOneOf1ItemsOneOf8Content0": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicWebSearchResultBlockParam" + "ApiKeys_updateKeys_Response_200": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/KeysHashPatchResponsesContentApplicationJsonSchemaData", + "description": "The updated API key information" + } }, - "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Content0" + "required": [ + "data" + ], + "title": "API Keys_updateKeys_Response_200" }, - "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode": { + "AnthropicInputTokensClearAtLeastType": { "type": "string", "enum": [ - "invalid_tool_input", - "unavailable", - "max_uses_exceeded", - "too_many_requests", - "query_too_long" + "input_tokens" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode" + "title": "AnthropicInputTokensClearAtLeastType" }, - "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type": { + "AnthropicInputTokensClearAtLeast": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicInputTokensClearAtLeastType" + }, + "value": { + "type": "integer" + } + }, + "required": [ + "type", + "value" + ], + "title": "AnthropicInputTokensClearAtLeast" + }, + "MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs": { + "oneOf": [ + { + "type": "boolean" + }, + { + "type": "array", + "items": { + "type": "string" + } + }, + { + "description": "Any type" + } + ], + "title": "MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" + }, + "AnthropicToolUsesKeepType": { "type": "string", "enum": [ - "web_search_tool_result_error" + "tool_uses" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type" + "title": "AnthropicToolUsesKeepType" }, - "MessagesMessageParamContentOneOf1ItemsOneOf8Content1": { + "AnthropicToolUsesKeep": { "type": "object", "properties": { - "error_code": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode" - }, "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type" + "$ref": "#/components/schemas/AnthropicToolUsesKeepType" + }, + "value": { + "type": "integer" } }, "required": [ - "error_code", - "type" + "type", + "value" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Content1" + "title": "AnthropicToolUsesKeep" }, - "MessagesMessageParamContentOneOf1ItemsOneOf8Content": { + "MessagesRequestContextManagementEditsItemsOneOf0Trigger": { "oneOf": [ { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Content0" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "input_tokens" + ], + "description": "Discriminator value: input_tokens" + }, + "value": { + "type": "integer" + } + }, + "required": [ + "type", + "value" + ], + "description": "input_tokens variant" }, { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Content1" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "tool_uses" + ], + "description": "Discriminator value: tool_uses" + }, + "value": { + "type": "integer" + } + }, + "required": [ + "type", + "value" + ], + "description": "tool_uses variant" } ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Content" + "discriminator": { + "propertyName": "type" + }, + "title": "MessagesRequestContextManagementEditsItemsOneOf0Trigger" }, - "MessagesMessageParamContentOneOf1ItemsOneOf8Type": { + "MessagesRequestContextManagementEditsItemsOneOf0Type": { "type": "string", "enum": [ - "web_search_tool_result" + "clear_tool_uses_20250919" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Type" + "title": "MessagesRequestContextManagementEditsItemsOneOf0Type" }, - "MessagesMessageParamContentOneOf1Items8": { + "MessagesRequestContextManagementEditsItems0": { "type": "object", "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" + "clear_at_least": { + "$ref": "#/components/schemas/AnthropicInputTokensClearAtLeast" }, - "content": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Content" + "clear_tool_inputs": { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs" }, - "tool_use_id": { - "type": "string" + "exclude_tools": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "keep": { + "$ref": "#/components/schemas/AnthropicToolUsesKeep" + }, + "trigger": { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0Trigger" }, "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Type" + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf0Type" } }, "required": [ - "content", - "tool_use_id", "type" ], - "title": "MessagesMessageParamContentOneOf1Items8" + "title": "MessagesRequestContextManagementEditsItems0" }, - "MessagesMessageParamContentOneOf1ItemsOneOf10Type": { + "AnthropicThinkingTurnsType": { "type": "string", "enum": [ - "compaction" + "thinking_turns" ], - "title": "MessagesMessageParamContentOneOf1ItemsOneOf10Type" + "title": "AnthropicThinkingTurnsType" }, - "MessagesMessageParamContentOneOf1Items10": { + "AnthropicThinkingTurns": { "type": "object", "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "content": { - "type": [ - "string", - "null" - ] - }, "type": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf10Type" + "$ref": "#/components/schemas/AnthropicThinkingTurnsType" + }, + "value": { + "type": "integer" } }, "required": [ - "content", - "type" + "type", + "value" ], - "title": "MessagesMessageParamContentOneOf1Items10" + "title": "AnthropicThinkingTurns" }, - "MessagesAdvisorToolResultBlockType": { + "MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type": { "type": "string", "enum": [ - "advisor_tool_result" + "all" ], - "title": "MessagesAdvisorToolResultBlockType" + "title": "MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type" }, - "MessagesAdvisorToolResultBlock": { + "MessagesRequestContextManagementEditsItemsOneOf1Keep1": { "type": "object", "properties": { - "content": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } - }, - "tool_use_id": { - "type": "string" - }, "type": { - "$ref": "#/components/schemas/MessagesAdvisorToolResultBlockType" + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type" } }, "required": [ - "content", - "tool_use_id", "type" ], - "description": "Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs.", - "title": "MessagesAdvisorToolResultBlock" + "title": "MessagesRequestContextManagementEditsItemsOneOf1Keep1" }, - "MessagesMessageParamContentOneOf1Items": { + "MessagesRequestContextManagementEditsItemsOneOf1Keep2": { + "type": "string", + "enum": [ + "all" + ], + "title": "MessagesRequestContextManagementEditsItemsOneOf1Keep2" + }, + "MessagesRequestContextManagementEditsItemsOneOf1Keep": { "oneOf": [ { - "$ref": "#/components/schemas/AnthropicTextBlockParam" - }, - { - "$ref": "#/components/schemas/AnthropicImageBlockParam" - }, - { - "$ref": "#/components/schemas/AnthropicDocumentBlockParam" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items3" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items4" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items5" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items6" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items7" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items8" - }, - { - "$ref": "#/components/schemas/AnthropicSearchResultBlockParam" + "$ref": "#/components/schemas/AnthropicThinkingTurns" }, { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items10" + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Keep1" }, { - "$ref": "#/components/schemas/MessagesAdvisorToolResultBlock" + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Keep2" } ], - "title": "MessagesMessageParamContentOneOf1Items" + "title": "MessagesRequestContextManagementEditsItemsOneOf1Keep" }, - "MessagesMessageParamContent1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items" - }, - "title": "MessagesMessageParamContent1" + "MessagesRequestContextManagementEditsItemsOneOf1Type": { + "type": "string", + "enum": [ + "clear_thinking_20251015" + ], + "title": "MessagesRequestContextManagementEditsItemsOneOf1Type" }, - "MessagesMessageParamContent": { - "oneOf": [ - { - "type": "string" - }, - { - "$ref": "#/components/schemas/MessagesMessageParamContent1" - } - ], - "title": "MessagesMessageParamContent" - }, - "MessagesMessageParamRole": { - "type": "string", - "enum": [ - "user", - "assistant" - ], - "title": "MessagesMessageParamRole" - }, - "MessagesMessageParam": { + "MessagesRequestContextManagementEditsItems1": { "type": "object", "properties": { - "content": { - "$ref": "#/components/schemas/MessagesMessageParamContent" + "keep": { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Keep" }, - "role": { - "$ref": "#/components/schemas/MessagesMessageParamRole" + "type": { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf1Type" } }, "required": [ - "content", - "role" - ], - "description": "Anthropic message with OpenRouter extensions", - "title": "MessagesMessageParam" - }, - "MessagesRequestMetadata": { - "type": "object", - "properties": { - "user_id": { - "type": [ - "string", - "null" - ] - } - }, - "title": "MessagesRequestMetadata" - }, - "MessagesOutputConfigEffort": { - "type": "string", - "enum": [ - "low", - "medium", - "high", - "xhigh", - "max" + "type" ], - "description": "How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.", - "title": "MessagesOutputConfigEffort" + "title": "MessagesRequestContextManagementEditsItems1" }, - "MessagesOutputConfigFormatType": { + "MessagesRequestContextManagementEditsItemsOneOf2TriggerType": { "type": "string", "enum": [ - "json_schema" + "input_tokens" ], - "title": "MessagesOutputConfigFormatType" + "title": "MessagesRequestContextManagementEditsItemsOneOf2TriggerType" }, - "MessagesOutputConfigFormat": { + "MessagesRequestContextManagementEditsItemsOneOf2Trigger": { "type": "object", "properties": { - "schema": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } - }, "type": { - "$ref": "#/components/schemas/MessagesOutputConfigFormatType" + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2TriggerType" + }, + "value": { + "type": "integer" } }, "required": [ - "schema", - "type" + "type", + "value" ], - "description": "A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs).", - "title": "MessagesOutputConfigFormat" + "title": "MessagesRequestContextManagementEditsItemsOneOf2Trigger" }, - "MessagesOutputConfigTaskBudgetType": { + "MessagesRequestContextManagementEditsItemsOneOf2Type": { "type": "string", "enum": [ - "tokens" + "compact_20260112" ], - "title": "MessagesOutputConfigTaskBudgetType" + "title": "MessagesRequestContextManagementEditsItemsOneOf2Type" }, - "MessagesOutputConfigTaskBudget": { + "MessagesRequestContextManagementEditsItems2": { "type": "object", "properties": { - "remaining": { + "instructions": { "type": [ - "integer", + "string", "null" ] }, - "total": { - "type": "integer" + "pause_after_compaction": { + "type": "boolean" + }, + "trigger": { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Trigger" }, "type": { - "$ref": "#/components/schemas/MessagesOutputConfigTaskBudgetType" + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItemsOneOf2Type" } }, "required": [ - "total", "type" ], - "description": "Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.", - "title": "MessagesOutputConfigTaskBudget" + "title": "MessagesRequestContextManagementEditsItems2" }, - "MessagesOutputConfig": { - "type": "object", - "properties": { - "effort": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesOutputConfigEffort" - }, - { - "type": "null" - } - ], - "description": "How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`." + "MessagesRequestContextManagementEditsItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems0" }, - "format": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesOutputConfigFormat" - }, - { - "type": "null" - } - ], - "description": "A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)." + { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems1" }, - "task_budget": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesOutputConfigTaskBudget" - }, - { - "type": "null" - } - ], - "description": "Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap." + { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems2" + } + ], + "title": "MessagesRequestContextManagementEditsItems" + }, + "MessagesRequestContextManagement": { + "type": "object", + "properties": { + "edits": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessagesRequestContextManagementEditsItems" + } } }, - "description": "Configuration for controlling output behavior. Supports the effort parameter and structured output format.", - "title": "MessagesOutputConfig" + "title": "MessagesRequestContextManagement" }, - "MessagesRequestPluginsItems": { + "AnthropicTextBlockParamCitationsItems": { "oneOf": [ { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "auto-router" + "char_location" ], - "description": "Discriminator value: auto-router" + "description": "Discriminator value: char_location" }, - "allowed_models": { - "type": "array", - "items": { - "type": "string" - }, - "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." + "cited_text": { + "type": "string" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." + "document_index": { + "type": "integer" + }, + "document_title": { + "type": [ + "string", + "null" + ] + }, + "end_char_index": { + "type": "integer" + }, + "start_char_index": { + "type": "integer" } }, "required": [ - "id" + "type", + "cited_text", + "document_index", + "document_title", + "end_char_index", + "start_char_index" ], - "description": "auto-router variant" + "description": "char_location variant" }, { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "context-compression" + "content_block_location" ], - "description": "Discriminator value: context-compression" + "description": "Discriminator value: content_block_location" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the context-compression plugin for this request. Defaults to true." + "cited_text": { + "type": "string" }, - "engine": { - "$ref": "#/components/schemas/ContextCompressionEngine" + "document_index": { + "type": "integer" + }, + "document_title": { + "type": [ + "string", + "null" + ] + }, + "end_block_index": { + "type": "integer" + }, + "start_block_index": { + "type": "integer" } }, "required": [ - "id" + "type", + "cited_text", + "document_index", + "document_title", + "end_block_index", + "start_block_index" ], - "description": "context-compression variant" + "description": "content_block_location variant" }, { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "file-parser" + "page_location" ], - "description": "Discriminator value: file-parser" + "description": "Discriminator value: page_location" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the file-parser plugin for this request. Defaults to true." + "cited_text": { + "type": "string" }, - "pdf": { - "$ref": "#/components/schemas/PDFParserOptions" - } - }, - "required": [ - "id" - ], - "description": "file-parser variant" - }, - { - "type": "object", - "properties": { - "id": { - "type": "string", - "enum": [ - "fusion" - ], - "description": "Discriminator value: fusion" - }, - "analysis_models": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Slugs of models to run in parallel as the \"expert panel\" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest)." + "document_index": { + "type": "integer" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the fusion plugin for this request. Defaults to true." + "document_title": { + "type": [ + "string", + "null" + ] }, - "max_tool_calls": { - "type": "integer", - "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." + "end_page_number": { + "type": "integer" }, - "model": { - "type": "string", - "description": "Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset." + "start_page_number": { + "type": "integer" } }, "required": [ - "id" + "type", + "cited_text", + "document_index", + "document_title", + "end_page_number", + "start_page_number" ], - "description": "fusion variant" + "description": "page_location variant" }, { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "moderation" + "search_result_location" ], - "description": "Discriminator value: moderation" + "description": "Discriminator value: search_result_location" + }, + "cited_text": { + "type": "string" + }, + "end_block_index": { + "type": "integer" + }, + "search_result_index": { + "type": "integer" + }, + "source": { + "type": "string" + }, + "start_block_index": { + "type": "integer" + }, + "title": { + "type": [ + "string", + "null" + ] } }, "required": [ - "id" + "type", + "cited_text", + "end_block_index", + "search_result_index", + "source", + "start_block_index", + "title" ], - "description": "moderation variant" + "description": "search_result_location variant" }, { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "pareto-router" + "web_search_result_location" ], - "description": "Discriminator value: pareto-router" + "description": "Discriminator value: web_search_result_location" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the pareto-router plugin for this request. Defaults to true." + "cited_text": { + "type": "string" }, - "min_coding_score": { - "type": "number", - "format": "double", - "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." + "encrypted_index": { + "type": "string" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": "string" } }, "required": [ - "id" + "type", + "cited_text", + "encrypted_index", + "title", + "url" ], - "description": "pareto-router variant" + "description": "web_search_result_location variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicTextBlockParamCitationsItems" + }, + "AnthropicTextBlockParamType": { + "type": "string", + "enum": [ + "text" + ], + "title": "AnthropicTextBlockParamType" + }, + "AnthropicTextBlockParam": { + "type": "object", + "properties": { + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "citations": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/AnthropicTextBlockParamCitationsItems" + } + }, + "text": { + "type": "string" }, + "type": { + "$ref": "#/components/schemas/AnthropicTextBlockParamType" + } + }, + "required": [ + "text", + "type" + ], + "title": "AnthropicTextBlockParam" + }, + "AnthropicImageMimeType": { + "type": "string", + "enum": [ + "image/jpeg", + "image/png", + "image/gif", + "image/webp" + ], + "title": "AnthropicImageMimeType" + }, + "AnthropicUrlImageSourceType": { + "type": "string", + "enum": [ + "url" + ], + "title": "AnthropicUrlImageSourceType" + }, + "AnthropicImageBlockParamSource": { + "oneOf": [ { "type": "object", "properties": { - "id": { + "type": { "type": "string", "enum": [ - "response-healing" + "base64" ], - "description": "Discriminator value: response-healing" + "description": "Discriminator value: base64" }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the response-healing plugin for this request. Defaults to true." + "data": { + "type": "string" + }, + "media_type": { + "$ref": "#/components/schemas/AnthropicImageMimeType" } }, "required": [ - "id" + "type", + "data", + "media_type" ], - "description": "response-healing variant" + "description": "base64 variant" }, { "type": "object", "properties": { - "id": { - "$ref": "#/components/schemas/WebSearchPluginId" - }, - "enabled": { - "type": "boolean", - "description": "Set to false to disable the web-search plugin for this request. Defaults to true." - }, - "engine": { - "$ref": "#/components/schemas/WebSearchEngine" - }, - "exclude_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." - }, - "include_domains": { - "type": "array", - "items": { - "type": "string" - }, - "description": "A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." - }, - "max_results": { - "type": "integer" - }, - "max_uses": { - "type": "integer", - "description": "Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)." + "type": { + "$ref": "#/components/schemas/AnthropicUrlImageSourceType" }, - "search_prompt": { + "url": { "type": "string" - }, - "user_location": { - "$ref": "#/components/schemas/WebSearchPluginUserLocation" } }, "required": [ - "id" + "type", + "url" ], - "description": "web variant" + "description": "url variant" } ], "discriminator": { - "propertyName": "id" + "propertyName": "type" }, - "title": "MessagesRequestPluginsItems" + "title": "AnthropicImageBlockParamSource" }, - "AnthropicSpeed": { + "AnthropicImageBlockParamType": { "type": "string", "enum": [ - "fast", - "standard" + "image" ], - "title": "AnthropicSpeed" + "title": "AnthropicImageBlockParamType" }, - "MessagesRequestSystem1": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicTextBlockParam" - }, - "title": "MessagesRequestSystem1" - }, - "MessagesRequestSystem": { - "oneOf": [ - { - "type": "string" + "AnthropicImageBlockParam": { + "type": "object", + "properties": { + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - { - "$ref": "#/components/schemas/MessagesRequestSystem1" + "source": { + "$ref": "#/components/schemas/AnthropicImageBlockParamSource" + }, + "type": { + "$ref": "#/components/schemas/AnthropicImageBlockParamType" } + }, + "required": [ + "source", + "type" ], - "title": "MessagesRequestSystem" + "title": "AnthropicImageBlockParam" }, - "AnthropicThinkingDisplay": { + "AnthropicDocumentBlockParamCitations": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "title": "AnthropicDocumentBlockParamCitations" + }, + "AnthropicBase64PdfSourceMediaType": { "type": "string", "enum": [ - "summarized", - "omitted" + "application/pdf" ], - "title": "AnthropicThinkingDisplay" + "title": "AnthropicBase64PdfSourceMediaType" }, - "MessagesRequestThinkingOneOf0Type": { + "AnthropicBase64PdfSourceType": { "type": "string", "enum": [ - "enabled" + "base64" ], - "title": "MessagesRequestThinkingOneOf0Type" + "title": "AnthropicBase64PdfSourceType" }, - "MessagesRequestThinking0": { + "AnthropicBase64PdfSource": { "type": "object", "properties": { - "budget_tokens": { - "type": "integer" + "data": { + "type": "string" }, - "display": { - "$ref": "#/components/schemas/AnthropicThinkingDisplay" + "media_type": { + "$ref": "#/components/schemas/AnthropicBase64PdfSourceMediaType" }, "type": { - "$ref": "#/components/schemas/MessagesRequestThinkingOneOf0Type" + "$ref": "#/components/schemas/AnthropicBase64PdfSourceType" } }, "required": [ - "budget_tokens", + "data", + "media_type", "type" ], - "title": "MessagesRequestThinking0" + "title": "AnthropicBase64PdfSource" }, - "MessagesRequestThinkingOneOf1Type": { + "AnthropicPlainTextSourceMediaType": { "type": "string", "enum": [ - "disabled" - ], - "title": "MessagesRequestThinkingOneOf1Type" - }, - "MessagesRequestThinking1": { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/MessagesRequestThinkingOneOf1Type" - } - }, - "required": [ - "type" + "text/plain" ], - "title": "MessagesRequestThinking1" + "title": "AnthropicPlainTextSourceMediaType" }, - "MessagesRequestThinkingOneOf2Type": { + "AnthropicPlainTextSourceType": { "type": "string", "enum": [ - "adaptive" + "text" ], - "title": "MessagesRequestThinkingOneOf2Type" + "title": "AnthropicPlainTextSourceType" }, - "MessagesRequestThinking2": { + "AnthropicPlainTextSource": { "type": "object", "properties": { - "display": { - "$ref": "#/components/schemas/AnthropicThinkingDisplay" + "data": { + "type": "string" + }, + "media_type": { + "$ref": "#/components/schemas/AnthropicPlainTextSourceMediaType" }, "type": { - "$ref": "#/components/schemas/MessagesRequestThinkingOneOf2Type" + "$ref": "#/components/schemas/AnthropicPlainTextSourceType" } }, "required": [ + "data", + "media_type", "type" ], - "title": "MessagesRequestThinking2" + "title": "AnthropicPlainTextSource" }, - "MessagesRequestThinking": { + "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items": { "oneOf": [ { - "$ref": "#/components/schemas/MessagesRequestThinking0" - }, - { - "$ref": "#/components/schemas/MessagesRequestThinking1" + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicImageBlockParamType" + }, + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "source": { + "$ref": "#/components/schemas/AnthropicImageBlockParamSource" + } + }, + "required": [ + "type", + "source" + ], + "description": "image variant" }, { - "$ref": "#/components/schemas/MessagesRequestThinking2" + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicTextBlockParamType" + }, + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "citations": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/AnthropicTextBlockParamCitationsItems" + } + }, + "text": { + "type": "string" + } + }, + "required": [ + "type", + "text" + ], + "description": "text variant" } ], - "title": "MessagesRequestThinking" + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items" }, - "MessagesRequestToolChoiceOneOf0Type": { - "type": "string", - "enum": [ - "auto" - ], - "title": "MessagesRequestToolChoiceOneOf0Type" + "AnthropicDocumentBlockParamSourceOneOf2Content1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items" + }, + "title": "AnthropicDocumentBlockParamSourceOneOf2Content1" }, - "MessagesRequestToolChoice0": { - "type": "object", - "properties": { - "disable_parallel_tool_use": { - "type": "boolean" + "AnthropicDocumentBlockParamSourceOneOf2Content": { + "oneOf": [ + { + "type": "string" }, - "type": { - "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf0Type" + { + "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2Content1" } - }, - "required": [ - "type" ], - "title": "MessagesRequestToolChoice0" + "title": "AnthropicDocumentBlockParamSourceOneOf2Content" }, - "MessagesRequestToolChoiceOneOf1Type": { + "AnthropicDocumentBlockParamSourceOneOf2Type": { "type": "string", "enum": [ - "any" + "content" ], - "title": "MessagesRequestToolChoiceOneOf1Type" + "title": "AnthropicDocumentBlockParamSourceOneOf2Type" }, - "MessagesRequestToolChoice1": { + "AnthropicDocumentBlockParamSource2": { "type": "object", "properties": { - "disable_parallel_tool_use": { - "type": "boolean" + "content": { + "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2Content" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf1Type" + "$ref": "#/components/schemas/AnthropicDocumentBlockParamSourceOneOf2Type" } }, "required": [ + "content", "type" ], - "title": "MessagesRequestToolChoice1" + "title": "AnthropicDocumentBlockParamSource2" }, - "MessagesRequestToolChoiceOneOf2Type": { + "AnthropicUrlPdfSourceType": { "type": "string", "enum": [ - "none" + "url" ], - "title": "MessagesRequestToolChoiceOneOf2Type" + "title": "AnthropicUrlPdfSourceType" }, - "MessagesRequestToolChoice2": { + "AnthropicUrlPdfSource": { "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf2Type" - } - }, - "required": [ - "type" - ], - "title": "MessagesRequestToolChoice2" - }, - "MessagesRequestToolChoiceOneOf3Type": { - "type": "string", - "enum": [ - "tool" - ], - "title": "MessagesRequestToolChoiceOneOf3Type" - }, - "MessagesRequestToolChoice3": { - "type": "object", - "properties": { - "disable_parallel_tool_use": { - "type": "boolean" + "$ref": "#/components/schemas/AnthropicUrlPdfSourceType" }, - "name": { + "url": { "type": "string" - }, - "type": { - "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf3Type" } }, "required": [ - "name", - "type" + "type", + "url" ], - "title": "MessagesRequestToolChoice3" + "title": "AnthropicUrlPdfSource" }, - "MessagesRequestToolChoice": { + "AnthropicDocumentBlockParamSource": { "oneOf": [ { - "$ref": "#/components/schemas/MessagesRequestToolChoice0" + "$ref": "#/components/schemas/AnthropicBase64PdfSource" }, { - "$ref": "#/components/schemas/MessagesRequestToolChoice1" + "$ref": "#/components/schemas/AnthropicPlainTextSource" }, { - "$ref": "#/components/schemas/MessagesRequestToolChoice2" + "$ref": "#/components/schemas/AnthropicDocumentBlockParamSource2" }, { - "$ref": "#/components/schemas/MessagesRequestToolChoice3" + "$ref": "#/components/schemas/AnthropicUrlPdfSource" } ], - "title": "MessagesRequestToolChoice" + "title": "AnthropicDocumentBlockParamSource" }, - "MessagesRequestToolsItemsOneOf0InputSchema": { + "AnthropicDocumentBlockParamType": { + "type": "string", + "enum": [ + "document" + ], + "title": "AnthropicDocumentBlockParamType" + }, + "AnthropicDocumentBlockParam": { "type": "object", "properties": { - "properties": { + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "citations": { "oneOf": [ { - "description": "Any type" + "$ref": "#/components/schemas/AnthropicDocumentBlockParamCitations" }, { "type": "null" } ] }, - "required": { + "context": { "type": [ - "array", + "string", "null" - ], - "items": { - "type": "string" - } + ] + }, + "source": { + "$ref": "#/components/schemas/AnthropicDocumentBlockParamSource" + }, + "title": { + "type": [ + "string", + "null" + ] }, "type": { - "type": "string", - "default": "object" + "$ref": "#/components/schemas/AnthropicDocumentBlockParamType" } }, - "title": "MessagesRequestToolsItemsOneOf0InputSchema" + "required": [ + "source", + "type" + ], + "title": "AnthropicDocumentBlockParam" }, - "MessagesRequestToolsItemsOneOf0Type": { + "MessagesMessageParamContentOneOf1ItemsOneOf3Type": { "type": "string", "enum": [ - "custom" + "tool_use" ], - "title": "MessagesRequestToolsItemsOneOf0Type" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf3Type" }, - "MessagesRequestToolsItems0": { + "MessagesMessageParamContentOneOf1Items3": { "type": "object", "properties": { "cache_control": { "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "description": { + "id": { "type": "string" }, - "input_schema": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf0InputSchema" + "input": { + "oneOf": [ + { + "description": "Any type" + }, + { + "type": "null" + } + ] }, "name": { "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf0Type" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf3Type" } }, "required": [ - "input_schema", - "name" - ], - "title": "MessagesRequestToolsItems0" - }, - "MessagesRequestToolsItemsOneOf1Name": { - "type": "string", - "enum": [ - "bash" + "id", + "name", + "type" ], - "title": "MessagesRequestToolsItemsOneOf1Name" + "title": "MessagesMessageParamContentOneOf1Items3" }, - "MessagesRequestToolsItemsOneOf1Type": { + "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type": { "type": "string", "enum": [ - "bash_20250124" + "tool_reference" ], - "title": "MessagesRequestToolsItemsOneOf1Type" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type" }, - "MessagesRequestToolsItems1": { + "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2": { "type": "object", "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "name": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf1Name" + "tool_name": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf1Type" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type" } }, "required": [ - "name", + "tool_name", "type" ], - "title": "MessagesRequestToolsItems1" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2" }, - "MessagesRequestToolsItemsOneOf2Name": { - "type": "string", - "enum": [ - "str_replace_editor" - ], - "title": "MessagesRequestToolsItemsOneOf2Name" + "AnthropicSearchResultBlockParamCitations": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "title": "AnthropicSearchResultBlockParamCitations" }, - "MessagesRequestToolsItemsOneOf2Type": { + "AnthropicSearchResultBlockParamType": { "type": "string", "enum": [ - "text_editor_20250124" + "search_result" ], - "title": "MessagesRequestToolsItemsOneOf2Type" + "title": "AnthropicSearchResultBlockParamType" }, - "MessagesRequestToolsItems2": { + "AnthropicSearchResultBlockParam": { "type": "object", "properties": { "cache_control": { "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "name": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf2Name" + "citations": { + "$ref": "#/components/schemas/AnthropicSearchResultBlockParamCitations" + }, + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicTextBlockParam" + } + }, + "source": { + "type": "string" + }, + "title": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf2Type" + "$ref": "#/components/schemas/AnthropicSearchResultBlockParamType" } }, "required": [ - "name", + "content", + "source", + "title", "type" ], - "title": "MessagesRequestToolsItems2" + "title": "AnthropicSearchResultBlockParam" }, - "MessagesRequestToolsItemsOneOf3Name": { - "type": "string", - "enum": [ - "web_search" + "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicTextBlockParam" + }, + { + "$ref": "#/components/schemas/AnthropicImageBlockParam" + }, + { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2" + }, + { + "$ref": "#/components/schemas/AnthropicSearchResultBlockParam" + }, + { + "$ref": "#/components/schemas/AnthropicDocumentBlockParam" + } ], - "title": "MessagesRequestToolsItemsOneOf3Name" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items" }, - "MessagesRequestToolsItemsOneOf3Type": { - "type": "string", - "enum": [ - "web_search_20250305" + "MessagesMessageParamContentOneOf1ItemsOneOf4Content1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items" + }, + "title": "MessagesMessageParamContentOneOf1ItemsOneOf4Content1" + }, + "MessagesMessageParamContentOneOf1ItemsOneOf4Content": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4Content1" + } ], - "title": "MessagesRequestToolsItemsOneOf3Type" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf4Content" }, - "AnthropicWebSearchToolUserLocationType": { + "MessagesMessageParamContentOneOf1ItemsOneOf4Type": { "type": "string", "enum": [ - "approximate" + "tool_result" ], - "title": "AnthropicWebSearchToolUserLocationType" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf4Type" }, - "AnthropicWebSearchToolUserLocation": { + "MessagesMessageParamContentOneOf1Items4": { "type": "object", "properties": { - "city": { - "type": [ - "string", - "null" - ] + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "country": { - "type": [ - "string", - "null" - ] + "content": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4Content" }, - "region": { - "type": [ - "string", - "null" - ] + "is_error": { + "type": "boolean" }, - "timezone": { - "type": [ - "string", - "null" - ] + "tool_use_id": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/AnthropicWebSearchToolUserLocationType" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf4Type" } }, "required": [ + "tool_use_id", "type" ], - "title": "AnthropicWebSearchToolUserLocation" + "title": "MessagesMessageParamContentOneOf1Items4" }, - "MessagesRequestToolsItems3": { + "MessagesMessageParamContentOneOf1ItemsOneOf5Type": { + "type": "string", + "enum": [ + "thinking" + ], + "title": "MessagesMessageParamContentOneOf1ItemsOneOf5Type" + }, + "MessagesMessageParamContentOneOf1Items5": { "type": "object", "properties": { - "allowed_domains": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } + "signature": { + "type": "string" }, - "blocked_domains": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "max_uses": { - "type": [ - "integer", - "null" - ] - }, - "name": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf3Name" + "thinking": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf3Type" - }, - "user_location": { - "$ref": "#/components/schemas/AnthropicWebSearchToolUserLocation" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf5Type" } }, "required": [ - "name", + "signature", + "thinking", "type" ], - "title": "MessagesRequestToolsItems3" + "title": "MessagesMessageParamContentOneOf1Items5" }, - "AnthropicAllowedCallersItems": { + "MessagesMessageParamContentOneOf1ItemsOneOf6Type": { "type": "string", "enum": [ - "direct", - "code_execution_20250825", - "code_execution_20260120" + "redacted_thinking" ], - "title": "AnthropicAllowedCallersItems" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf6Type" }, - "AnthropicAllowedCallers": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicAllowedCallersItems" + "MessagesMessageParamContentOneOf1Items6": { + "type": "object", + "properties": { + "data": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf6Type" + } }, - "title": "AnthropicAllowedCallers" - }, - "MessagesRequestToolsItemsOneOf4Name": { - "type": "string", - "enum": [ - "web_search" + "required": [ + "data", + "type" ], - "title": "MessagesRequestToolsItemsOneOf4Name" + "title": "MessagesMessageParamContentOneOf1Items6" }, - "MessagesRequestToolsItemsOneOf4Type": { + "MessagesMessageParamContentOneOf1ItemsOneOf7Type": { "type": "string", "enum": [ - "web_search_20260209" + "server_tool_use" ], - "title": "MessagesRequestToolsItemsOneOf4Type" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf7Type" }, - "MessagesRequestToolsItems4": { + "MessagesMessageParamContentOneOf1Items7": { "type": "object", "properties": { - "allowed_callers": { - "$ref": "#/components/schemas/AnthropicAllowedCallers" - }, - "allowed_domains": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "blocked_domains": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, "cache_control": { "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "max_uses": { - "type": [ - "integer", - "null" + "id": { + "type": "string" + }, + "input": { + "oneOf": [ + { + "description": "Any type" + }, + { + "type": "null" + } ] }, "name": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf4Name" + "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf4Type" - }, - "user_location": { - "$ref": "#/components/schemas/AnthropicWebSearchToolUserLocation" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf7Type" } }, "required": [ + "id", "name", "type" ], - "title": "MessagesRequestToolsItems4" + "title": "MessagesMessageParamContentOneOf1Items7" }, - "MessagesRequestToolsItemsOneOf5CachingType": { + "AnthropicWebSearchResultBlockParamType": { "type": "string", "enum": [ - "ephemeral" + "web_search_result" ], - "title": "MessagesRequestToolsItemsOneOf5CachingType" + "title": "AnthropicWebSearchResultBlockParamType" }, - "MessagesRequestToolsItemsOneOf5Caching": { + "AnthropicWebSearchResultBlockParam": { "type": "object", "properties": { - "ttl": { - "$ref": "#/components/schemas/AnthropicCacheControlTtl" + "encrypted_content": { + "type": "string" + }, + "page_age": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5CachingType" + "$ref": "#/components/schemas/AnthropicWebSearchResultBlockParamType" + }, + "url": { + "type": "string" } }, "required": [ - "type" + "encrypted_content", + "title", + "type", + "url" ], - "description": "Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.", - "title": "MessagesRequestToolsItemsOneOf5Caching" + "title": "AnthropicWebSearchResultBlockParam" }, - "MessagesRequestToolsItemsOneOf5Name": { + "MessagesMessageParamContentOneOf1ItemsOneOf8Content0": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicWebSearchResultBlockParam" + }, + "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Content0" + }, + "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode": { "type": "string", "enum": [ - "advisor" + "invalid_tool_input", + "unavailable", + "max_uses_exceeded", + "too_many_requests", + "query_too_long" ], - "title": "MessagesRequestToolsItemsOneOf5Name" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode" }, - "MessagesRequestToolsItemsOneOf5Type": { + "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type": { "type": "string", "enum": [ - "advisor_20260301" + "web_search_tool_result_error" ], - "title": "MessagesRequestToolsItemsOneOf5Type" + "title": "MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type" }, - "MessagesRequestToolsItems5": { + "MessagesMessageParamContentOneOf1ItemsOneOf8Content1": { "type": "object", "properties": { - "allowed_callers": { - "$ref": "#/components/schemas/AnthropicAllowedCallers" + "error_code": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode" + }, + "type": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type" + } + }, + "required": [ + "error_code", + "type" + ], + "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Content1" + }, + "MessagesMessageParamContentOneOf1ItemsOneOf8Content": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Content0" }, + { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Content1" + } + ], + "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Content" + }, + "MessagesMessageParamContentOneOf1ItemsOneOf8Type": { + "type": "string", + "enum": [ + "web_search_tool_result" + ], + "title": "MessagesMessageParamContentOneOf1ItemsOneOf8Type" + }, + "MessagesMessageParamContentOneOf1Items8": { + "type": "object", + "properties": { "cache_control": { "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "caching": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Caching" - }, - "defer_loading": { - "type": "boolean" - }, - "max_uses": { - "type": "integer" + "content": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Content" }, - "model": { + "tool_use_id": { "type": "string" }, - "name": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Name" - }, "type": { - "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Type" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf8Type" } }, "required": [ - "model", - "name", + "content", + "tool_use_id", "type" ], - "title": "MessagesRequestToolsItems5" + "title": "MessagesMessageParamContentOneOf1Items8" }, - "MessagesRequestToolsItems11": { + "MessagesMessageParamContentOneOf1ItemsOneOf10Type": { + "type": "string", + "enum": [ + "compaction" + ], + "title": "MessagesMessageParamContentOneOf1ItemsOneOf10Type" + }, + "MessagesMessageParamContentOneOf1Items10": { "type": "object", "properties": { + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "content": { + "type": [ + "string", + "null" + ] + }, "type": { - "type": "string" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1ItemsOneOf10Type" } }, "required": [ + "content", "type" ], - "title": "MessagesRequestToolsItems11" + "title": "MessagesMessageParamContentOneOf1Items10" }, - "MessagesRequestToolsItems": { - "oneOf": [ + "MessagesAdvisorToolResultBlockType": { + "type": "string", + "enum": [ + "advisor_tool_result" + ], + "title": "MessagesAdvisorToolResultBlockType" + }, + "MessagesAdvisorToolResultBlock": { + "type": "object", + "properties": { + "content": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "tool_use_id": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/MessagesAdvisorToolResultBlockType" + } + }, + "required": [ + "content", + "tool_use_id", + "type" + ], + "description": "Advisor tool result from a prior assistant turn, replayed back to the model on the next turn. Mirrors the block Anthropic returns in assistant content when the `advisor_20260301` tool runs.", + "title": "MessagesAdvisorToolResultBlock" + }, + "MessagesMessageParamContentOneOf1Items": { + "oneOf": [ { - "$ref": "#/components/schemas/MessagesRequestToolsItems0" + "$ref": "#/components/schemas/AnthropicTextBlockParam" }, { - "$ref": "#/components/schemas/MessagesRequestToolsItems1" + "$ref": "#/components/schemas/AnthropicImageBlockParam" }, { - "$ref": "#/components/schemas/MessagesRequestToolsItems2" + "$ref": "#/components/schemas/AnthropicDocumentBlockParam" }, { - "$ref": "#/components/schemas/MessagesRequestToolsItems3" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items3" }, { - "$ref": "#/components/schemas/MessagesRequestToolsItems4" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items4" }, { - "$ref": "#/components/schemas/MessagesRequestToolsItems5" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items5" }, { - "$ref": "#/components/schemas/DatetimeServerTool" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items6" }, { - "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items7" }, { - "$ref": "#/components/schemas/ChatSearchModelsServerTool" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items8" }, { - "$ref": "#/components/schemas/WebFetchServerTool" + "$ref": "#/components/schemas/AnthropicSearchResultBlockParam" }, { - "$ref": "#/components/schemas/OpenRouterWebSearchServerTool" + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items10" }, { - "$ref": "#/components/schemas/MessagesRequestToolsItems11" + "$ref": "#/components/schemas/MessagesAdvisorToolResultBlock" } ], - "title": "MessagesRequestToolsItems" + "title": "MessagesMessageParamContentOneOf1Items" }, - "MessagesRequest": { - "type": "object", - "properties": { - "cache_control": { - "$ref": "#/components/schemas/AnthropicCacheControlDirective" - }, - "context_management": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesRequestContextManagement" - }, - { - "type": "null" - } - ] - }, - "max_tokens": { - "type": "integer" - }, - "messages": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/MessagesMessageParam" - } - }, - "metadata": { - "$ref": "#/components/schemas/MessagesRequestMetadata" - }, - "model": { - "type": "string" - }, - "models": { - "type": "array", - "items": { - "type": "string" - } - }, - "output_config": { - "$ref": "#/components/schemas/MessagesOutputConfig" - }, - "plugins": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessagesRequestPluginsItems" - }, - "description": "Plugins you want to enable for this request, including their settings." - }, - "provider": { - "$ref": "#/components/schemas/ProviderPreferences" - }, - "route": { - "description": "Any type" - }, - "service_tier": { + "MessagesMessageParamContent1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessagesMessageParamContentOneOf1Items" + }, + "title": "MessagesMessageParamContent1" + }, + "MessagesMessageParamContent": { + "oneOf": [ + { "type": "string" }, - "session_id": { - "type": "string", - "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters." - }, - "speed": { - "$ref": "#/components/schemas/AnthropicSpeed" - }, - "stop_sequences": { - "type": "array", - "items": { - "type": "string" - } - }, - "stream": { - "type": "boolean" - }, - "system": { - "$ref": "#/components/schemas/MessagesRequestSystem" - }, - "temperature": { - "type": "number", - "format": "double" - }, - "thinking": { - "$ref": "#/components/schemas/MessagesRequestThinking" - }, - "tool_choice": { - "$ref": "#/components/schemas/MessagesRequestToolChoice" - }, - "tools": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessagesRequestToolsItems" - } - }, - "top_k": { - "type": "integer" - }, - "top_p": { - "type": "number", - "format": "double" - }, - "trace": { - "$ref": "#/components/schemas/TraceConfig" + { + "$ref": "#/components/schemas/MessagesMessageParamContent1" + } + ], + "title": "MessagesMessageParamContent" + }, + "MessagesMessageParamRole": { + "type": "string", + "enum": [ + "user", + "assistant" + ], + "title": "MessagesMessageParamRole" + }, + "MessagesMessageParam": { + "type": "object", + "properties": { + "content": { + "$ref": "#/components/schemas/MessagesMessageParamContent" }, - "user": { - "type": "string", - "description": "A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters." + "role": { + "$ref": "#/components/schemas/MessagesMessageParamRole" } }, "required": [ - "messages", - "model" + "content", + "role" ], - "description": "Request schema for Anthropic Messages API endpoint", - "title": "MessagesRequest" + "description": "Anthropic message with OpenRouter extensions", + "title": "MessagesMessageParam" }, - "AnthropicContainer": { + "MessagesRequestMetadata": { "type": "object", "properties": { - "expires_at": { - "type": "string" - }, - "id": { - "type": "string" + "user_id": { + "type": [ + "string", + "null" + ] } }, - "required": [ - "expires_at", - "id" + "title": "MessagesRequestMetadata" + }, + "MessagesOutputConfigEffort": { + "type": "string", + "enum": [ + "low", + "medium", + "high", + "xhigh", + "max" ], - "title": "AnthropicContainer" + "description": "How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`.", + "title": "MessagesOutputConfigEffort" }, - "AnthropicBashCodeExecutionOutputType": { + "MessagesOutputConfigFormatType": { "type": "string", "enum": [ - "bash_code_execution_output" + "json_schema" ], - "title": "AnthropicBashCodeExecutionOutputType" + "title": "MessagesOutputConfigFormatType" }, - "AnthropicBashCodeExecutionOutput": { + "MessagesOutputConfigFormat": { "type": "object", "properties": { - "file_id": { - "type": "string" + "schema": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } }, "type": { - "$ref": "#/components/schemas/AnthropicBashCodeExecutionOutputType" + "$ref": "#/components/schemas/MessagesOutputConfigFormatType" } }, "required": [ - "file_id", + "schema", "type" ], - "title": "AnthropicBashCodeExecutionOutput" + "description": "A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs).", + "title": "MessagesOutputConfigFormat" }, - "AnthropicBashCodeExecutionResultType": { + "MessagesOutputConfigTaskBudgetType": { "type": "string", "enum": [ - "bash_code_execution_result" + "tokens" ], - "title": "AnthropicBashCodeExecutionResultType" - }, - "AnthropicBashCodeExecutionToolResultErrorErrorCode": { - "type": "string", - "enum": [ - "invalid_tool_input", - "unavailable", - "too_many_requests", - "execution_time_exceeded", - "output_file_too_large" - ], - "title": "AnthropicBashCodeExecutionToolResultErrorErrorCode" + "title": "MessagesOutputConfigTaskBudgetType" }, - "AnthropicBashCodeExecutionToolResultErrorType": { - "type": "string", - "enum": [ - "bash_code_execution_tool_result_error" + "MessagesOutputConfigTaskBudget": { + "type": "object", + "properties": { + "remaining": { + "type": [ + "integer", + "null" + ] + }, + "total": { + "type": "integer" + }, + "type": { + "$ref": "#/components/schemas/MessagesOutputConfigTaskBudgetType" + } + }, + "required": [ + "total", + "type" ], - "title": "AnthropicBashCodeExecutionToolResultErrorType" + "description": "Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap.", + "title": "MessagesOutputConfigTaskBudget" }, - "AnthropicBashCodeExecutionContent": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicBashCodeExecutionResultType" - }, - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicBashCodeExecutionOutput" - } - }, - "return_code": { - "type": "integer" - }, - "stderr": { - "type": "string" + "MessagesOutputConfig": { + "type": "object", + "properties": { + "effort": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesOutputConfigEffort" }, - "stdout": { - "type": "string" + { + "type": "null" } - }, - "required": [ - "type", - "content", - "return_code", - "stderr", - "stdout" ], - "description": "bash_code_execution_result variant" + "description": "How much effort the model should put into its response. Higher effort levels may result in more thorough analysis but take longer. Valid values are `low`, `medium`, `high`, `xhigh`, or `max`." }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicBashCodeExecutionToolResultErrorType" + "format": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesOutputConfigFormat" }, - "error_code": { - "$ref": "#/components/schemas/AnthropicBashCodeExecutionToolResultErrorErrorCode" + { + "type": "null" } - }, - "required": [ - "type", - "error_code" ], - "description": "bash_code_execution_tool_result_error variant" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicBashCodeExecutionContent" - }, - "AnthropicCodeExecutionOutputType": { - "type": "string", - "enum": [ - "code_execution_output" - ], - "title": "AnthropicCodeExecutionOutputType" - }, - "AnthropicCodeExecutionOutput": { - "type": "object", - "properties": { - "file_id": { - "type": "string" + "description": "A schema to specify Claude's output format in responses. See [structured outputs](https://platform.claude.com/docs/en/build-with-claude/structured-outputs)." }, - "type": { - "$ref": "#/components/schemas/AnthropicCodeExecutionOutputType" + "task_budget": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesOutputConfigTaskBudget" + }, + { + "type": "null" + } + ], + "description": "Task budget for an agentic turn. The model sees a countdown of remaining tokens and uses it to prioritize work and wind down gracefully. Advisory — does not enforce a hard cap." } }, - "required": [ - "file_id", - "type" - ], - "title": "AnthropicCodeExecutionOutput" - }, - "AnthropicCodeExecutionResultType": { - "type": "string", - "enum": [ - "code_execution_result" - ], - "title": "AnthropicCodeExecutionResultType" - }, - "AnthropicServerToolErrorCode": { - "type": "string", - "enum": [ - "invalid_tool_input", - "unavailable", - "too_many_requests", - "execution_time_exceeded" - ], - "title": "AnthropicServerToolErrorCode" - }, - "AnthropicCodeExecutionToolResultErrorType": { - "type": "string", - "enum": [ - "code_execution_tool_result_error" - ], - "title": "AnthropicCodeExecutionToolResultErrorType" - }, - "AnthropicEncryptedCodeExecutionResultType": { - "type": "string", - "enum": [ - "encrypted_code_execution_result" - ], - "title": "AnthropicEncryptedCodeExecutionResultType" + "description": "Configuration for controlling output behavior. Supports the effort parameter and structured output format.", + "title": "MessagesOutputConfig" }, - "AnthropicCodeExecutionContent": { + "MessagesRequestPluginsItems": { "oneOf": [ { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicCodeExecutionResultType" + "id": { + "type": "string", + "enum": [ + "auto-router" + ], + "description": "Discriminator value: auto-router" }, - "content": { + "allowed_models": { "type": "array", "items": { - "$ref": "#/components/schemas/AnthropicCodeExecutionOutput" - } - }, - "return_code": { - "type": "integer" - }, - "stderr": { - "type": "string" + "type": "string" + }, + "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." }, - "stdout": { - "type": "string" + "enabled": { + "type": "boolean", + "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." } }, "required": [ - "type", - "content", - "return_code", - "stderr", - "stdout" + "id" ], - "description": "code_execution_result variant" + "description": "auto-router variant" }, { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicCodeExecutionToolResultErrorType" + "id": { + "type": "string", + "enum": [ + "context-compression" + ], + "description": "Discriminator value: context-compression" }, - "error_code": { - "$ref": "#/components/schemas/AnthropicServerToolErrorCode" + "enabled": { + "type": "boolean", + "description": "Set to false to disable the context-compression plugin for this request. Defaults to true." + }, + "engine": { + "$ref": "#/components/schemas/ContextCompressionEngine" } }, "required": [ - "type", - "error_code" + "id" ], - "description": "code_execution_tool_result_error variant" + "description": "context-compression variant" }, { "type": "object", "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicEncryptedCodeExecutionResultType" - }, - "content": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicCodeExecutionOutput" - } - }, - "encrypted_stdout": { - "type": "string" + "id": { + "type": "string", + "enum": [ + "file-parser" + ], + "description": "Discriminator value: file-parser" }, - "return_code": { - "type": "integer" + "enabled": { + "type": "boolean", + "description": "Set to false to disable the file-parser plugin for this request. Defaults to true." }, - "stderr": { - "type": "string" + "pdf": { + "$ref": "#/components/schemas/PDFParserOptions" } }, "required": [ - "type", - "content", - "encrypted_stdout", - "return_code", - "stderr" + "id" ], - "description": "encrypted_code_execution_result variant" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicCodeExecutionContent" - }, - "ORAnthropicNullableCaller": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "code_execution_20250825" - ], - "description": "Discriminator value: code_execution_20250825" - }, - "tool_id": { - "type": "string" - } - }, - "required": [ - "type", - "tool_id" - ], - "description": "code_execution_20250825 variant" + "description": "file-parser variant" }, { "type": "object", "properties": { - "type": { + "id": { "type": "string", "enum": [ - "code_execution_20260120" + "fusion" ], - "description": "Discriminator value: code_execution_20260120" + "description": "Discriminator value: fusion" }, - "tool_id": { - "type": "string" + "analysis_models": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Slugs of models to run in parallel as the \"expert panel\" the judge analyzes. Each model receives the same user prompt with web_search + web_fetch enabled. Capped at 8 models to bound cost amplification. When omitted, defaults to the Quality preset from the /labs/fusion UI (~anthropic/claude-opus-latest, ~openai/gpt-latest, ~google/gemini-pro-latest)." + }, + "enabled": { + "type": "boolean", + "description": "Set to false to disable the fusion plugin for this request. Defaults to true." + }, + "max_tool_calls": { + "type": "integer", + "description": "Maximum number of tool-calling steps each panelist (analysis model) and the judge model may take during their agentic web-research loop. Models with web_search/web_fetch enabled iterate until they produce a text response or hit this ceiling. Defaults to 8. Capped at 16." + }, + "model": { + "type": "string", + "description": "Slug of the model that performs both the judge step (with web_search + web_fetch) and the final synthesis. When omitted, defaults to the first model in the Quality preset." } }, "required": [ - "type", - "tool_id" + "id" ], - "description": "code_execution_20260120 variant" + "description": "fusion variant" }, { "type": "object", "properties": { - "type": { + "id": { "type": "string", "enum": [ - "direct" + "moderation" ], - "description": "Discriminator value: direct" + "description": "Discriminator value: moderation" } }, "required": [ - "type" + "id" ], - "description": "direct variant" - } - ], - "discriminator": { - "propertyName": "type" - }, - "title": "ORAnthropicNullableCaller" - }, - "OrAnthropicServerToolUseBlockType": { - "type": "string", - "enum": [ - "server_tool_use" - ], - "title": "OrAnthropicServerToolUseBlockType" - }, - "AnthropicTextCitation": { - "oneOf": [ + "description": "moderation variant" + }, { "type": "object", "properties": { - "type": { + "id": { "type": "string", "enum": [ - "char_location" + "pareto-router" ], - "description": "Discriminator value: char_location" - }, - "cited_text": { - "type": "string" - }, - "document_index": { - "type": "integer" - }, - "document_title": { - "type": [ - "string", - "null" - ] - }, - "end_char_index": { - "type": "integer" + "description": "Discriminator value: pareto-router" }, - "file_id": { - "type": [ - "string", - "null" - ] + "enabled": { + "type": "boolean", + "description": "Set to false to disable the pareto-router plugin for this request. Defaults to true." }, - "start_char_index": { - "type": "integer" + "min_coding_score": { + "type": "number", + "format": "double", + "description": "Minimum desired coding score between 0 and 1, where 1 is best. Higher values select from stronger coding models (sourced from Artificial Analysis coding percentiles). Maps internally to one of three tiers (low, medium, high). Omit to use the router default tier." } }, "required": [ - "type", - "cited_text", - "document_index", - "document_title", - "end_char_index", - "file_id", - "start_char_index" + "id" ], - "description": "char_location variant" + "description": "pareto-router variant" }, { "type": "object", "properties": { - "type": { + "id": { "type": "string", "enum": [ - "content_block_location" + "response-healing" ], - "description": "Discriminator value: content_block_location" - }, - "cited_text": { - "type": "string" - }, - "document_index": { - "type": "integer" - }, - "document_title": { - "type": [ - "string", - "null" - ] - }, - "end_block_index": { - "type": "integer" - }, - "file_id": { - "type": [ - "string", - "null" - ] + "description": "Discriminator value: response-healing" }, - "start_block_index": { - "type": "integer" + "enabled": { + "type": "boolean", + "description": "Set to false to disable the response-healing plugin for this request. Defaults to true." } }, "required": [ - "type", - "cited_text", - "document_index", - "document_title", - "end_block_index", - "file_id", - "start_block_index" + "id" ], - "description": "content_block_location variant" + "description": "response-healing variant" }, { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "page_location" - ], - "description": "Discriminator value: page_location" + "id": { + "$ref": "#/components/schemas/WebSearchPluginId" }, - "cited_text": { - "type": "string" + "enabled": { + "type": "boolean", + "description": "Set to false to disable the web-search plugin for this request. Defaults to true." }, - "document_index": { - "type": "integer" + "engine": { + "$ref": "#/components/schemas/WebSearchEngine" }, - "document_title": { - "type": [ - "string", - "null" - ] + "exclude_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of domains to exclude from web search results. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." }, - "end_page_number": { + "include_domains": { + "type": "array", + "items": { + "type": "string" + }, + "description": "A list of domains to restrict web search results to. Supports wildcards (e.g. \"*.substack.com\") and path filtering (e.g. \"openai.com/blog\")." + }, + "max_results": { "type": "integer" }, - "file_id": { - "type": [ - "string", - "null" - ] + "max_uses": { + "type": "integer", + "description": "Maximum number of times the model can invoke web search in a single turn. Passed through to native providers that support it (e.g. Anthropic)." }, - "start_page_number": { - "type": "integer" + "search_prompt": { + "type": "string" + }, + "user_location": { + "$ref": "#/components/schemas/WebSearchPluginUserLocation" } }, "required": [ - "type", - "cited_text", - "document_index", - "document_title", - "end_page_number", - "file_id", - "start_page_number" + "id" ], - "description": "page_location variant" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "search_result_location" - ], - "description": "Discriminator value: search_result_location" - }, - "cited_text": { - "type": "string" - }, - "end_block_index": { - "type": "integer" - }, - "search_result_index": { - "type": "integer" - }, - "source": { - "type": "string" - }, - "start_block_index": { - "type": "integer" - }, - "title": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "type", - "cited_text", - "end_block_index", - "search_result_index", - "source", - "start_block_index", - "title" - ], - "description": "search_result_location variant" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "web_search_result_location" - ], - "description": "Discriminator value: web_search_result_location" - }, - "cited_text": { - "type": "string" - }, - "encrypted_index": { - "type": "string" - }, - "title": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": "string" - } - }, - "required": [ - "type", - "cited_text", - "encrypted_index", - "title", - "url" - ], - "description": "web_search_result_location variant" + "description": "web variant" } ], "discriminator": { - "propertyName": "type" + "propertyName": "id" }, - "title": "AnthropicTextCitation" + "title": "MessagesRequestPluginsItems" }, - "AnthropicTextEditorCodeExecutionCreateResultType": { + "AnthropicSpeed": { "type": "string", "enum": [ - "text_editor_code_execution_create_result" + "fast", + "standard" ], - "title": "AnthropicTextEditorCodeExecutionCreateResultType" + "title": "AnthropicSpeed" }, - "AnthropicTextEditorCodeExecutionStrReplaceResultType": { - "type": "string", - "enum": [ - "text_editor_code_execution_str_replace_result" + "MessagesRequestSystem1": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicTextBlockParam" + }, + "title": "MessagesRequestSystem1" + }, + "MessagesRequestSystem": { + "oneOf": [ + { + "type": "string" + }, + { + "$ref": "#/components/schemas/MessagesRequestSystem1" + } ], - "title": "AnthropicTextEditorCodeExecutionStrReplaceResultType" + "title": "MessagesRequestSystem" }, - "AnthropicTextEditorCodeExecutionToolResultErrorErrorCode": { + "AnthropicThinkingDisplay": { "type": "string", "enum": [ - "invalid_tool_input", - "unavailable", - "too_many_requests", - "execution_time_exceeded", - "file_not_found" + "summarized", + "omitted" ], - "title": "AnthropicTextEditorCodeExecutionToolResultErrorErrorCode" + "title": "AnthropicThinkingDisplay" }, - "AnthropicTextEditorCodeExecutionToolResultErrorType": { + "MessagesRequestThinkingOneOf0Type": { "type": "string", "enum": [ - "text_editor_code_execution_tool_result_error" + "enabled" ], - "title": "AnthropicTextEditorCodeExecutionToolResultErrorType" + "title": "MessagesRequestThinkingOneOf0Type" }, - "AnthropicTextEditorCodeExecutionViewResultFileType": { + "MessagesRequestThinking0": { + "type": "object", + "properties": { + "budget_tokens": { + "type": "integer" + }, + "display": { + "$ref": "#/components/schemas/AnthropicThinkingDisplay" + }, + "type": { + "$ref": "#/components/schemas/MessagesRequestThinkingOneOf0Type" + } + }, + "required": [ + "budget_tokens", + "type" + ], + "title": "MessagesRequestThinking0" + }, + "MessagesRequestThinkingOneOf1Type": { "type": "string", "enum": [ - "text", - "image", - "pdf" + "disabled" ], - "title": "AnthropicTextEditorCodeExecutionViewResultFileType" + "title": "MessagesRequestThinkingOneOf1Type" }, - "AnthropicTextEditorCodeExecutionViewResultType": { + "MessagesRequestThinking1": { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/MessagesRequestThinkingOneOf1Type" + } + }, + "required": [ + "type" + ], + "title": "MessagesRequestThinking1" + }, + "MessagesRequestThinkingOneOf2Type": { "type": "string", "enum": [ - "text_editor_code_execution_view_result" + "adaptive" ], - "title": "AnthropicTextEditorCodeExecutionViewResultType" + "title": "MessagesRequestThinkingOneOf2Type" }, - "AnthropicTextEditorCodeExecutionContent": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionCreateResultType" - }, - "is_file_update": { - "type": "boolean" - } - }, - "required": [ - "type", - "is_file_update" - ], - "description": "text_editor_code_execution_create_result variant" + "MessagesRequestThinking2": { + "type": "object", + "properties": { + "display": { + "$ref": "#/components/schemas/AnthropicThinkingDisplay" }, + "type": { + "$ref": "#/components/schemas/MessagesRequestThinkingOneOf2Type" + } + }, + "required": [ + "type" + ], + "title": "MessagesRequestThinking2" + }, + "MessagesRequestThinking": { + "oneOf": [ { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionStrReplaceResultType" - }, - "lines": { - "type": [ - "array", - "null" - ], - "items": { - "type": "string" - } - }, - "new_lines": { - "type": [ - "integer", - "null" - ] - }, - "new_start": { - "type": [ - "integer", - "null" - ] - }, - "old_lines": { - "type": [ - "integer", - "null" - ] - }, - "old_start": { - "type": [ - "integer", - "null" - ] - } - }, - "required": [ - "type", - "lines", - "new_lines", - "new_start", - "old_lines", - "old_start" - ], - "description": "text_editor_code_execution_str_replace_result variant" + "$ref": "#/components/schemas/MessagesRequestThinking0" }, { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionToolResultErrorType" - }, - "error_code": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionToolResultErrorErrorCode" - }, - "error_message": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "type", - "error_code", - "error_message" - ], - "description": "text_editor_code_execution_tool_result_error variant" + "$ref": "#/components/schemas/MessagesRequestThinking1" }, { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionViewResultType" - }, - "content": { - "type": "string" - }, - "file_type": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionViewResultFileType" - }, - "num_lines": { - "type": [ - "integer", - "null" - ] - }, - "start_line": { - "type": [ - "integer", - "null" - ] - }, - "total_lines": { - "type": [ - "integer", - "null" - ] - } - }, - "required": [ - "type", - "content", - "file_type", - "num_lines", - "start_line", - "total_lines" - ], - "description": "text_editor_code_execution_view_result variant" + "$ref": "#/components/schemas/MessagesRequestThinking2" } ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicTextEditorCodeExecutionContent" - }, - "AnthropicToolSearchResultErrorType": { - "type": "string", - "enum": [ - "tool_search_tool_result_error" - ], - "title": "AnthropicToolSearchResultErrorType" + "title": "MessagesRequestThinking" }, - "AnthropicToolReferenceType": { + "MessagesRequestToolChoiceOneOf0Type": { "type": "string", "enum": [ - "tool_reference" + "auto" ], - "title": "AnthropicToolReferenceType" + "title": "MessagesRequestToolChoiceOneOf0Type" }, - "AnthropicToolReference": { + "MessagesRequestToolChoice0": { "type": "object", "properties": { - "tool_name": { - "type": "string" + "disable_parallel_tool_use": { + "type": "boolean" }, "type": { - "$ref": "#/components/schemas/AnthropicToolReferenceType" + "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf0Type" } }, "required": [ - "tool_name", "type" ], - "title": "AnthropicToolReference" + "title": "MessagesRequestToolChoice0" }, - "AnthropicToolSearchResultType": { + "MessagesRequestToolChoiceOneOf1Type": { "type": "string", "enum": [ - "tool_search_tool_search_result" + "any" ], - "title": "AnthropicToolSearchResultType" + "title": "MessagesRequestToolChoiceOneOf1Type" }, - "AnthropicToolSearchContent": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicToolSearchResultErrorType" - }, - "error_code": { - "$ref": "#/components/schemas/AnthropicServerToolErrorCode" - }, - "error_message": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "type", - "error_code", - "error_message" - ], - "description": "tool_search_tool_result_error variant" + "MessagesRequestToolChoice1": { + "type": "object", + "properties": { + "disable_parallel_tool_use": { + "type": "boolean" }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicToolSearchResultType" - }, - "tool_references": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicToolReference" - } - } - }, - "required": [ - "type", - "tool_references" - ], - "description": "tool_search_tool_search_result variant" + "type": { + "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf1Type" } - ], - "discriminator": { - "propertyName": "type" }, - "title": "AnthropicToolSearchContent" + "required": [ + "type" + ], + "title": "MessagesRequestToolChoice1" }, - "AnthropicCaller": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "code_execution_20250825" - ], - "description": "Discriminator value: code_execution_20250825" - }, - "tool_id": { - "type": "string" - } - }, - "required": [ - "type", - "tool_id" - ], - "description": "code_execution_20250825 variant" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "code_execution_20260120" - ], - "description": "Discriminator value: code_execution_20260120" - }, - "tool_id": { - "type": "string" - } - }, - "required": [ - "type", - "tool_id" - ], - "description": "code_execution_20260120 variant" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "direct" - ], - "description": "Discriminator value: direct" - } - }, - "required": [ - "type" - ], - "description": "direct variant" - } + "MessagesRequestToolChoiceOneOf2Type": { + "type": "string", + "enum": [ + "none" ], - "discriminator": { - "propertyName": "type" - }, - "title": "AnthropicCaller" + "title": "MessagesRequestToolChoiceOneOf2Type" }, - "AnthropicCitationsConfig": { + "MessagesRequestToolChoice2": { "type": "object", "properties": { - "enabled": { - "type": "boolean" + "type": { + "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf2Type" } }, "required": [ - "enabled" - ], - "title": "AnthropicCitationsConfig" - }, - "AnthropicDocumentBlockSource": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicBase64PdfSource" - }, - { - "$ref": "#/components/schemas/AnthropicPlainTextSource" - } + "type" ], - "title": "AnthropicDocumentBlockSource" + "title": "MessagesRequestToolChoice2" }, - "AnthropicDocumentBlockType": { + "MessagesRequestToolChoiceOneOf3Type": { "type": "string", "enum": [ - "document" + "tool" ], - "title": "AnthropicDocumentBlockType" + "title": "MessagesRequestToolChoiceOneOf3Type" }, - "AnthropicDocumentBlock": { + "MessagesRequestToolChoice3": { "type": "object", "properties": { - "citations": { - "$ref": "#/components/schemas/AnthropicCitationsConfig" - }, - "source": { - "$ref": "#/components/schemas/AnthropicDocumentBlockSource" + "disable_parallel_tool_use": { + "type": "boolean" }, - "title": { - "type": [ - "string", - "null" - ] + "name": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/AnthropicDocumentBlockType" + "$ref": "#/components/schemas/MessagesRequestToolChoiceOneOf3Type" } }, "required": [ - "citations", - "source", - "title", + "name", "type" ], - "title": "AnthropicDocumentBlock" + "title": "MessagesRequestToolChoice3" }, - "AnthropicWebFetchToolResultErrorErrorCode": { - "type": "string", - "enum": [ - "invalid_tool_input", - "url_too_long", - "url_not_allowed", - "url_not_accessible", - "unsupported_content_type", - "too_many_requests", - "max_uses_exceeded", - "unavailable" - ], - "title": "AnthropicWebFetchToolResultErrorErrorCode" - }, - "AnthropicWebFetchToolResultErrorType": { - "type": "string", - "enum": [ - "web_fetch_tool_result_error" - ], - "title": "AnthropicWebFetchToolResultErrorType" - }, - "AnthropicWebFetchContent": { + "MessagesRequestToolChoice": { "oneOf": [ { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "web_fetch_result" - ], - "description": "Discriminator value: web_fetch_result" - }, - "content": { - "$ref": "#/components/schemas/AnthropicDocumentBlock" - }, - "retrieved_at": { - "type": [ - "string", - "null" - ] - }, - "url": { - "type": "string" - } - }, - "required": [ - "type", - "content", - "retrieved_at", - "url" - ], - "description": "web_fetch_result variant" + "$ref": "#/components/schemas/MessagesRequestToolChoice0" }, { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/AnthropicWebFetchToolResultErrorType" + "$ref": "#/components/schemas/MessagesRequestToolChoice1" + }, + { + "$ref": "#/components/schemas/MessagesRequestToolChoice2" + }, + { + "$ref": "#/components/schemas/MessagesRequestToolChoice3" + } + ], + "title": "MessagesRequestToolChoice" + }, + "MessagesRequestToolsItemsOneOf0InputSchema": { + "type": "object", + "properties": { + "properties": { + "oneOf": [ + { + "description": "Any type" }, - "error_code": { - "$ref": "#/components/schemas/AnthropicWebFetchToolResultErrorErrorCode" + { + "type": "null" } - }, - "required": [ - "type", - "error_code" + ] + }, + "required": { + "type": [ + "array", + "null" ], - "description": "web_fetch_tool_result_error variant" + "items": { + "type": "string" + } + }, + "type": { + "type": "string", + "default": "object" } - ], - "discriminator": { - "propertyName": "type" }, - "title": "AnthropicWebFetchContent" + "title": "MessagesRequestToolsItemsOneOf0InputSchema" }, - "AnthropicWebSearchResultType": { + "MessagesRequestToolsItemsOneOf0Type": { "type": "string", "enum": [ - "web_search_result" + "custom" ], - "title": "AnthropicWebSearchResultType" + "title": "MessagesRequestToolsItemsOneOf0Type" }, - "AnthropicWebSearchResult": { + "MessagesRequestToolsItems0": { "type": "object", "properties": { - "encrypted_content": { + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "description": { "type": "string" }, - "page_age": { - "type": [ - "string", - "null" - ] + "input_schema": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf0InputSchema" }, - "title": { + "name": { "type": "string" }, "type": { - "$ref": "#/components/schemas/AnthropicWebSearchResultType" - }, - "url": { - "type": "string" + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf0Type" } }, "required": [ - "encrypted_content", - "page_age", - "title", - "type", - "url" + "input_schema", + "name" ], - "title": "AnthropicWebSearchResult" - }, - "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent0": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AnthropicWebSearchResult" - }, - "title": "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent0" + "title": "MessagesRequestToolsItems0" }, - "AnthropicWebSearchToolResultErrorErrorCode": { + "MessagesRequestToolsItemsOneOf1Name": { "type": "string", "enum": [ - "invalid_tool_input", - "unavailable", - "max_uses_exceeded", - "too_many_requests", - "query_too_long", - "request_too_large" + "bash" ], - "title": "AnthropicWebSearchToolResultErrorErrorCode" + "title": "MessagesRequestToolsItemsOneOf1Name" }, - "AnthropicWebSearchToolResultErrorType": { + "MessagesRequestToolsItemsOneOf1Type": { "type": "string", "enum": [ - "web_search_tool_result_error" + "bash_20250124" ], - "title": "AnthropicWebSearchToolResultErrorType" + "title": "MessagesRequestToolsItemsOneOf1Type" }, - "AnthropicWebSearchToolResultError": { + "MessagesRequestToolsItems1": { "type": "object", "properties": { - "error_code": { - "$ref": "#/components/schemas/AnthropicWebSearchToolResultErrorErrorCode" + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "name": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf1Name" }, "type": { - "$ref": "#/components/schemas/AnthropicWebSearchToolResultErrorType" + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf1Type" } }, "required": [ - "error_code", + "name", "type" ], - "title": "AnthropicWebSearchToolResultError" + "title": "MessagesRequestToolsItems1" }, - "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent": { - "oneOf": [ - { - "$ref": "#/components/schemas/OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent0" - }, - { - "$ref": "#/components/schemas/AnthropicWebSearchToolResultError" - } + "MessagesRequestToolsItemsOneOf2Name": { + "type": "string", + "enum": [ + "str_replace_editor" ], - "title": "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent" + "title": "MessagesRequestToolsItemsOneOf2Name" }, - "ORAnthropicContentBlock": { - "oneOf": [ - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "advisor_tool_result" - ], - "description": "Discriminator value: advisor_tool_result" - }, - "content": { - "type": "object", - "additionalProperties": { - "description": "Any type" - } - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "content", - "tool_use_id" - ], - "description": "advisor_tool_result variant" + "MessagesRequestToolsItemsOneOf2Type": { + "type": "string", + "enum": [ + "text_editor_20250124" + ], + "title": "MessagesRequestToolsItemsOneOf2Type" + }, + "MessagesRequestToolsItems2": { + "type": "object", + "properties": { + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "bash_code_execution_tool_result" - ], - "description": "Discriminator value: bash_code_execution_tool_result" - }, - "content": { - "$ref": "#/components/schemas/AnthropicBashCodeExecutionContent" - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "content", - "tool_use_id" - ], - "description": "bash_code_execution_tool_result variant" + "name": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf2Name" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "code_execution_tool_result" - ], - "description": "Discriminator value: code_execution_tool_result" - }, - "content": { - "$ref": "#/components/schemas/AnthropicCodeExecutionContent" - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "content", - "tool_use_id" - ], - "description": "code_execution_tool_result variant" + "type": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf2Type" + } + }, + "required": [ + "name", + "type" + ], + "title": "MessagesRequestToolsItems2" + }, + "MessagesRequestToolsItemsOneOf3Name": { + "type": "string", + "enum": [ + "web_search" + ], + "title": "MessagesRequestToolsItemsOneOf3Name" + }, + "MessagesRequestToolsItemsOneOf3Type": { + "type": "string", + "enum": [ + "web_search_20250305" + ], + "title": "MessagesRequestToolsItemsOneOf3Type" + }, + "AnthropicWebSearchToolUserLocationType": { + "type": "string", + "enum": [ + "approximate" + ], + "title": "AnthropicWebSearchToolUserLocationType" + }, + "AnthropicWebSearchToolUserLocation": { + "type": "object", + "properties": { + "city": { + "type": [ + "string", + "null" + ] }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "compaction" - ], - "description": "Discriminator value: compaction" - }, - "content": { - "type": [ - "string", - "null" - ] - } - }, - "required": [ - "type", - "content" - ], - "description": "compaction variant" + "country": { + "type": [ + "string", + "null" + ] }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "container_upload" - ], - "description": "Discriminator value: container_upload" - }, - "file_id": { - "type": "string" - } - }, - "required": [ - "type", - "file_id" - ], - "description": "container_upload variant" + "region": { + "type": [ + "string", + "null" + ] }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "redacted_thinking" - ], - "description": "Discriminator value: redacted_thinking" - }, - "data": { - "type": "string" - } - }, - "required": [ - "type", - "data" - ], - "description": "redacted_thinking variant" + "timezone": { + "type": [ + "string", + "null" + ] }, - { - "type": "object", - "properties": { - "type": { - "$ref": "#/components/schemas/OrAnthropicServerToolUseBlockType" - }, - "caller": { - "$ref": "#/components/schemas/ORAnthropicNullableCaller" - }, - "id": { - "type": "string" - }, - "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "type", - "id", - "name" + "type": { + "$ref": "#/components/schemas/AnthropicWebSearchToolUserLocationType" + } + }, + "required": [ + "type" + ], + "title": "AnthropicWebSearchToolUserLocation" + }, + "MessagesRequestToolsItems3": { + "type": "object", + "properties": { + "allowed_domains": { + "type": [ + "array", + "null" ], - "description": "server_tool_use variant" + "items": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "text" - ], - "description": "Discriminator value: text" - }, - "citations": { - "type": [ - "array", - "null" - ], - "items": { - "$ref": "#/components/schemas/AnthropicTextCitation" - } - }, - "text": { - "type": "string" - } - }, - "required": [ - "type", - "citations", - "text" + "blocked_domains": { + "type": [ + "array", + "null" ], - "description": "text variant" + "items": { + "type": "string" + } }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "text_editor_code_execution_tool_result" - ], - "description": "Discriminator value: text_editor_code_execution_tool_result" - }, - "content": { - "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionContent" - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "content", - "tool_use_id" - ], - "description": "text_editor_code_execution_tool_result variant" + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "thinking" - ], - "description": "Discriminator value: thinking" - }, - "signature": { - "type": "string" - }, - "thinking": { - "type": "string" - } - }, - "required": [ - "type", - "signature", - "thinking" - ], - "description": "thinking variant" - }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_search_tool_result" - ], - "description": "Discriminator value: tool_search_tool_result" - }, - "content": { - "$ref": "#/components/schemas/AnthropicToolSearchContent" - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "content", - "tool_use_id" - ], - "description": "tool_search_tool_result variant" + "max_uses": { + "type": [ + "integer", + "null" + ] }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "tool_use" - ], - "description": "Discriminator value: tool_use" - }, - "caller": { - "$ref": "#/components/schemas/AnthropicCaller" - }, - "id": { - "type": "string" - }, - "input": { - "oneOf": [ - { - "description": "Any type" - }, - { - "type": "null" - } - ] - }, - "name": { - "type": "string" - } - }, - "required": [ - "type", - "caller", - "id", - "name" - ], - "description": "tool_use variant" + "name": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf3Name" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "web_fetch_tool_result" - ], - "description": "Discriminator value: web_fetch_tool_result" - }, - "caller": { - "$ref": "#/components/schemas/AnthropicCaller" - }, - "content": { - "$ref": "#/components/schemas/AnthropicWebFetchContent" - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "caller", - "content", - "tool_use_id" - ], - "description": "web_fetch_tool_result variant" + "type": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf3Type" }, - { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "web_search_tool_result" - ], - "description": "Discriminator value: web_search_tool_result" - }, - "caller": { - "$ref": "#/components/schemas/AnthropicCaller" - }, - "content": { - "$ref": "#/components/schemas/OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent" - }, - "tool_use_id": { - "type": "string" - } - }, - "required": [ - "type", - "caller", - "content", - "tool_use_id" - ], - "description": "web_search_tool_result variant" + "user_location": { + "$ref": "#/components/schemas/AnthropicWebSearchToolUserLocation" } - ], - "discriminator": { - "propertyName": "type" }, - "title": "ORAnthropicContentBlock" + "required": [ + "name", + "type" + ], + "title": "MessagesRequestToolsItems3" }, - "MessagesResultRole": { + "AnthropicAllowedCallersItems": { "type": "string", "enum": [ - "assistant" + "direct", + "code_execution_20250825", + "code_execution_20260120" ], - "title": "MessagesResultRole" + "title": "AnthropicAllowedCallersItems" }, - "AnthropicRefusalStopDetailsCategory": { + "AnthropicAllowedCallers": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicAllowedCallersItems" + }, + "title": "AnthropicAllowedCallers" + }, + "MessagesRequestToolsItemsOneOf4Name": { "type": "string", "enum": [ - "cyber", - "bio" + "web_search" ], - "title": "AnthropicRefusalStopDetailsCategory" + "title": "MessagesRequestToolsItemsOneOf4Name" }, - "AnthropicRefusalStopDetailsType": { + "MessagesRequestToolsItemsOneOf4Type": { "type": "string", "enum": [ - "refusal" + "web_search_20260209" ], - "title": "AnthropicRefusalStopDetailsType" + "title": "MessagesRequestToolsItemsOneOf4Type" }, - "AnthropicRefusalStopDetails": { + "MessagesRequestToolsItems4": { "type": "object", "properties": { - "category": { - "oneOf": [ - { - "$ref": "#/components/schemas/AnthropicRefusalStopDetailsCategory" - }, - { - "type": "null" - } - ] + "allowed_callers": { + "$ref": "#/components/schemas/AnthropicAllowedCallers" }, - "explanation": { + "allowed_domains": { "type": [ - "string", + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "blocked_domains": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" + }, + "max_uses": { + "type": [ + "integer", "null" ] }, + "name": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf4Name" + }, "type": { - "$ref": "#/components/schemas/AnthropicRefusalStopDetailsType" + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf4Type" + }, + "user_location": { + "$ref": "#/components/schemas/AnthropicWebSearchToolUserLocation" } }, "required": [ - "category", - "explanation", + "name", "type" ], - "description": "Structured information about a refusal", - "title": "AnthropicRefusalStopDetails" - }, - "ORAnthropicStopReason": { - "type": "string", - "enum": [ - "end_turn", - "max_tokens", - "stop_sequence", - "tool_use", - "pause_turn", - "refusal", - "compaction" - ], - "title": "ORAnthropicStopReason" + "title": "MessagesRequestToolsItems4" }, - "MessagesResultType": { + "MessagesRequestToolsItemsOneOf5CachingType": { "type": "string", "enum": [ - "message" + "ephemeral" ], - "title": "MessagesResultType" + "title": "MessagesRequestToolsItemsOneOf5CachingType" }, - "AnthropicCacheCreation": { + "MessagesRequestToolsItemsOneOf5Caching": { "type": "object", "properties": { - "ephemeral_1h_input_tokens": { - "type": "integer" + "ttl": { + "$ref": "#/components/schemas/AnthropicCacheControlTtl" }, - "ephemeral_5m_input_tokens": { - "type": "integer" + "type": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5CachingType" } }, "required": [ - "ephemeral_1h_input_tokens", - "ephemeral_5m_input_tokens" + "type" ], - "title": "AnthropicCacheCreation" - }, - "AnthropicServerToolUsage": { - "type": "object", - "properties": { - "web_fetch_requests": { - "type": "integer" - }, - "web_search_requests": { - "type": "integer" - } - }, - "required": [ - "web_fetch_requests", - "web_search_requests" - ], - "title": "AnthropicServerToolUsage" + "description": "Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. Currently supported for Anthropic Claude models.", + "title": "MessagesRequestToolsItemsOneOf5Caching" }, - "AnthropicServiceTier": { + "MessagesRequestToolsItemsOneOf5Name": { "type": "string", "enum": [ - "standard", - "priority", - "batch" + "advisor" ], - "title": "AnthropicServiceTier" - }, - "AnthropicIterationCacheCreation": { - "type": "object", - "properties": { - "ephemeral_1h_input_tokens": { - "type": "integer" - }, - "ephemeral_5m_input_tokens": { - "type": "integer" - } - }, - "title": "AnthropicIterationCacheCreation" + "title": "MessagesRequestToolsItemsOneOf5Name" }, - "AnthropicCompactionUsageIterationType": { + "MessagesRequestToolsItemsOneOf5Type": { "type": "string", "enum": [ - "compaction" + "advisor_20260301" ], - "title": "AnthropicCompactionUsageIterationType" + "title": "MessagesRequestToolsItemsOneOf5Type" }, - "AnthropicCompactionUsageIteration": { + "MessagesRequestToolsItems5": { "type": "object", "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + "allowed_callers": { + "$ref": "#/components/schemas/AnthropicAllowedCallers" }, - "cache_creation_input_tokens": { - "type": "integer" + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "cache_read_input_tokens": { - "type": "integer" + "caching": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Caching" }, - "input_tokens": { - "type": "integer" + "defer_loading": { + "type": "boolean" }, - "output_tokens": { + "max_uses": { "type": "integer" }, + "model": { + "type": "string" + }, + "name": { + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Name" + }, "type": { - "$ref": "#/components/schemas/AnthropicCompactionUsageIterationType" + "$ref": "#/components/schemas/MessagesRequestToolsItemsOneOf5Type" } }, "required": [ + "model", + "name", "type" ], - "title": "AnthropicCompactionUsageIteration" - }, - "AnthropicMessageUsageIterationType": { - "type": "string", - "enum": [ - "message" - ], - "title": "AnthropicMessageUsageIterationType" + "title": "MessagesRequestToolsItems5" }, - "AnthropicMessageUsageIteration": { + "MessagesRequestToolsItems11": { "type": "object", "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" - }, - "cache_creation_input_tokens": { - "type": "integer" - }, - "cache_read_input_tokens": { - "type": "integer" - }, - "input_tokens": { - "type": "integer" - }, - "output_tokens": { - "type": "integer" - }, "type": { - "$ref": "#/components/schemas/AnthropicMessageUsageIterationType" + "type": "string" } }, "required": [ "type" ], - "title": "AnthropicMessageUsageIteration" - }, - "AnthropicAdvisorMessageUsageIterationType": { - "type": "string", - "enum": [ - "advisor_message" - ], - "title": "AnthropicAdvisorMessageUsageIterationType" + "title": "MessagesRequestToolsItems11" }, - "AnthropicAdvisorMessageUsageIteration": { - "type": "object", - "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" - }, - "cache_creation_input_tokens": { - "type": "integer" - }, - "cache_read_input_tokens": { - "type": "integer" - }, - "input_tokens": { - "type": "integer" + "MessagesRequestToolsItems": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesRequestToolsItems0" }, - "output_tokens": { - "type": "integer" + { + "$ref": "#/components/schemas/MessagesRequestToolsItems1" }, - "model": { - "type": "string" + { + "$ref": "#/components/schemas/MessagesRequestToolsItems2" }, - "type": { - "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIterationType" - } - }, - "required": [ - "model", - "type" - ], - "title": "AnthropicAdvisorMessageUsageIteration" - }, - "AnthropicUnknownUsageIteration": { - "type": "object", - "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + { + "$ref": "#/components/schemas/MessagesRequestToolsItems3" }, - "cache_creation_input_tokens": { - "type": "integer" + { + "$ref": "#/components/schemas/MessagesRequestToolsItems4" }, - "cache_read_input_tokens": { - "type": "integer" + { + "$ref": "#/components/schemas/MessagesRequestToolsItems5" }, - "input_tokens": { - "type": "integer" + { + "$ref": "#/components/schemas/DatetimeServerTool" }, - "output_tokens": { - "type": "integer" + { + "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" }, - "type": { - "type": "string" - } - }, - "required": [ - "type" - ], - "title": "AnthropicUnknownUsageIteration" - }, - "AnthropicUsageIteration": { - "oneOf": [ { - "$ref": "#/components/schemas/AnthropicCompactionUsageIteration" + "$ref": "#/components/schemas/ChatSearchModelsServerTool" }, { - "$ref": "#/components/schemas/AnthropicMessageUsageIteration" + "$ref": "#/components/schemas/WebFetchServerTool" }, { - "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIteration" + "$ref": "#/components/schemas/OpenRouterWebSearchServerTool" }, { - "$ref": "#/components/schemas/AnthropicUnknownUsageIteration" + "$ref": "#/components/schemas/MessagesRequestToolsItems11" } ], - "title": "AnthropicUsageIteration" + "title": "MessagesRequestToolsItems" }, - "MessagesResultUsage": { + "MessagesRequest": { "type": "object", "properties": { - "cache_creation": { - "$ref": "#/components/schemas/AnthropicCacheCreation" + "cache_control": { + "$ref": "#/components/schemas/AnthropicCacheControlDirective" }, - "cache_creation_input_tokens": { - "type": [ - "integer", - "null" + "context_management": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesRequestContextManagement" + }, + { + "type": "null" + } ] }, - "cache_read_input_tokens": { - "type": [ - "integer", - "null" - ] + "max_tokens": { + "type": "integer" }, - "inference_geo": { + "messages": { "type": [ - "string", + "array", "null" - ] + ], + "items": { + "$ref": "#/components/schemas/MessagesMessageParam" + } }, - "input_tokens": { - "type": "integer" + "metadata": { + "$ref": "#/components/schemas/MessagesRequestMetadata" }, - "output_tokens": { - "type": "integer" + "model": { + "type": "string" }, - "server_tool_use": { - "$ref": "#/components/schemas/AnthropicServerToolUsage" + "models": { + "type": "array", + "items": { + "type": "string" + } }, - "service_tier": { - "$ref": "#/components/schemas/AnthropicServiceTier" + "output_config": { + "$ref": "#/components/schemas/MessagesOutputConfig" }, - "iterations": { + "plugins": { "type": "array", "items": { - "$ref": "#/components/schemas/AnthropicUsageIteration" - } + "$ref": "#/components/schemas/MessagesRequestPluginsItems" + }, + "description": "Plugins you want to enable for this request, including their settings." }, - "speed": { - "$ref": "#/components/schemas/AnthropicSpeed" - } - }, - "required": [ - "cache_creation", - "cache_creation_input_tokens", - "cache_read_input_tokens", - "inference_geo", - "input_tokens", - "output_tokens", - "server_tool_use", - "service_tier" - ], - "title": "MessagesResultUsage" - }, - "MessagesResultContextManagementAppliedEditsItems": { - "type": "object", - "properties": { - "type": { + "provider": { + "$ref": "#/components/schemas/ProviderPreferences" + }, + "route": { + "description": "Any type" + }, + "service_tier": { "type": "string" - } - }, - "required": [ - "type" - ], - "title": "MessagesResultContextManagementAppliedEditsItems" - }, - "MessagesResultContextManagement": { - "type": "object", - "properties": { - "applied_edits": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MessagesResultContextManagementAppliedEditsItems" - } - } - }, - "required": [ - "applied_edits" - ], - "title": "MessagesResultContextManagement" - }, - "MessagesResult": { - "type": "object", - "properties": { - "container": { - "$ref": "#/components/schemas/AnthropicContainer" }, - "content": { + "session_id": { + "type": "string", + "description": "A unique identifier for grouping related requests (e.g., a conversation or agent workflow) for observability. If provided in both the request body and the x-session-id header, the body value takes precedence. Maximum of 256 characters." + }, + "speed": { + "$ref": "#/components/schemas/AnthropicSpeed" + }, + "stop_sequences": { "type": "array", "items": { - "$ref": "#/components/schemas/ORAnthropicContentBlock" + "type": "string" } }, - "id": { - "type": "string" - }, - "model": { - "type": "string" + "stream": { + "type": "boolean" }, - "role": { - "$ref": "#/components/schemas/MessagesResultRole" + "system": { + "$ref": "#/components/schemas/MessagesRequestSystem" }, - "stop_details": { - "$ref": "#/components/schemas/AnthropicRefusalStopDetails" + "temperature": { + "type": "number", + "format": "double" }, - "stop_reason": { - "$ref": "#/components/schemas/ORAnthropicStopReason" + "thinking": { + "$ref": "#/components/schemas/MessagesRequestThinking" }, - "stop_sequence": { - "type": [ - "string", - "null" - ] + "tool_choice": { + "$ref": "#/components/schemas/MessagesRequestToolChoice" }, - "type": { - "$ref": "#/components/schemas/MessagesResultType" + "tools": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessagesRequestToolsItems" + } }, - "usage": { - "$ref": "#/components/schemas/MessagesResultUsage" + "top_k": { + "type": "integer" }, - "context_management": { - "oneOf": [ - { - "$ref": "#/components/schemas/MessagesResultContextManagement" - }, - { - "type": "null" - } - ] + "top_p": { + "type": "number", + "format": "double" }, - "openrouter_metadata": { - "$ref": "#/components/schemas/OpenRouterMetadata" + "trace": { + "$ref": "#/components/schemas/TraceConfig" }, - "provider": { - "$ref": "#/components/schemas/ProviderName" + "user": { + "type": "string", + "description": "A unique identifier representing your end-user, which helps distinguish between different users of your app. This allows your app to identify specific users in case of abuse reports, preventing your entire app from being affected by the actions of individual users. Maximum of 256 characters." } }, "required": [ - "container", - "content", - "id", - "model", - "role", - "stop_details", - "stop_reason", - "stop_sequence", - "type", - "usage" + "messages", + "model" ], - "description": "Non-streaming response from the Anthropic Messages API with OpenRouter extensions", - "title": "MessagesResult" + "description": "Request schema for Anthropic Messages API endpoint", + "title": "MessagesRequest" }, - "MessagesErrorDetail": { + "AnthropicContainer": { "type": "object", "properties": { - "message": { + "expires_at": { "type": "string" }, - "type": { + "id": { "type": "string" } }, "required": [ - "message", - "type" + "expires_at", + "id" ], - "title": "MessagesErrorDetail" + "title": "AnthropicContainer" }, - "MessagesErrorResponseType": { + "AnthropicBashCodeExecutionOutputType": { "type": "string", "enum": [ - "error" + "bash_code_execution_output" ], - "title": "MessagesErrorResponseType" + "title": "AnthropicBashCodeExecutionOutputType" }, - "MessagesErrorResponse": { + "AnthropicBashCodeExecutionOutput": { "type": "object", "properties": { - "error": { - "$ref": "#/components/schemas/MessagesErrorDetail" + "file_id": { + "type": "string" }, "type": { - "$ref": "#/components/schemas/MessagesErrorResponseType" + "$ref": "#/components/schemas/AnthropicBashCodeExecutionOutputType" } }, "required": [ - "error", + "file_id", "type" ], - "title": "MessagesErrorResponse" + "title": "AnthropicBashCodeExecutionOutput" }, - "ModelsGetParametersCategory": { + "AnthropicBashCodeExecutionResultType": { "type": "string", "enum": [ - "programming", - "roleplay", - "marketing", - "marketing/seo", - "technology", - "science", - "translation", - "legal", - "finance", - "health", - "trivia", - "academia" - ], - "description": "Filter models by use case category", - "title": "ModelsGetParametersCategory" - }, - "ModelsCountResponseData": { - "type": "object", - "properties": { - "count": { - "type": "integer", - "description": "Total number of available models" - } - }, - "required": [ - "count" - ], - "description": "Model count data", - "title": "ModelsCountResponseData" - }, - "ModelsCountResponse": { - "type": "object", - "properties": { - "data": { - "$ref": "#/components/schemas/ModelsCountResponseData", - "description": "Model count data" - } - }, - "required": [ - "data" - ], - "description": "Model count data", - "title": "ModelsCountResponse" - }, - "ObservabilityDestinationDiscriminatorMappingArizeConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "baseUrl": { - "type": "string", - "default": "https://otlp.arize.com" - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "modelId": { - "type": "string" - }, - "spaceKey": { - "type": "string" - } - }, - "required": [ - "apiKey", - "modelId", - "spaceKey" + "bash_code_execution_result" ], - "title": "ObservabilityDestinationDiscriminatorMappingArizeConfig" + "title": "AnthropicBashCodeExecutionResultType" }, - "ObservabilityFilterRulesConfigGroupsItemsLogic": { + "AnthropicBashCodeExecutionToolResultErrorErrorCode": { "type": "string", "enum": [ - "and", - "or" + "invalid_tool_input", + "unavailable", + "too_many_requests", + "execution_time_exceeded", + "output_file_too_large" ], - "default": "and", - "title": "ObservabilityFilterRulesConfigGroupsItemsLogic" + "title": "AnthropicBashCodeExecutionToolResultErrorErrorCode" }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField": { + "AnthropicBashCodeExecutionToolResultErrorType": { "type": "string", "enum": [ - "model", - "provider", - "session_id", - "user_id", - "api_key_name", - "finish_reason", - "input", - "output", - "total_cost", - "total_tokens", - "prompt_tokens", - "completion_tokens" - ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" - }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator": { - "type": "string", - "enum": [ - "equals", - "not_equals", - "contains", - "not_contains", - "regex", - "starts_with", - "ends_with", - "gt", - "lt", - "gte", - "lte", - "exists", - "not_exists" + "bash_code_execution_tool_result_error" ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + "title": "AnthropicBashCodeExecutionToolResultErrorType" }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue": { + "AnthropicBashCodeExecutionContent": { "oneOf": [ { - "type": "string" - }, - { - "type": "number", - "format": "double" - } - ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" - }, - "ObservabilityFilterRulesConfigGroupsItemsRulesItems": { - "type": "object", - "properties": { - "field": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" - }, - "operator": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" - }, - "value": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" - } - }, - "required": [ - "field", - "operator" - ], - "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItems" - }, - "ObservabilityFilterRulesConfigGroupsItems": { - "type": "object", - "properties": { - "logic": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsLogic" - }, - "rules": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItems" - } - } - }, - "required": [ - "rules" - ], - "title": "ObservabilityFilterRulesConfigGroupsItems" - }, - "ObservabilityFilterRulesConfig": { - "type": "object", - "properties": { - "enabled": { - "type": "boolean", - "default": true - }, - "groups": { - "type": "array", - "items": { - "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItems" - } - } - }, - "required": [ - "groups" - ], - "description": "Optional structured filter rules controlling which events are forwarded.", - "title": "ObservabilityFilterRulesConfig" - }, - "ObservabilityDestinationDiscriminatorMappingBraintrustConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "baseUrl": { - "type": "string", - "default": "https://api.braintrust.dev" - }, - "headers": { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicBashCodeExecutionResultType" + }, + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicBashCodeExecutionOutput" + } + }, + "return_code": { + "type": "integer" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "projectId": { - "type": "string" - } - }, - "required": [ - "apiKey", - "projectId" - ], - "title": "ObservabilityDestinationDiscriminatorMappingBraintrustConfig" - }, - "ObservabilityDestinationDiscriminatorMappingClickhouseConfig": { - "type": "object", - "properties": { - "database": { - "type": "string" + "required": [ + "type", + "content", + "return_code", + "stderr", + "stdout" + ], + "description": "bash_code_execution_result variant" }, - "headers": { + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicBashCodeExecutionToolResultErrorType" + }, + "error_code": { + "$ref": "#/components/schemas/AnthropicBashCodeExecutionToolResultErrorErrorCode" + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "host": { - "type": "string" - }, - "password": { - "type": "string" - }, - "table": { - "type": "string", - "default": "OPENROUTER_TRACES" - }, - "username": { - "type": "string", - "description": "If you have not set a specific username in ClickHouse, simply type in 'default' below." + "required": [ + "type", + "error_code" + ], + "description": "bash_code_execution_tool_result_error variant" } - }, - "required": [ - "database", - "host", - "password", - "username" ], - "title": "ObservabilityDestinationDiscriminatorMappingClickhouseConfig" - }, - "ObservabilityDestinationDiscriminatorMappingDatadogConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string", - "description": "Datadog API key must have LLM Observability permissions. Create at: " - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "mlApp": { - "type": "string", - "description": "Name to identify your application in Datadog LLM Observability" - }, - "url": { - "type": "string", - "default": "https://api.us5.datadoghq.com", - "description": "Datadog API URL for your region (e.g., https://api.datadoghq.com, https://api.us3.datadoghq.com, https://api.datadoghq.eu)" - } + "discriminator": { + "propertyName": "type" }, - "required": [ - "apiKey", - "mlApp" + "title": "AnthropicBashCodeExecutionContent" + }, + "AnthropicCodeExecutionOutputType": { + "type": "string", + "enum": [ + "code_execution_output" ], - "title": "ObservabilityDestinationDiscriminatorMappingDatadogConfig" + "title": "AnthropicCodeExecutionOutputType" }, - "ObservabilityGrafanaDestinationConfig": { + "AnthropicCodeExecutionOutput": { "type": "object", "properties": { - "apiKey": { + "file_id": { "type": "string" }, - "baseUrl": { - "type": "string", - "default": "https://otlp-gateway-prod-us-west-0.grafana.net" - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "instanceId": { - "type": "string" + "type": { + "$ref": "#/components/schemas/AnthropicCodeExecutionOutputType" } }, "required": [ - "apiKey", - "instanceId" + "file_id", + "type" ], - "title": "ObservabilityGrafanaDestinationConfig" + "title": "AnthropicCodeExecutionOutput" }, - "ObservabilityGrafanaDestinationType": { + "AnthropicCodeExecutionResultType": { "type": "string", "enum": [ - "grafana" + "code_execution_result" ], - "title": "ObservabilityGrafanaDestinationType" + "title": "AnthropicCodeExecutionResultType" }, - "ObservabilityLangfuseDestinationConfig": { - "type": "object", - "properties": { - "baseUrl": { - "type": "string", - "default": "https://us.cloud.langfuse.com" - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "publicKey": { - "type": "string" - }, - "secretKey": { - "type": "string" - } - }, - "required": [ - "publicKey", - "secretKey" - ], - "title": "ObservabilityLangfuseDestinationConfig" - }, - "ObservabilityLangfuseDestinationType": { + "AnthropicServerToolErrorCode": { "type": "string", "enum": [ - "langfuse" - ], - "title": "ObservabilityLangfuseDestinationType" - }, - "ObservabilityLangsmithDestinationConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "endpoint": { - "type": "string", - "default": "https://api.smith.langchain.com" - }, - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "project": { - "type": "string", - "default": "main", - "description": "The name for this project, such as pr-openrouter-demo. Defaults to \"main\" if not set." - }, - "workspaceId": { - "type": "string", - "description": "Required for org-scoped API keys. Find this in your LangSmith workspace settings." - } - }, - "required": [ - "apiKey" + "invalid_tool_input", + "unavailable", + "too_many_requests", + "execution_time_exceeded" ], - "title": "ObservabilityLangsmithDestinationConfig" + "title": "AnthropicServerToolErrorCode" }, - "ObservabilityLangsmithDestinationType": { + "AnthropicCodeExecutionToolResultErrorType": { "type": "string", "enum": [ - "langsmith" + "code_execution_tool_result_error" ], - "title": "ObservabilityLangsmithDestinationType" + "title": "AnthropicCodeExecutionToolResultErrorType" }, - "ObservabilityNewrelicDestinationConfigRegion": { + "AnthropicEncryptedCodeExecutionResultType": { "type": "string", "enum": [ - "us", - "eu" + "encrypted_code_execution_result" ], - "default": "us", - "title": "ObservabilityNewrelicDestinationConfigRegion" + "title": "AnthropicEncryptedCodeExecutionResultType" }, - "ObservabilityNewrelicDestinationConfig": { - "type": "object", - "properties": { - "headers": { + "AnthropicCodeExecutionContent": { + "oneOf": [ + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicCodeExecutionResultType" + }, + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicCodeExecutionOutput" + } + }, + "return_code": { + "type": "integer" + }, + "stderr": { + "type": "string" + }, + "stdout": { + "type": "string" + } }, - "description": "Custom HTTP headers to include in requests to this destination." + "required": [ + "type", + "content", + "return_code", + "stderr", + "stdout" + ], + "description": "code_execution_result variant" }, - "licenseKey": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicCodeExecutionToolResultErrorType" + }, + "error_code": { + "$ref": "#/components/schemas/AnthropicServerToolErrorCode" + } + }, + "required": [ + "type", + "error_code" + ], + "description": "code_execution_tool_result_error variant" }, - "region": { - "$ref": "#/components/schemas/ObservabilityNewrelicDestinationConfigRegion" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicEncryptedCodeExecutionResultType" + }, + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicCodeExecutionOutput" + } + }, + "encrypted_stdout": { + "type": "string" + }, + "return_code": { + "type": "integer" + }, + "stderr": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "encrypted_stdout", + "return_code", + "stderr" + ], + "description": "encrypted_code_execution_result variant" } - }, - "required": [ - "licenseKey" - ], - "title": "ObservabilityNewrelicDestinationConfig" - }, - "ObservabilityNewrelicDestinationType": { - "type": "string", - "enum": [ - "newrelic" ], - "title": "ObservabilityNewrelicDestinationType" + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicCodeExecutionContent" }, - "ObservabilityOpikDestinationConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "headers": { + "ORAnthropicNullableCaller": { + "oneOf": [ + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "type": "string", + "enum": [ + "code_execution_20250825" + ], + "description": "Discriminator value: code_execution_20250825" + }, + "tool_id": { + "type": "string" + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "projectName": { - "type": "string" + "required": [ + "type", + "tool_id" + ], + "description": "code_execution_20250825 variant" }, - "workspace": { - "type": "string" - } - }, - "required": [ - "apiKey", - "projectName", - "workspace" - ], - "title": "ObservabilityOpikDestinationConfig" - }, - "ObservabilityOpikDestinationType": { - "type": "string", - "enum": [ - "opik" - ], - "title": "ObservabilityOpikDestinationType" - }, - "ObservabilityOtelCollectorDestinationConfig": { - "type": "object", - "properties": { - "endpoint": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "code_execution_20260120" + ], + "description": "Discriminator value: code_execution_20260120" + }, + "tool_id": { + "type": "string" + } + }, + "required": [ + "type", + "tool_id" + ], + "description": "code_execution_20260120 variant" }, - "headers": { + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "type": "string", + "enum": [ + "direct" + ], + "description": "Discriminator value: direct" + } }, - "description": "Custom HTTP headers as a JSON object. For Axiom, use {\"Authorization\": \"Bearer xaat-xxx\", \"X-Axiom-Dataset\": \"your-dataset\"}" + "required": [ + "type" + ], + "description": "direct variant" } - }, - "required": [ - "endpoint" ], - "title": "ObservabilityOtelCollectorDestinationConfig" + "discriminator": { + "propertyName": "type" + }, + "title": "ORAnthropicNullableCaller" }, - "ObservabilityOtelCollectorDestinationType": { + "OrAnthropicServerToolUseBlockType": { "type": "string", "enum": [ - "otel-collector" + "server_tool_use" ], - "title": "ObservabilityOtelCollectorDestinationType" + "title": "OrAnthropicServerToolUseBlockType" }, - "ObservabilityPosthogDestinationConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" + "AnthropicTextCitation": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "char_location" + ], + "description": "Discriminator value: char_location" + }, + "cited_text": { + "type": "string" + }, + "document_index": { + "type": "integer" + }, + "document_title": { + "type": [ + "string", + "null" + ] + }, + "end_char_index": { + "type": "integer" + }, + "file_id": { + "type": [ + "string", + "null" + ] + }, + "start_char_index": { + "type": "integer" + } + }, + "required": [ + "type", + "cited_text", + "document_index", + "document_title", + "end_char_index", + "file_id", + "start_char_index" + ], + "description": "char_location variant" }, - "endpoint": { - "type": "string", - "default": "https://us.i.posthog.com" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "content_block_location" + ], + "description": "Discriminator value: content_block_location" + }, + "cited_text": { + "type": "string" + }, + "document_index": { + "type": "integer" + }, + "document_title": { + "type": [ + "string", + "null" + ] + }, + "end_block_index": { + "type": "integer" + }, + "file_id": { + "type": [ + "string", + "null" + ] + }, + "start_block_index": { + "type": "integer" + } + }, + "required": [ + "type", + "cited_text", + "document_index", + "document_title", + "end_block_index", + "file_id", + "start_block_index" + ], + "description": "content_block_location variant" }, - "headers": { + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "type": "string", + "enum": [ + "page_location" + ], + "description": "Discriminator value: page_location" + }, + "cited_text": { + "type": "string" + }, + "document_index": { + "type": "integer" + }, + "document_title": { + "type": [ + "string", + "null" + ] + }, + "end_page_number": { + "type": "integer" + }, + "file_id": { + "type": [ + "string", + "null" + ] + }, + "start_page_number": { + "type": "integer" + } }, - "description": "Custom HTTP headers to include in requests to this destination." - } - }, - "required": [ - "apiKey" - ], - "title": "ObservabilityPosthogDestinationConfig" - }, - "ObservabilityPosthogDestinationType": { - "type": "string", - "enum": [ - "posthog" - ], - "title": "ObservabilityPosthogDestinationType" - }, - "ObservabilityRampDestinationConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string", - "description": "Generate this in your Ramp integration settings." + "required": [ + "type", + "cited_text", + "document_index", + "document_title", + "end_page_number", + "file_id", + "start_page_number" + ], + "description": "page_location variant" }, - "baseUrl": { - "type": "string", - "default": "https://api.ramp.com/developer/v1/ai-usage/openrouter" + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "search_result_location" + ], + "description": "Discriminator value: search_result_location" + }, + "cited_text": { + "type": "string" + }, + "end_block_index": { + "type": "integer" + }, + "search_result_index": { + "type": "integer" + }, + "source": { + "type": "string" + }, + "start_block_index": { + "type": "integer" + }, + "title": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "cited_text", + "end_block_index", + "search_result_index", + "source", + "start_block_index", + "title" + ], + "description": "search_result_location variant" }, - "headers": { + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "type": "string", + "enum": [ + "web_search_result_location" + ], + "description": "Discriminator value: web_search_result_location" + }, + "cited_text": { + "type": "string" + }, + "encrypted_index": { + "type": "string" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": "string" + } }, - "description": "Custom HTTP headers to include in requests to Ramp." + "required": [ + "type", + "cited_text", + "encrypted_index", + "title", + "url" + ], + "description": "web_search_result_location variant" } - }, - "required": [ - "apiKey" ], - "title": "ObservabilityRampDestinationConfig" + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicTextCitation" }, - "ObservabilityRampDestinationType": { + "AnthropicTextEditorCodeExecutionCreateResultType": { "type": "string", "enum": [ - "ramp" + "text_editor_code_execution_create_result" ], - "title": "ObservabilityRampDestinationType" + "title": "AnthropicTextEditorCodeExecutionCreateResultType" }, - "ObservabilityS3DestinationConfig": { - "type": "object", - "properties": { - "accessKeyId": { - "type": "string" - }, - "bucketName": { - "type": "string" - }, - "endpoint": { - "type": "string", - "format": "uri", - "description": "Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3." - }, - "headers": { + "AnthropicTextEditorCodeExecutionStrReplaceResultType": { + "type": "string", + "enum": [ + "text_editor_code_execution_str_replace_result" + ], + "title": "AnthropicTextEditorCodeExecutionStrReplaceResultType" + }, + "AnthropicTextEditorCodeExecutionToolResultErrorErrorCode": { + "type": "string", + "enum": [ + "invalid_tool_input", + "unavailable", + "too_many_requests", + "execution_time_exceeded", + "file_not_found" + ], + "title": "AnthropicTextEditorCodeExecutionToolResultErrorErrorCode" + }, + "AnthropicTextEditorCodeExecutionToolResultErrorType": { + "type": "string", + "enum": [ + "text_editor_code_execution_tool_result_error" + ], + "title": "AnthropicTextEditorCodeExecutionToolResultErrorType" + }, + "AnthropicTextEditorCodeExecutionViewResultFileType": { + "type": "string", + "enum": [ + "text", + "image", + "pdf" + ], + "title": "AnthropicTextEditorCodeExecutionViewResultFileType" + }, + "AnthropicTextEditorCodeExecutionViewResultType": { + "type": "string", + "enum": [ + "text_editor_code_execution_view_result" + ], + "title": "AnthropicTextEditorCodeExecutionViewResultType" + }, + "AnthropicTextEditorCodeExecutionContent": { + "oneOf": [ + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionCreateResultType" + }, + "is_file_update": { + "type": "boolean" + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "pathTemplate": { - "type": "string", - "default": "{prefix}/{date}", - "description": "Template for S3 object path. The filename ({traceId}-{timestamp}.json) is automatically appended. Available variables: {prefix}, {date}, {year}, {month}, {day}, {apiKeyName}" - }, - "prefix": { - "type": "string", - "default": "openrouter-traces" + "required": [ + "type", + "is_file_update" + ], + "description": "text_editor_code_execution_create_result variant" }, - "region": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionStrReplaceResultType" + }, + "lines": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + } + }, + "new_lines": { + "type": [ + "integer", + "null" + ] + }, + "new_start": { + "type": [ + "integer", + "null" + ] + }, + "old_lines": { + "type": [ + "integer", + "null" + ] + }, + "old_start": { + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "type", + "lines", + "new_lines", + "new_start", + "old_lines", + "old_start" + ], + "description": "text_editor_code_execution_str_replace_result variant" }, - "secretAccessKey": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionToolResultErrorType" + }, + "error_code": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionToolResultErrorErrorCode" + }, + "error_message": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "error_code", + "error_message" + ], + "description": "text_editor_code_execution_tool_result_error variant" }, - "sessionToken": { - "type": "string" + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionViewResultType" + }, + "content": { + "type": "string" + }, + "file_type": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionViewResultFileType" + }, + "num_lines": { + "type": [ + "integer", + "null" + ] + }, + "start_line": { + "type": [ + "integer", + "null" + ] + }, + "total_lines": { + "type": [ + "integer", + "null" + ] + } + }, + "required": [ + "type", + "content", + "file_type", + "num_lines", + "start_line", + "total_lines" + ], + "description": "text_editor_code_execution_view_result variant" } + ], + "discriminator": { + "propertyName": "type" }, - "required": [ - "accessKeyId", - "bucketName", - "secretAccessKey" + "title": "AnthropicTextEditorCodeExecutionContent" + }, + "AnthropicToolSearchResultErrorType": { + "type": "string", + "enum": [ + "tool_search_tool_result_error" ], - "title": "ObservabilityS3DestinationConfig" + "title": "AnthropicToolSearchResultErrorType" }, - "ObservabilityS3DestinationType": { + "AnthropicToolReferenceType": { "type": "string", "enum": [ - "s3" + "tool_reference" ], - "title": "ObservabilityS3DestinationType" + "title": "AnthropicToolReferenceType" }, - "ObservabilitySentryDestinationConfig": { + "AnthropicToolReference": { "type": "object", "properties": { - "dsn": { + "tool_name": { "type": "string" }, - "headers": { + "type": { + "$ref": "#/components/schemas/AnthropicToolReferenceType" + } + }, + "required": [ + "tool_name", + "type" + ], + "title": "AnthropicToolReference" + }, + "AnthropicToolSearchResultType": { + "type": "string", + "enum": [ + "tool_search_tool_search_result" + ], + "title": "AnthropicToolSearchResultType" + }, + "AnthropicToolSearchContent": { + "oneOf": [ + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicToolSearchResultErrorType" + }, + "error_code": { + "$ref": "#/components/schemas/AnthropicServerToolErrorCode" + }, + "error_message": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "error_code", + "error_message" + ], + "description": "tool_search_tool_result_error variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicToolSearchResultType" + }, + "tool_references": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicToolReference" + } + } + }, + "required": [ + "type", + "tool_references" + ], + "description": "tool_search_tool_search_result variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicToolSearchContent" + }, + "AnthropicCaller": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "code_execution_20250825" + ], + "description": "Discriminator value: code_execution_20250825" + }, + "tool_id": { + "type": "string" + } + }, + "required": [ + "type", + "tool_id" + ], + "description": "code_execution_20250825 variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "code_execution_20260120" + ], + "description": "Discriminator value: code_execution_20260120" + }, + "tool_id": { + "type": "string" + } + }, + "required": [ + "type", + "tool_id" + ], + "description": "code_execution_20260120 variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "direct" + ], + "description": "Discriminator value: direct" + } + }, + "required": [ + "type" + ], + "description": "direct variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicCaller" + }, + "AnthropicCitationsConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean" + } + }, + "required": [ + "enabled" + ], + "title": "AnthropicCitationsConfig" + }, + "AnthropicDocumentBlockSource": { + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicBase64PdfSource" + }, + { + "$ref": "#/components/schemas/AnthropicPlainTextSource" + } + ], + "title": "AnthropicDocumentBlockSource" + }, + "AnthropicDocumentBlockType": { + "type": "string", + "enum": [ + "document" + ], + "title": "AnthropicDocumentBlockType" + }, + "AnthropicDocumentBlock": { + "type": "object", + "properties": { + "citations": { + "$ref": "#/components/schemas/AnthropicCitationsConfig" + }, + "source": { + "$ref": "#/components/schemas/AnthropicDocumentBlockSource" + }, + "title": { + "type": [ + "string", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/AnthropicDocumentBlockType" + } + }, + "required": [ + "citations", + "source", + "title", + "type" + ], + "title": "AnthropicDocumentBlock" + }, + "AnthropicWebFetchToolResultErrorErrorCode": { + "type": "string", + "enum": [ + "invalid_tool_input", + "url_too_long", + "url_not_allowed", + "url_not_accessible", + "unsupported_content_type", + "too_many_requests", + "max_uses_exceeded", + "unavailable" + ], + "title": "AnthropicWebFetchToolResultErrorErrorCode" + }, + "AnthropicWebFetchToolResultErrorType": { + "type": "string", + "enum": [ + "web_fetch_tool_result_error" + ], + "title": "AnthropicWebFetchToolResultErrorType" + }, + "AnthropicWebFetchContent": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "web_fetch_result" + ], + "description": "Discriminator value: web_fetch_result" + }, + "content": { + "$ref": "#/components/schemas/AnthropicDocumentBlock" + }, + "retrieved_at": { + "type": [ + "string", + "null" + ] + }, + "url": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "retrieved_at", + "url" + ], + "description": "web_fetch_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/AnthropicWebFetchToolResultErrorType" + }, + "error_code": { + "$ref": "#/components/schemas/AnthropicWebFetchToolResultErrorErrorCode" + } + }, + "required": [ + "type", + "error_code" + ], + "description": "web_fetch_tool_result_error variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "AnthropicWebFetchContent" + }, + "AnthropicWebSearchResultType": { + "type": "string", + "enum": [ + "web_search_result" + ], + "title": "AnthropicWebSearchResultType" + }, + "AnthropicWebSearchResult": { + "type": "object", + "properties": { + "encrypted_content": { + "type": "string" + }, + "page_age": { + "type": [ + "string", + "null" + ] + }, + "title": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/AnthropicWebSearchResultType" + }, + "url": { + "type": "string" + } + }, + "required": [ + "encrypted_content", + "page_age", + "title", + "type", + "url" + ], + "title": "AnthropicWebSearchResult" + }, + "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent0": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicWebSearchResult" + }, + "title": "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent0" + }, + "AnthropicWebSearchToolResultErrorErrorCode": { + "type": "string", + "enum": [ + "invalid_tool_input", + "unavailable", + "max_uses_exceeded", + "too_many_requests", + "query_too_long", + "request_too_large" + ], + "title": "AnthropicWebSearchToolResultErrorErrorCode" + }, + "AnthropicWebSearchToolResultErrorType": { + "type": "string", + "enum": [ + "web_search_tool_result_error" + ], + "title": "AnthropicWebSearchToolResultErrorType" + }, + "AnthropicWebSearchToolResultError": { + "type": "object", + "properties": { + "error_code": { + "$ref": "#/components/schemas/AnthropicWebSearchToolResultErrorErrorCode" + }, + "type": { + "$ref": "#/components/schemas/AnthropicWebSearchToolResultErrorType" + } + }, + "required": [ + "error_code", + "type" + ], + "title": "AnthropicWebSearchToolResultError" + }, + "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent": { + "oneOf": [ + { + "$ref": "#/components/schemas/OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent0" + }, + { + "$ref": "#/components/schemas/AnthropicWebSearchToolResultError" + } + ], + "title": "OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent" + }, + "ORAnthropicContentBlock": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "advisor_tool_result" + ], + "description": "Discriminator value: advisor_tool_result" + }, + "content": { + "type": "object", + "additionalProperties": { + "description": "Any type" + } + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "tool_use_id" + ], + "description": "advisor_tool_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bash_code_execution_tool_result" + ], + "description": "Discriminator value: bash_code_execution_tool_result" + }, + "content": { + "$ref": "#/components/schemas/AnthropicBashCodeExecutionContent" + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "tool_use_id" + ], + "description": "bash_code_execution_tool_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "code_execution_tool_result" + ], + "description": "Discriminator value: code_execution_tool_result" + }, + "content": { + "$ref": "#/components/schemas/AnthropicCodeExecutionContent" + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "tool_use_id" + ], + "description": "code_execution_tool_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "compaction" + ], + "description": "Discriminator value: compaction" + }, + "content": { + "type": [ + "string", + "null" + ] + } + }, + "required": [ + "type", + "content" + ], + "description": "compaction variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "container_upload" + ], + "description": "Discriminator value: container_upload" + }, + "file_id": { + "type": "string" + } + }, + "required": [ + "type", + "file_id" + ], + "description": "container_upload variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "redacted_thinking" + ], + "description": "Discriminator value: redacted_thinking" + }, + "data": { + "type": "string" + } + }, + "required": [ + "type", + "data" + ], + "description": "redacted_thinking variant" + }, + { + "type": "object", + "properties": { + "type": { + "$ref": "#/components/schemas/OrAnthropicServerToolUseBlockType" + }, + "caller": { + "$ref": "#/components/schemas/ORAnthropicNullableCaller" + }, + "id": { + "type": "string" + }, + "input": { + "oneOf": [ + { + "description": "Any type" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "type", + "id", + "name" + ], + "description": "server_tool_use variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "text" + ], + "description": "Discriminator value: text" + }, + "citations": { + "type": [ + "array", + "null" + ], + "items": { + "$ref": "#/components/schemas/AnthropicTextCitation" + } + }, + "text": { + "type": "string" + } + }, + "required": [ + "type", + "citations", + "text" + ], + "description": "text variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "text_editor_code_execution_tool_result" + ], + "description": "Discriminator value: text_editor_code_execution_tool_result" + }, + "content": { + "$ref": "#/components/schemas/AnthropicTextEditorCodeExecutionContent" + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "tool_use_id" + ], + "description": "text_editor_code_execution_tool_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "thinking" + ], + "description": "Discriminator value: thinking" + }, + "signature": { + "type": "string" + }, + "thinking": { + "type": "string" + } + }, + "required": [ + "type", + "signature", + "thinking" + ], + "description": "thinking variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "tool_search_tool_result" + ], + "description": "Discriminator value: tool_search_tool_result" + }, + "content": { + "$ref": "#/components/schemas/AnthropicToolSearchContent" + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "content", + "tool_use_id" + ], + "description": "tool_search_tool_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "tool_use" + ], + "description": "Discriminator value: tool_use" + }, + "caller": { + "$ref": "#/components/schemas/AnthropicCaller" + }, + "id": { + "type": "string" + }, + "input": { + "oneOf": [ + { + "description": "Any type" + }, + { + "type": "null" + } + ] + }, + "name": { + "type": "string" + } + }, + "required": [ + "type", + "caller", + "id", + "name" + ], + "description": "tool_use variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "web_fetch_tool_result" + ], + "description": "Discriminator value: web_fetch_tool_result" + }, + "caller": { + "$ref": "#/components/schemas/AnthropicCaller" + }, + "content": { + "$ref": "#/components/schemas/AnthropicWebFetchContent" + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "caller", + "content", + "tool_use_id" + ], + "description": "web_fetch_tool_result variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "web_search_tool_result" + ], + "description": "Discriminator value: web_search_tool_result" + }, + "caller": { + "$ref": "#/components/schemas/AnthropicCaller" + }, + "content": { + "$ref": "#/components/schemas/OrAnthropicContentBlockDiscriminatorMappingWebSearchToolResultContent" + }, + "tool_use_id": { + "type": "string" + } + }, + "required": [ + "type", + "caller", + "content", + "tool_use_id" + ], + "description": "web_search_tool_result variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "ORAnthropicContentBlock" + }, + "MessagesResultRole": { + "type": "string", + "enum": [ + "assistant" + ], + "title": "MessagesResultRole" + }, + "AnthropicRefusalStopDetailsCategory": { + "type": "string", + "enum": [ + "cyber", + "bio" + ], + "title": "AnthropicRefusalStopDetailsCategory" + }, + "AnthropicRefusalStopDetailsType": { + "type": "string", + "enum": [ + "refusal" + ], + "title": "AnthropicRefusalStopDetailsType" + }, + "AnthropicRefusalStopDetails": { + "type": "object", + "properties": { + "category": { + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicRefusalStopDetailsCategory" + }, + { + "type": "null" + } + ] + }, + "explanation": { + "type": [ + "string", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/AnthropicRefusalStopDetailsType" + } + }, + "required": [ + "category", + "explanation", + "type" + ], + "description": "Structured information about a refusal", + "title": "AnthropicRefusalStopDetails" + }, + "ORAnthropicStopReason": { + "type": "string", + "enum": [ + "end_turn", + "max_tokens", + "stop_sequence", + "tool_use", + "pause_turn", + "refusal", + "compaction" + ], + "title": "ORAnthropicStopReason" + }, + "MessagesResultType": { + "type": "string", + "enum": [ + "message" + ], + "title": "MessagesResultType" + }, + "AnthropicCacheCreation": { + "type": "object", + "properties": { + "ephemeral_1h_input_tokens": { + "type": "integer" + }, + "ephemeral_5m_input_tokens": { + "type": "integer" + } + }, + "required": [ + "ephemeral_1h_input_tokens", + "ephemeral_5m_input_tokens" + ], + "title": "AnthropicCacheCreation" + }, + "AnthropicServerToolUsage": { + "type": "object", + "properties": { + "web_fetch_requests": { + "type": "integer" + }, + "web_search_requests": { + "type": "integer" + } + }, + "required": [ + "web_fetch_requests", + "web_search_requests" + ], + "title": "AnthropicServerToolUsage" + }, + "AnthropicServiceTier": { + "type": "string", + "enum": [ + "standard", + "priority", + "batch" + ], + "title": "AnthropicServiceTier" + }, + "AnthropicIterationCacheCreation": { + "type": "object", + "properties": { + "ephemeral_1h_input_tokens": { + "type": "integer" + }, + "ephemeral_5m_input_tokens": { + "type": "integer" + } + }, + "title": "AnthropicIterationCacheCreation" + }, + "AnthropicCompactionUsageIterationType": { + "type": "string", + "enum": [ + "compaction" + ], + "title": "AnthropicCompactionUsageIterationType" + }, + "AnthropicCompactionUsageIteration": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + }, + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "type": { + "$ref": "#/components/schemas/AnthropicCompactionUsageIterationType" + } + }, + "required": [ + "type" + ], + "title": "AnthropicCompactionUsageIteration" + }, + "AnthropicMessageUsageIterationType": { + "type": "string", + "enum": [ + "message" + ], + "title": "AnthropicMessageUsageIterationType" + }, + "AnthropicMessageUsageIteration": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + }, + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "type": { + "$ref": "#/components/schemas/AnthropicMessageUsageIterationType" + } + }, + "required": [ + "type" + ], + "title": "AnthropicMessageUsageIteration" + }, + "AnthropicAdvisorMessageUsageIterationType": { + "type": "string", + "enum": [ + "advisor_message" + ], + "title": "AnthropicAdvisorMessageUsageIterationType" + }, + "AnthropicAdvisorMessageUsageIteration": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + }, + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "model": { + "type": "string" + }, + "type": { + "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIterationType" + } + }, + "required": [ + "model", + "type" + ], + "title": "AnthropicAdvisorMessageUsageIteration" + }, + "AnthropicUnknownUsageIteration": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicIterationCacheCreation" + }, + "cache_creation_input_tokens": { + "type": "integer" + }, + "cache_read_input_tokens": { + "type": "integer" + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "AnthropicUnknownUsageIteration" + }, + "AnthropicUsageIteration": { + "oneOf": [ + { + "$ref": "#/components/schemas/AnthropicCompactionUsageIteration" + }, + { + "$ref": "#/components/schemas/AnthropicMessageUsageIteration" + }, + { + "$ref": "#/components/schemas/AnthropicAdvisorMessageUsageIteration" + }, + { + "$ref": "#/components/schemas/AnthropicUnknownUsageIteration" + } + ], + "title": "AnthropicUsageIteration" + }, + "MessagesResultUsage": { + "type": "object", + "properties": { + "cache_creation": { + "$ref": "#/components/schemas/AnthropicCacheCreation" + }, + "cache_creation_input_tokens": { + "type": [ + "integer", + "null" + ] + }, + "cache_read_input_tokens": { + "type": [ + "integer", + "null" + ] + }, + "inference_geo": { + "type": [ + "string", + "null" + ] + }, + "input_tokens": { + "type": "integer" + }, + "output_tokens": { + "type": "integer" + }, + "server_tool_use": { + "$ref": "#/components/schemas/AnthropicServerToolUsage" + }, + "service_tier": { + "$ref": "#/components/schemas/AnthropicServiceTier" + }, + "iterations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AnthropicUsageIteration" + } + }, + "speed": { + "$ref": "#/components/schemas/AnthropicSpeed" + } + }, + "required": [ + "cache_creation", + "cache_creation_input_tokens", + "cache_read_input_tokens", + "inference_geo", + "input_tokens", + "output_tokens", + "server_tool_use", + "service_tier" + ], + "title": "MessagesResultUsage" + }, + "MessagesResultContextManagementAppliedEditsItems": { + "type": "object", + "properties": { + "type": { + "type": "string" + } + }, + "required": [ + "type" + ], + "title": "MessagesResultContextManagementAppliedEditsItems" + }, + "MessagesResultContextManagement": { + "type": "object", + "properties": { + "applied_edits": { + "type": "array", + "items": { + "$ref": "#/components/schemas/MessagesResultContextManagementAppliedEditsItems" + } + } + }, + "required": [ + "applied_edits" + ], + "title": "MessagesResultContextManagement" + }, + "MessagesResult": { + "type": "object", + "properties": { + "container": { + "$ref": "#/components/schemas/AnthropicContainer" + }, + "content": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ORAnthropicContentBlock" + } + }, + "id": { + "type": "string" + }, + "model": { + "type": "string" + }, + "role": { + "$ref": "#/components/schemas/MessagesResultRole" + }, + "stop_details": { + "$ref": "#/components/schemas/AnthropicRefusalStopDetails" + }, + "stop_reason": { + "$ref": "#/components/schemas/ORAnthropicStopReason" + }, + "stop_sequence": { + "type": [ + "string", + "null" + ] + }, + "type": { + "$ref": "#/components/schemas/MessagesResultType" + }, + "usage": { + "$ref": "#/components/schemas/MessagesResultUsage" + }, + "context_management": { + "oneOf": [ + { + "$ref": "#/components/schemas/MessagesResultContextManagement" + }, + { + "type": "null" + } + ] + }, + "openrouter_metadata": { + "$ref": "#/components/schemas/OpenRouterMetadata" + }, + "provider": { + "$ref": "#/components/schemas/ProviderName" + } + }, + "required": [ + "container", + "content", + "id", + "model", + "role", + "stop_details", + "stop_reason", + "stop_sequence", + "type", + "usage" + ], + "description": "Non-streaming response from the Anthropic Messages API with OpenRouter extensions", + "title": "MessagesResult" + }, + "MessagesErrorDetail": { + "type": "object", + "properties": { + "message": { + "type": "string" + }, + "type": { + "type": "string" + } + }, + "required": [ + "message", + "type" + ], + "title": "MessagesErrorDetail" + }, + "MessagesErrorResponseType": { + "type": "string", + "enum": [ + "error" + ], + "title": "MessagesErrorResponseType" + }, + "MessagesErrorResponse": { + "type": "object", + "properties": { + "error": { + "$ref": "#/components/schemas/MessagesErrorDetail" + }, + "type": { + "$ref": "#/components/schemas/MessagesErrorResponseType" + } + }, + "required": [ + "error", + "type" + ], + "title": "MessagesErrorResponse" + }, + "ModelsGetParametersCategory": { + "type": "string", + "enum": [ + "programming", + "roleplay", + "marketing", + "marketing/seo", + "technology", + "science", + "translation", + "legal", + "finance", + "health", + "trivia", + "academia" + ], + "description": "Filter models by use case category", + "title": "ModelsGetParametersCategory" + }, + "ModelsCountResponseData": { + "type": "object", + "properties": { + "count": { + "type": "integer", + "description": "Total number of available models" + } + }, + "required": [ + "count" + ], + "description": "Model count data", + "title": "ModelsCountResponseData" + }, + "ModelsCountResponse": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/ModelsCountResponseData", + "description": "Model count data" + } + }, + "required": [ + "data" + ], + "description": "Model count data", + "title": "ModelsCountResponse" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://otlp.arize.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "modelId": { + "type": "string" + }, + "spaceKey": { + "type": "string" + } + }, + "required": [ + "apiKey", + "modelId", + "spaceKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig" + }, + "ObservabilityFilterRulesConfigGroupsItemsLogic": { + "type": "string", + "enum": [ + "and", + "or" + ], + "default": "and", + "title": "ObservabilityFilterRulesConfigGroupsItemsLogic" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField": { + "type": "string", + "enum": [ + "model", + "provider", + "session_id", + "user_id", + "api_key_name", + "finish_reason", + "input", + "output", + "total_cost", + "total_tokens", + "prompt_tokens", + "completion_tokens" + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator": { + "type": "string", + "enum": [ + "equals", + "not_equals", + "contains", + "not_contains", + "regex", + "starts_with", + "ends_with", + "gt", + "lt", + "gte", + "lte", + "exists", + "not_exists" + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" + }, + "ObservabilityFilterRulesConfigGroupsItemsRulesItems": { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsField" + }, + "operator": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsOperator" + }, + "value": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItemsValue" + } + }, + "required": [ + "field", + "operator" + ], + "title": "ObservabilityFilterRulesConfigGroupsItemsRulesItems" + }, + "ObservabilityFilterRulesConfigGroupsItems": { + "type": "object", + "properties": { + "logic": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsLogic" + }, + "rules": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItemsRulesItems" + } + } + }, + "required": [ + "rules" + ], + "title": "ObservabilityFilterRulesConfigGroupsItems" + }, + "ObservabilityFilterRulesConfig": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true + }, + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfigGroupsItems" + } + } + }, + "required": [ + "groups" + ], + "description": "Optional structured filter rules controlling which events are forwarded.", + "title": "ObservabilityFilterRulesConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://api.braintrust.dev" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "projectId": { + "type": "string" + } + }, + "required": [ + "apiKey", + "projectId" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig": { + "type": "object", + "properties": { + "database": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "host": { + "type": "string" + }, + "password": { + "type": "string" + }, + "table": { + "type": "string", + "default": "OPENROUTER_TRACES" + }, + "username": { + "type": "string", + "description": "If you have not set a specific username in ClickHouse, simply type in 'default' below." + } + }, + "required": [ + "database", + "host", + "password", + "username" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string", + "description": "Datadog API key must have LLM Observability permissions. Create at: " + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "mlApp": { + "type": "string", + "description": "Name to identify your application in Datadog LLM Observability" + }, + "url": { + "type": "string", + "default": "https://api.us5.datadoghq.com", + "description": "Datadog API URL for your region (e.g., https://api.datadoghq.com, https://api.us3.datadoghq.com, https://api.datadoghq.eu)" + } + }, + "required": [ + "apiKey", + "mlApp" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://otlp-gateway-prod-us-west-0.grafana.net" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "instanceId": { + "type": "string" + } + }, + "required": [ + "apiKey", + "instanceId" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig": { + "type": "object", + "properties": { + "baseUrl": { + "type": "string", + "default": "https://us.cloud.langfuse.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "publicKey": { + "type": "string" + }, + "secretKey": { + "type": "string" + } + }, + "required": [ + "publicKey", + "secretKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "endpoint": { + "type": "string", + "default": "https://api.smith.langchain.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "project": { + "type": "string", + "default": "main", + "description": "The name for this project, such as pr-openrouter-demo. Defaults to \"main\" if not set." + }, + "workspaceId": { + "type": "string", + "description": "Required for org-scoped API keys. Find this in your LangSmith workspace settings." + } + }, + "required": [ + "apiKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion": { + "type": "string", + "enum": [ + "us", + "eu" + ], + "default": "us", + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig": { + "type": "object", + "properties": { + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "licenseKey": { + "type": "string" + }, + "region": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfigRegion" + } + }, + "required": [ + "licenseKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "projectName": { + "type": "string" + }, + "workspace": { + "type": "string" + } + }, + "required": [ + "apiKey", + "projectName", + "workspace" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig": { + "type": "object", + "properties": { + "endpoint": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers as a JSON object. For Axiom, use {\"Authorization\": \"Bearer xaat-xxx\", \"X-Axiom-Dataset\": \"your-dataset\"}" + } + }, + "required": [ + "endpoint" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "endpoint": { + "type": "string", + "default": "https://us.i.posthog.com" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + } + }, + "required": [ + "apiKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string", + "description": "Generate this in your Ramp integration settings." + }, + "baseUrl": { + "type": "string", + "default": "https://api.ramp.com/developer/v1/ai-usage/openrouter" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to Ramp." + } + }, + "required": [ + "apiKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config": { + "type": "object", + "properties": { + "accessKeyId": { + "type": "string" + }, + "bucketName": { + "type": "string" + }, + "endpoint": { + "type": "string", + "format": "uri", + "description": "Only for S3-compatible services like Cloudflare R2 (https://account-id.r2.cloudflarestorage.com) or MinIO. Leave blank for standard AWS S3." + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "pathTemplate": { + "type": "string", + "default": "{prefix}/{date}", + "description": "Template for S3 object path. The filename ({traceId}-{timestamp}.json) is automatically appended. Available variables: {prefix}, {date}, {year}, {month}, {day}, {apiKeyName}" + }, + "prefix": { + "type": "string", + "default": "openrouter-traces" + }, + "region": { + "type": "string" + }, + "secretAccessKey": { + "type": "string" + }, + "sessionToken": { + "type": "string" + } + }, + "required": [ + "accessKeyId", + "bucketName", + "secretAccessKey" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig": { + "type": "object", + "properties": { + "dsn": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "otlpEndpoint": { + "type": "string" + } + }, + "required": [ + "dsn", + "otlpEndpoint" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig": { + "type": "object", + "properties": { + "account": { + "type": "string" + }, + "database": { + "type": "string", + "default": "SNOWFLAKE_LEARNING_DB" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "schema": { + "type": "string", + "default": "PUBLIC" + }, + "table": { + "type": "string", + "default": "OPENROUTER_TRACES" + }, + "token": { + "type": "string" + }, + "warehouse": { + "type": "string", + "default": "COMPUTE_WH" + } + }, + "required": [ + "account", + "token" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig": { + "type": "object", + "properties": { + "apiKey": { + "type": "string" + }, + "baseUrl": { + "type": "string", + "default": "https://trace.wandb.ai" + }, + "entity": { + "type": "string" + }, + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Custom HTTP headers to include in requests to this destination." + }, + "project": { + "type": "string" + } + }, + "required": [ + "apiKey", + "entity", + "project" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod": { + "type": "string", + "enum": [ + "POST", + "PUT" + ], + "default": "POST", + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod" + }, + "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig": { + "type": "object", + "properties": { + "headers": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "method": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfigMethod" + }, + "url": { + "type": "string" + } + }, + "required": [ + "url" + ], + "title": "UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig" + }, + "ObservabilityDestination": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "arize" + ], + "description": "Discriminator value: arize" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "arize variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "braintrust" + ], + "description": "Discriminator value: braintrust" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "braintrust variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "clickhouse" + ], + "description": "Discriminator value: clickhouse" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "clickhouse variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "datadog" + ], + "description": "Discriminator value: datadog" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "datadog variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "grafana" + ], + "description": "Discriminator value: grafana" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "grafana variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "langfuse" + ], + "description": "Discriminator value: langfuse" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langfuse variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "langsmith" + ], + "description": "Discriminator value: langsmith" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langsmith variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "newrelic" + ], + "description": "Discriminator value: newrelic" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "newrelic variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "opik" + ], + "description": "Discriminator value: opik" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "opik variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "otel-collector" + ], + "description": "Discriminator value: otel-collector" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "otel-collector variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "posthog" + ], + "description": "Discriminator value: posthog" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "posthog variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ramp" + ], + "description": "Discriminator value: ramp" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "ramp variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "s3" + ], + "description": "Discriminator value: s3" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "s3 variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "sentry" + ], + "description": "Discriminator value: sentry" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "sentry variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "snowflake" + ], + "description": "Discriminator value: snowflake" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "snowflake variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "weave" + ], + "description": "Discriminator value: weave" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "weave variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "webhook" + ], + "description": "Discriminator value: webhook" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "webhook variant" + } + ], + "discriminator": { + "propertyName": "type" + }, + "title": "ObservabilityDestination" + }, + "ListObservabilityDestinationsResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/ObservabilityDestination" + }, + "description": "List of observability destinations." + }, + "total_count": { + "type": "integer", + "description": "Total number of destinations matching the filters." + } + }, + "required": [ + "data", + "total_count" + ], + "title": "ListObservabilityDestinationsResponse" + }, + "CreateObservabilityDestinationRequestType": { + "type": "string", + "enum": [ + "arize", + "braintrust", + "clickhouse", + "datadog", + "grafana", + "langfuse", + "langsmith", + "newrelic", + "opik", + "otel-collector", + "posthog", + "ramp", + "s3", + "sentry", + "snowflake", + "weave", + "webhook" + ], + "description": "The destination type. Only stable destination types are accepted.", + "title": "CreateObservabilityDestinationRequestType" + }, + "CreateObservabilityDestinationRequest": { + "type": "object", + "properties": { + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes whose traffic is forwarded. `null` or omitted means all keys. Must contain at least one hash if provided." + }, + "config": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Provider-specific configuration. The shape depends on `type` and is validated server-side." + }, + "enabled": { + "type": "boolean", + "default": true, + "description": "Whether this destination should be enabled immediately." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "name": { + "type": "string", + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "default": false, + "description": "When true, request/response bodies are not forwarded — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate between 0 and 1 (1 = 100%)." + }, + "type": { + "$ref": "#/components/schemas/CreateObservabilityDestinationRequestType", + "description": "The destination type. Only stable destination types are accepted." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "Optional workspace ID. Defaults to the authenticated entity's default workspace." + } + }, + "required": [ + "config", + "name", + "type" + ], + "title": "CreateObservabilityDestinationRequest" + }, + "CreateObservabilityDestinationResponseData": { + "oneOf": [ + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "arize" + ], + "description": "Discriminator value: arize" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "arize variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "braintrust" + ], + "description": "Discriminator value: braintrust" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "braintrust variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "clickhouse" + ], + "description": "Discriminator value: clickhouse" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "clickhouse variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "datadog" + ], + "description": "Discriminator value: datadog" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "datadog variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "grafana" + ], + "description": "Discriminator value: grafana" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "grafana variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "langfuse" + ], + "description": "Discriminator value: langfuse" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langfuse variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "langsmith" + ], + "description": "Discriminator value: langsmith" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "langsmith variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "newrelic" + ], + "description": "Discriminator value: newrelic" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "newrelic variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "opik" + ], + "description": "Discriminator value: opik" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "opik variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "otel-collector" + ], + "description": "Discriminator value: otel-collector" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "otel-collector variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "posthog" + ], + "description": "Discriminator value: posthog" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "posthog variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ramp" + ], + "description": "Discriminator value: ramp" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "ramp variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "s3" + ], + "description": "Discriminator value: s3" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "s3 variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "sentry" + ], + "description": "Discriminator value: sentry" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } + }, + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "sentry variant" + }, + { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "snowflake" + ], + "description": "Discriminator value: snowflake" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "otlpEndpoint": { - "type": "string" - } - }, - "required": [ - "dsn", - "otlpEndpoint" - ], - "title": "ObservabilitySentryDestinationConfig" - }, - "ObservabilitySentryDestinationType": { - "type": "string", - "enum": [ - "sentry" - ], - "title": "ObservabilitySentryDestinationType" - }, - "ObservabilitySnowflakeDestinationConfig": { - "type": "object", - "properties": { - "account": { - "type": "string" - }, - "database": { - "type": "string", - "default": "SNOWFLAKE_LEARNING_DB" + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "snowflake variant" }, - "headers": { + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "type": "string", + "enum": [ + "weave" + ], + "description": "Discriminator value: weave" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "schema": { - "type": "string", - "default": "PUBLIC" - }, - "table": { - "type": "string", - "default": "OPENROUTER_TRACES" - }, - "token": { - "type": "string" - }, - "warehouse": { - "type": "string", - "default": "COMPUTE_WH" - } - }, - "required": [ - "account", - "token" - ], - "title": "ObservabilitySnowflakeDestinationConfig" - }, - "ObservabilitySnowflakeDestinationType": { - "type": "string", - "enum": [ - "snowflake" - ], - "title": "ObservabilitySnowflakeDestinationType" - }, - "ObservabilityWeaveDestinationConfig": { - "type": "object", - "properties": { - "apiKey": { - "type": "string" - }, - "baseUrl": { - "type": "string", - "default": "https://trace.wandb.ai" - }, - "entity": { - "type": "string" + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "weave variant" }, - "headers": { + { "type": "object", - "additionalProperties": { - "type": "string" + "properties": { + "type": { + "type": "string", + "enum": [ + "webhook" + ], + "description": "Discriminator value: webhook" + }, + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." + }, + "config": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig" + }, + "created_at": { + "type": "string", + "description": "ISO timestamp of when the destination was created." + }, + "enabled": { + "type": "boolean", + "description": "Whether this destination is currently enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/ObservabilityFilterRulesConfig" + }, + "id": { + "type": "string", + "format": "uuid", + "description": "Stable public identifier for this destination." + }, + "name": { + "type": [ + "string", + "null" + ], + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded to this destination — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate for events sent to this destination, between 0 and 1 (1 = 100%)." + }, + "updated_at": { + "type": "string", + "description": "ISO timestamp of when the destination was last updated." + }, + "workspace_id": { + "type": "string", + "format": "uuid", + "description": "ID of the workspace this destination belongs to." + } }, - "description": "Custom HTTP headers to include in requests to this destination." - }, - "project": { - "type": "string" + "required": [ + "type", + "api_key_hashes", + "config", + "created_at", + "enabled", + "filter_rules", + "id", + "name", + "privacy_mode", + "sampling_rate", + "updated_at", + "workspace_id" + ], + "description": "webhook variant" } - }, - "required": [ - "apiKey", - "entity", - "project" - ], - "title": "ObservabilityWeaveDestinationConfig" - }, - "ObservabilityWeaveDestinationType": { - "type": "string", - "enum": [ - "weave" ], - "title": "ObservabilityWeaveDestinationType" - }, - "ObservabilityWebhookDestinationConfigMethod": { - "type": "string", - "enum": [ - "POST", - "PUT" - ], - "default": "POST", - "title": "ObservabilityWebhookDestinationConfigMethod" + "discriminator": { + "propertyName": "type" + }, + "description": "The newly created observability destination.", + "title": "CreateObservabilityDestinationResponseData" }, - "ObservabilityWebhookDestinationConfig": { + "CreateObservabilityDestinationResponse": { "type": "object", "properties": { - "headers": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "method": { - "$ref": "#/components/schemas/ObservabilityWebhookDestinationConfigMethod" - }, - "url": { - "type": "string" + "data": { + "$ref": "#/components/schemas/CreateObservabilityDestinationResponseData" } }, "required": [ - "url" - ], - "title": "ObservabilityWebhookDestinationConfig" - }, - "ObservabilityWebhookDestinationType": { - "type": "string", - "enum": [ - "webhook" + "data" ], - "title": "ObservabilityWebhookDestinationType" + "title": "CreateObservabilityDestinationResponse" }, - "ObservabilityDestination": { + "GetObservabilityDestinationResponseData": { "oneOf": [ { "type": "object", @@ -27010,7 +30574,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingArizeConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig" }, "created_at": { "type": "string", @@ -27091,7 +30655,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingBraintrustConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig" }, "created_at": { "type": "string", @@ -27172,7 +30736,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingClickhouseConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig" }, "created_at": { "type": "string", @@ -27253,7 +30817,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingDatadogConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig" }, "created_at": { "type": "string", @@ -27317,7 +30881,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityGrafanaDestinationType" + "type": "string", + "enum": [ + "grafana" + ], + "description": "Discriminator value: grafana" }, "api_key_hashes": { "type": [ @@ -27330,7 +30898,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityGrafanaDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig" }, "created_at": { "type": "string", @@ -27394,7 +30962,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityLangfuseDestinationType" + "type": "string", + "enum": [ + "langfuse" + ], + "description": "Discriminator value: langfuse" }, "api_key_hashes": { "type": [ @@ -27407,7 +30979,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityLangfuseDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig" }, "created_at": { "type": "string", @@ -27471,7 +31043,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityLangsmithDestinationType" + "type": "string", + "enum": [ + "langsmith" + ], + "description": "Discriminator value: langsmith" }, "api_key_hashes": { "type": [ @@ -27484,7 +31060,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityLangsmithDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig" }, "created_at": { "type": "string", @@ -27548,7 +31124,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityNewrelicDestinationType" + "type": "string", + "enum": [ + "newrelic" + ], + "description": "Discriminator value: newrelic" }, "api_key_hashes": { "type": [ @@ -27561,7 +31141,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityNewrelicDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig" }, "created_at": { "type": "string", @@ -27625,7 +31205,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityOpikDestinationType" + "type": "string", + "enum": [ + "opik" + ], + "description": "Discriminator value: opik" }, "api_key_hashes": { "type": [ @@ -27638,7 +31222,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityOpikDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig" }, "created_at": { "type": "string", @@ -27702,7 +31286,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationType" + "type": "string", + "enum": [ + "otel-collector" + ], + "description": "Discriminator value: otel-collector" }, "api_key_hashes": { "type": [ @@ -27715,7 +31303,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig" }, "created_at": { "type": "string", @@ -27779,7 +31367,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityPosthogDestinationType" + "type": "string", + "enum": [ + "posthog" + ], + "description": "Discriminator value: posthog" }, "api_key_hashes": { "type": [ @@ -27792,7 +31384,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityPosthogDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig" }, "created_at": { "type": "string", @@ -27856,7 +31448,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityRampDestinationType" + "type": "string", + "enum": [ + "ramp" + ], + "description": "Discriminator value: ramp" }, "api_key_hashes": { "type": [ @@ -27869,7 +31465,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityRampDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig" }, "created_at": { "type": "string", @@ -27933,7 +31529,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityS3DestinationType" + "type": "string", + "enum": [ + "s3" + ], + "description": "Discriminator value: s3" }, "api_key_hashes": { "type": [ @@ -27946,7 +31546,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityS3DestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config" }, "created_at": { "type": "string", @@ -28010,7 +31610,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilitySentryDestinationType" + "type": "string", + "enum": [ + "sentry" + ], + "description": "Discriminator value: sentry" }, "api_key_hashes": { "type": [ @@ -28023,7 +31627,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilitySentryDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig" }, "created_at": { "type": "string", @@ -28087,7 +31691,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationType" + "type": "string", + "enum": [ + "snowflake" + ], + "description": "Discriminator value: snowflake" }, "api_key_hashes": { "type": [ @@ -28100,7 +31708,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig" }, "created_at": { "type": "string", @@ -28164,7 +31772,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityWeaveDestinationType" + "type": "string", + "enum": [ + "weave" + ], + "description": "Discriminator value: weave" }, "api_key_hashes": { "type": [ @@ -28177,7 +31789,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityWeaveDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig" }, "created_at": { "type": "string", @@ -28241,7 +31853,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityWebhookDestinationType" + "type": "string", + "enum": [ + "webhook" + ], + "description": "Discriminator value: webhook" }, "api_key_hashes": { "type": [ @@ -28254,7 +31870,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityWebhookDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig" }, "created_at": { "type": "string", @@ -28318,30 +31934,196 @@ "discriminator": { "propertyName": "type" }, - "title": "ObservabilityDestination" + "description": "The observability destination.", + "title": "GetObservabilityDestinationResponseData" }, - "ListObservabilityDestinationsResponse": { + "GetObservabilityDestinationResponse": { "type": "object", "properties": { "data": { + "$ref": "#/components/schemas/GetObservabilityDestinationResponseData" + } + }, + "required": [ + "data" + ], + "title": "GetObservabilityDestinationResponse" + }, + "DeleteObservabilityDestinationResponse": { + "type": "object", + "properties": { + "deleted": { + "type": "boolean", + "enum": [ + true + ], + "description": "Always `true` on success." + } + }, + "required": [ + "deleted" + ], + "title": "DeleteObservabilityDestinationResponse" + }, + "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic": { + "type": "string", + "enum": [ + "and", + "or" + ], + "default": "and", + "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic" + }, + "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField": { + "type": "string", + "enum": [ + "model", + "provider", + "session_id", + "user_id", + "api_key_name", + "finish_reason", + "input", + "output", + "total_cost", + "total_tokens", + "prompt_tokens", + "completion_tokens" + ], + "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField" + }, + "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator": { + "type": "string", + "enum": [ + "equals", + "not_equals", + "contains", + "not_contains", + "regex", + "starts_with", + "ends_with", + "gt", + "lt", + "gte", + "lte", + "exists", + "not_exists" + ], + "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator" + }, + "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number", + "format": "double" + } + ], + "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue" + }, + "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems": { + "type": "object", + "properties": { + "field": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsField" + }, + "operator": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsOperator" + }, + "value": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItemsValue" + } + }, + "required": [ + "field", + "operator" + ], + "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems" + }, + "UpdateObservabilityDestinationRequestFilterRulesGroupsItems": { + "type": "object", + "properties": { + "logic": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsLogic" + }, + "rules": { "type": "array", "items": { - "$ref": "#/components/schemas/ObservabilityDestination" - }, - "description": "List of observability destinations." + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItemsRulesItems" + } + } + }, + "required": [ + "rules" + ], + "title": "UpdateObservabilityDestinationRequestFilterRulesGroupsItems" + }, + "UpdateObservabilityDestinationRequestFilterRules": { + "type": "object", + "properties": { + "enabled": { + "type": "boolean", + "default": true }, - "total_count": { - "type": "integer", - "description": "Total number of destinations matching the filters." + "groups": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRulesGroupsItems" + } } }, "required": [ - "data", - "total_count" + "groups" ], - "title": "ListObservabilityDestinationsResponse" + "description": "Optional structured filter rules. `null` clears the rules. Omitting keeps the current value.", + "title": "UpdateObservabilityDestinationRequestFilterRules" }, - "GetObservabilityDestinationResponseData": { + "UpdateObservabilityDestinationRequest": { + "type": "object", + "properties": { + "api_key_hashes": { + "type": [ + "array", + "null" + ], + "items": { + "type": "string" + }, + "description": "Optional allowlist of OpenRouter API key hashes. `null` clears the filter (all keys). Omitting leaves the current value. Must contain at least one hash if provided." + }, + "config": { + "type": "object", + "additionalProperties": { + "description": "Any type" + }, + "description": "Provider-specific configuration fields to update. Masked values are ignored; unset fields keep their current value." + }, + "enabled": { + "type": "boolean", + "description": "Whether the destination is enabled." + }, + "filter_rules": { + "$ref": "#/components/schemas/UpdateObservabilityDestinationRequestFilterRules" + }, + "name": { + "type": "string", + "description": "Human-readable name for the destination." + }, + "privacy_mode": { + "type": "boolean", + "description": "When true, request/response bodies are not forwarded — only metadata." + }, + "sampling_rate": { + "type": "number", + "format": "double", + "description": "Sampling rate between 0 and 1 (1 = 100%)." + } + }, + "title": "UpdateObservabilityDestinationRequest" + }, + "UpdateObservabilityDestinationResponseData": { "oneOf": [ { "type": "object", @@ -28364,7 +32146,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingArizeConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingArizeConfig" }, "created_at": { "type": "string", @@ -28445,7 +32227,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingBraintrustConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingBraintrustConfig" }, "created_at": { "type": "string", @@ -28526,7 +32308,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingClickhouseConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingClickhouseConfig" }, "created_at": { "type": "string", @@ -28607,7 +32389,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityDestinationDiscriminatorMappingDatadogConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingDatadogConfig" }, "created_at": { "type": "string", @@ -28671,7 +32453,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityGrafanaDestinationType" + "type": "string", + "enum": [ + "grafana" + ], + "description": "Discriminator value: grafana" }, "api_key_hashes": { "type": [ @@ -28684,7 +32470,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityGrafanaDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingGrafanaConfig" }, "created_at": { "type": "string", @@ -28748,7 +32534,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityLangfuseDestinationType" + "type": "string", + "enum": [ + "langfuse" + ], + "description": "Discriminator value: langfuse" }, "api_key_hashes": { "type": [ @@ -28761,7 +32551,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityLangfuseDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangfuseConfig" }, "created_at": { "type": "string", @@ -28825,7 +32615,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityLangsmithDestinationType" + "type": "string", + "enum": [ + "langsmith" + ], + "description": "Discriminator value: langsmith" }, "api_key_hashes": { "type": [ @@ -28838,7 +32632,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityLangsmithDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingLangsmithConfig" }, "created_at": { "type": "string", @@ -28902,7 +32696,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityNewrelicDestinationType" + "type": "string", + "enum": [ + "newrelic" + ], + "description": "Discriminator value: newrelic" }, "api_key_hashes": { "type": [ @@ -28915,7 +32713,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityNewrelicDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingNewrelicConfig" }, "created_at": { "type": "string", @@ -28979,7 +32777,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityOpikDestinationType" + "type": "string", + "enum": [ + "opik" + ], + "description": "Discriminator value: opik" }, "api_key_hashes": { "type": [ @@ -28992,7 +32794,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityOpikDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOpikConfig" }, "created_at": { "type": "string", @@ -29056,7 +32858,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationType" + "type": "string", + "enum": [ + "otel-collector" + ], + "description": "Discriminator value: otel-collector" }, "api_key_hashes": { "type": [ @@ -29069,7 +32875,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityOtelCollectorDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingOtelCollectorConfig" }, "created_at": { "type": "string", @@ -29133,7 +32939,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityPosthogDestinationType" + "type": "string", + "enum": [ + "posthog" + ], + "description": "Discriminator value: posthog" }, "api_key_hashes": { "type": [ @@ -29146,7 +32956,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityPosthogDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingPosthogConfig" }, "created_at": { "type": "string", @@ -29210,7 +33020,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityRampDestinationType" + "type": "string", + "enum": [ + "ramp" + ], + "description": "Discriminator value: ramp" }, "api_key_hashes": { "type": [ @@ -29223,7 +33037,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityRampDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingRampConfig" }, "created_at": { "type": "string", @@ -29287,7 +33101,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityS3DestinationType" + "type": "string", + "enum": [ + "s3" + ], + "description": "Discriminator value: s3" }, "api_key_hashes": { "type": [ @@ -29300,7 +33118,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityS3DestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingS3Config" }, "created_at": { "type": "string", @@ -29364,7 +33182,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilitySentryDestinationType" + "type": "string", + "enum": [ + "sentry" + ], + "description": "Discriminator value: sentry" }, "api_key_hashes": { "type": [ @@ -29377,7 +33199,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilitySentryDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSentryConfig" }, "created_at": { "type": "string", @@ -29441,7 +33263,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationType" + "type": "string", + "enum": [ + "snowflake" + ], + "description": "Discriminator value: snowflake" }, "api_key_hashes": { "type": [ @@ -29454,7 +33280,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilitySnowflakeDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingSnowflakeConfig" }, "created_at": { "type": "string", @@ -29518,7 +33344,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityWeaveDestinationType" + "type": "string", + "enum": [ + "weave" + ], + "description": "Discriminator value: weave" }, "api_key_hashes": { "type": [ @@ -29531,7 +33361,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityWeaveDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWeaveConfig" }, "created_at": { "type": "string", @@ -29595,7 +33425,11 @@ "type": "object", "properties": { "type": { - "$ref": "#/components/schemas/ObservabilityWebhookDestinationType" + "type": "string", + "enum": [ + "webhook" + ], + "description": "Discriminator value: webhook" }, "api_key_hashes": { "type": [ @@ -29608,7 +33442,7 @@ "description": "Optional allowlist of OpenRouter API key hashes (`api_keys.hash`) whose traffic is forwarded to this destination. `null` means all keys." }, "config": { - "$ref": "#/components/schemas/ObservabilityWebhookDestinationConfig" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseDataDiscriminatorMappingWebhookConfig" }, "created_at": { "type": "string", @@ -29672,20 +33506,20 @@ "discriminator": { "propertyName": "type" }, - "description": "The observability destination.", - "title": "GetObservabilityDestinationResponseData" + "description": "The updated observability destination.", + "title": "UpdateObservabilityDestinationResponseData" }, - "GetObservabilityDestinationResponse": { + "UpdateObservabilityDestinationResponse": { "type": "object", "properties": { "data": { - "$ref": "#/components/schemas/GetObservabilityDestinationResponseData" + "$ref": "#/components/schemas/UpdateObservabilityDestinationResponseData" } }, "required": [ "data" ], - "title": "GetObservabilityDestinationResponse" + "title": "UpdateObservabilityDestinationResponse" }, "OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole": { "type": "string",