From 78605419150ff2e4100500445d6d4a8445de124a Mon Sep 17 00:00:00 2001 From: Nicolas Kick Date: Thu, 28 Sep 2023 12:11:32 +0200 Subject: [PATCH 1/2] Update CreateApi to 0.2.0 --- Makefile | 2 +- Package.swift | 6 +- Package@swift-5.5.swift | 2 +- Plugins/CreateAPI/Plugin.swift | 6 +- Sources/Endpoint.swift | 54 +- Sources/OpenAPI/.create-api.yml | 52 - .../OpenAPI/Generated/Entities/Actor.swift | 10 +- .../Generated/Entities/ActorResponse.swift | 2 - .../Generated/Entities/ActorsResponse.swift | 2 - .../Entities/AgeRatingDeclaration.swift | 10 +- .../AgeRatingDeclarationResponse.swift | 2 - .../AgeRatingDeclarationUpdateRequest.swift | 2 - ...ngDeclarationWithoutIncludesResponse.swift | 27 + Sources/OpenAPI/Generated/Entities/App.swift | 164 +- .../Generated/Entities/AppAvailability.swift | 10 +- .../AppAvailabilityCreateRequest.swift | 2 - .../Entities/AppAvailabilityResponse.swift | 7 +- .../Entities/AppAvailabilityV2.swift | 152 + .../AppAvailabilityV2CreateRequest.swift | 184 + .../Entities/AppAvailabilityV2Response.swift | 31 + .../AppBetaTestersLinkagesRequest.swift | 2 - .../Entities/AppCategoriesResponse.swift | 2 - ...AppCategoriesWithoutIncludesResponse.swift | 30 + .../Generated/Entities/AppCategory.swift | 10 +- .../Entities/AppCategoryResponse.swift | 2 - .../AppCategoryWithoutIncludesResponse.swift | 27 + .../OpenAPI/Generated/Entities/AppClip.swift | 10 +- .../Generated/Entities/AppClipAction.swift | 2 - .../Entities/AppClipAdvancedExperience.swift | 10 +- ...pClipAdvancedExperienceCreateRequest.swift | 2 - .../AppClipAdvancedExperienceImage.swift | 10 +- ...AdvancedExperienceImageCreateRequest.swift | 2 - ...pClipAdvancedExperienceImageResponse.swift | 2 - ...AdvancedExperienceImageUpdateRequest.swift | 2 - .../AppClipAdvancedExperienceLanguage.swift | 2 - ...ppClipAdvancedExperienceLocalization.swift | 8 +- ...edExperienceLocalizationInlineCreate.swift | 2 - .../AppClipAdvancedExperienceResponse.swift | 7 +- ...pClipAdvancedExperienceUpdateRequest.swift | 2 - .../AppClipAdvancedExperiencesResponse.swift | 7 +- .../AppClipAppStoreReviewDetail.swift | 10 +- ...lipAppStoreReviewDetailCreateRequest.swift | 2 - .../AppClipAppStoreReviewDetailResponse.swift | 2 - ...lipAppStoreReviewDetailUpdateRequest.swift | 2 - .../Entities/AppClipDefaultExperience.swift | 10 +- ...ppClipDefaultExperienceCreateRequest.swift | 2 - ...AppClipDefaultExperienceLocalization.swift | 10 +- ...tExperienceLocalizationCreateRequest.swift | 2 - ...efaultExperienceLocalizationResponse.swift | 7 +- ...tExperienceLocalizationUpdateRequest.swift | 2 - ...faultExperienceLocalizationsResponse.swift | 7 +- ...aseWithAppStoreVersionLinkageRequest.swift | 2 - ...seWithAppStoreVersionLinkageResponse.swift | 2 - .../AppClipDefaultExperienceResponse.swift | 7 +- ...ppClipDefaultExperienceUpdateRequest.swift | 2 - .../AppClipDefaultExperiencesResponse.swift | 7 +- .../Entities/AppClipDomainStatus.swift | 8 +- .../AppClipDomainStatusResponse.swift | 2 - .../Entities/AppClipHeaderImage.swift | 10 +- .../AppClipHeaderImageCreateRequest.swift | 2 - .../Entities/AppClipHeaderImageResponse.swift | 2 - .../AppClipHeaderImageUpdateRequest.swift | 2 - .../Generated/Entities/AppClipResponse.swift | 7 +- .../Generated/Entities/AppClipsResponse.swift | 7 +- .../Entities/AppCustomProductPage.swift | 10 +- .../AppCustomProductPageCreateRequest.swift | 7 +- .../AppCustomProductPageLocalization.swift | 10 +- ...ProductPageLocalizationCreateRequest.swift | 2 - ...mProductPageLocalizationInlineCreate.swift | 2 - ...ustomProductPageLocalizationResponse.swift | 7 +- ...ProductPageLocalizationUpdateRequest.swift | 2 - ...stomProductPageLocalizationsResponse.swift | 7 +- .../AppCustomProductPageResponse.swift | 7 +- .../AppCustomProductPageUpdateRequest.swift | 2 - .../AppCustomProductPageVersion.swift | 10 +- ...ustomProductPageVersionCreateRequest.swift | 2 - ...CustomProductPageVersionInlineCreate.swift | 2 - .../AppCustomProductPageVersionResponse.swift | 7 +- ...AppCustomProductPageVersionsResponse.swift | 7 +- .../AppCustomProductPagesResponse.swift | 7 +- .../Entities/AppEncryptionDeclaration.swift | 10 +- ...tionDeclarationBuildsLinkagesRequest.swift | 2 - .../AppEncryptionDeclarationDocument.swift | 10 +- ...tionDeclarationDocumentCreateRequest.swift | 2 - ...ncryptionDeclarationDocumentResponse.swift | 2 - ...tionDeclarationDocumentUpdateRequest.swift | 2 - .../AppEncryptionDeclarationResponse.swift | 7 +- .../AppEncryptionDeclarationState.swift | 2 - ...onDeclarationWithoutIncludesResponse.swift | 27 + .../AppEncryptionDeclarationsResponse.swift | 7 +- .../OpenAPI/Generated/Entities/AppEvent.swift | 10 +- .../Entities/AppEventAssetType.swift | 2 - .../Entities/AppEventCreateRequest.swift | 2 - .../Entities/AppEventLocalization.swift | 10 +- .../AppEventLocalizationCreateRequest.swift | 2 - .../AppEventLocalizationResponse.swift | 7 +- .../AppEventLocalizationUpdateRequest.swift | 2 - .../AppEventLocalizationsResponse.swift | 7 +- .../Generated/Entities/AppEventResponse.swift | 2 - .../Entities/AppEventScreenshot.swift | 10 +- .../AppEventScreenshotCreateRequest.swift | 2 - .../Entities/AppEventScreenshotResponse.swift | 2 - .../AppEventScreenshotUpdateRequest.swift | 2 - .../AppEventScreenshotsResponse.swift | 2 - .../Entities/AppEventUpdateRequest.swift | 2 - .../Entities/AppEventVideoClip.swift | 10 +- .../AppEventVideoClipCreateRequest.swift | 2 - .../Entities/AppEventVideoClipResponse.swift | 2 - .../AppEventVideoClipUpdateRequest.swift | 2 - .../Entities/AppEventVideoClipsResponse.swift | 2 - .../Entities/AppEventsResponse.swift | 2 - .../OpenAPI/Generated/Entities/AppInfo.swift | 10 +- .../Entities/AppInfoLocalization.swift | 10 +- .../AppInfoLocalizationCreateRequest.swift | 2 - .../AppInfoLocalizationResponse.swift | 2 - .../AppInfoLocalizationUpdateRequest.swift | 2 - .../AppInfoLocalizationsResponse.swift | 2 - .../Generated/Entities/AppInfoResponse.swift | 7 +- .../Entities/AppInfoUpdateRequest.swift | 2 - .../Generated/Entities/AppInfosResponse.swift | 7 +- .../Entities/AppMediaAssetState.swift | 2 - .../Entities/AppMediaStateError.swift | 2 - .../Generated/Entities/AppPreOrder.swift | 10 +- .../Entities/AppPreOrderCreateRequest.swift | 2 - .../Entities/AppPreOrderResponse.swift | 2 - .../Entities/AppPreOrderUpdateRequest.swift | 2 - .../AppPreOrderWithoutIncludesResponse.swift | 27 + .../Generated/Entities/AppPreview.swift | 10 +- .../Entities/AppPreviewCreateRequest.swift | 2 - .../Entities/AppPreviewResponse.swift | 2 - .../Generated/Entities/AppPreviewSet.swift | 10 +- ...PreviewSetAppPreviewsLinkagesRequest.swift | 2 - ...reviewSetAppPreviewsLinkagesResponse.swift | 2 - .../Entities/AppPreviewSetCreateRequest.swift | 2 - .../Entities/AppPreviewSetResponse.swift | 7 +- .../Entities/AppPreviewSetsResponse.swift | 7 +- .../Entities/AppPreviewUpdateRequest.swift | 2 - .../Entities/AppPreviewsResponse.swift | 2 - .../OpenAPI/Generated/Entities/AppPrice.swift | 10 +- .../Entities/AppPriceInlineCreate.swift | 2 - .../Generated/Entities/AppPricePoint.swift | 10 +- .../Entities/AppPricePointResponse.swift | 7 +- .../Generated/Entities/AppPricePointV2.swift | 8 +- .../Generated/Entities/AppPricePointV3.swift | 10 +- .../Entities/AppPricePointV3Response.swift | 7 +- .../Entities/AppPricePointsResponse.swift | 7 +- .../Entities/AppPricePointsV2Response.swift | 7 +- .../Entities/AppPricePointsV3Response.swift | 7 +- .../Generated/Entities/AppPriceResponse.swift | 7 +- .../Generated/Entities/AppPriceSchedule.swift | 10 +- .../AppPriceScheduleCreateRequest.swift | 7 +- .../Entities/AppPriceScheduleResponse.swift | 7 +- .../Generated/Entities/AppPriceTier.swift | 10 +- .../Entities/AppPriceTierResponse.swift | 2 - .../Entities/AppPriceTiersResponse.swift | 2 - .../Generated/Entities/AppPriceV2.swift | 8 +- .../Entities/AppPriceV2InlineCreate.swift | 2 - .../Entities/AppPricesResponse.swift | 7 +- .../Entities/AppPricesV2Response.swift | 7 +- .../AppPromotedPurchasesLinkagesRequest.swift | 2 - ...AppPromotedPurchasesLinkagesResponse.swift | 2 - .../Generated/Entities/AppResponse.swift | 25 +- .../Generated/Entities/AppScreenshot.swift | 10 +- .../Entities/AppScreenshotCreateRequest.swift | 2 - .../Entities/AppScreenshotResponse.swift | 2 - .../Generated/Entities/AppScreenshotSet.swift | 10 +- ...shotSetAppScreenshotsLinkagesRequest.swift | 2 - ...hotSetAppScreenshotsLinkagesResponse.swift | 2 - .../AppScreenshotSetCreateRequest.swift | 2 - .../Entities/AppScreenshotSetResponse.swift | 7 +- .../Entities/AppScreenshotSetsResponse.swift | 7 +- .../Entities/AppScreenshotUpdateRequest.swift | 2 - .../Entities/AppScreenshotsResponse.swift | 2 - .../Entities/AppStoreAgeRating.swift | 2 - .../Entities/AppStoreReviewAttachment.swift | 10 +- ...ppStoreReviewAttachmentCreateRequest.swift | 2 - .../AppStoreReviewAttachmentResponse.swift | 2 - ...ppStoreReviewAttachmentUpdateRequest.swift | 2 - .../AppStoreReviewAttachmentsResponse.swift | 2 - .../Entities/AppStoreReviewDetail.swift | 10 +- .../AppStoreReviewDetailCreateRequest.swift | 2 - .../AppStoreReviewDetailResponse.swift | 7 +- .../AppStoreReviewDetailUpdateRequest.swift | 2 - .../Generated/Entities/AppStoreVersion.swift | 10 +- ...pClipDefaultExperienceLinkageRequest.swift | 2 - ...ClipDefaultExperienceLinkageResponse.swift | 2 - .../AppStoreVersionBuildLinkageRequest.swift | 2 - .../AppStoreVersionBuildLinkageResponse.swift | 2 - .../AppStoreVersionCreateRequest.swift | 2 - .../Entities/AppStoreVersionExperiment.swift | 10 +- ...pStoreVersionExperimentCreateRequest.swift | 2 - .../AppStoreVersionExperimentResponse.swift | 7 +- .../AppStoreVersionExperimentTreatment.swift | 10 +- ...sionExperimentTreatmentCreateRequest.swift | 2 - ...rsionExperimentTreatmentLocalization.swift | 10 +- ...ntTreatmentLocalizationCreateRequest.swift | 2 - ...erimentTreatmentLocalizationResponse.swift | 7 +- ...rimentTreatmentLocalizationsResponse.swift | 7 +- ...reVersionExperimentTreatmentResponse.swift | 7 +- ...sionExperimentTreatmentUpdateRequest.swift | 2 - ...eVersionExperimentTreatmentsResponse.swift | 7 +- ...pStoreVersionExperimentUpdateRequest.swift | 2 - .../AppStoreVersionExperimentV2.swift | 10 +- ...toreVersionExperimentV2CreateRequest.swift | 2 - .../AppStoreVersionExperimentV2Response.swift | 7 +- ...toreVersionExperimentV2UpdateRequest.swift | 2 - .../AppStoreVersionExperimentsResponse.swift | 7 +- ...AppStoreVersionExperimentsV2Response.swift | 7 +- .../AppStoreVersionLocalization.swift | 10 +- ...toreVersionLocalizationCreateRequest.swift | 2 - .../AppStoreVersionLocalizationResponse.swift | 7 +- ...toreVersionLocalizationUpdateRequest.swift | 2 - ...AppStoreVersionLocalizationsResponse.swift | 7 +- ...LocalizationsWithoutIncludesResponse.swift | 30 + .../AppStoreVersionPhasedRelease.swift | 10 +- ...oreVersionPhasedReleaseCreateRequest.swift | 2 - ...AppStoreVersionPhasedReleaseResponse.swift | 2 - ...oreVersionPhasedReleaseUpdateRequest.swift | 2 - ...PhasedReleaseWithoutIncludesResponse.swift | 27 + .../Entities/AppStoreVersionPromotion.swift | 8 +- ...ppStoreVersionPromotionCreateRequest.swift | 2 - .../AppStoreVersionPromotionResponse.swift | 2 - .../AppStoreVersionReleaseRequest.swift | 8 +- ...reVersionReleaseRequestCreateRequest.swift | 2 - ...ppStoreVersionReleaseRequestResponse.swift | 2 - .../Entities/AppStoreVersionResponse.swift | 7 +- .../Entities/AppStoreVersionState.swift | 2 - .../Entities/AppStoreVersionSubmission.swift | 10 +- ...pStoreVersionSubmissionCreateRequest.swift | 2 - .../AppStoreVersionSubmissionResponse.swift | 2 - .../AppStoreVersionUpdateRequest.swift | 2 - .../Entities/AppStoreVersionsResponse.swift | 7 +- .../Generated/Entities/AppUpdateRequest.swift | 2 - .../Entities/AppWithoutIncludesResponse.swift | 27 + .../Generated/Entities/AppsResponse.swift | 25 +- .../AppsWithoutIncludesResponse.swift | 30 + .../Entities/BetaAppClipInvocation.swift | 10 +- .../BetaAppClipInvocationCreateRequest.swift | 2 - .../BetaAppClipInvocationLocalization.swift | 10 +- ...pInvocationLocalizationCreateRequest.swift | 2 - ...ipInvocationLocalizationInlineCreate.swift | 2 - ...ppClipInvocationLocalizationResponse.swift | 2 - ...pInvocationLocalizationUpdateRequest.swift | 2 - .../BetaAppClipInvocationResponse.swift | 2 - .../BetaAppClipInvocationUpdateRequest.swift | 2 - .../BetaAppClipInvocationsResponse.swift | 2 - .../Entities/BetaAppLocalization.swift | 10 +- .../BetaAppLocalizationCreateRequest.swift | 2 - .../BetaAppLocalizationResponse.swift | 2 - .../BetaAppLocalizationUpdateRequest.swift | 2 - .../BetaAppLocalizationsResponse.swift | 2 - ...LocalizationsWithoutIncludesResponse.swift | 30 + .../Entities/BetaAppReviewDetail.swift | 10 +- .../BetaAppReviewDetailResponse.swift | 2 - .../BetaAppReviewDetailUpdateRequest.swift | 2 - ...pReviewDetailWithoutIncludesResponse.swift | 27 + .../BetaAppReviewDetailsResponse.swift | 2 - .../Entities/BetaAppReviewSubmission.swift | 10 +- ...BetaAppReviewSubmissionCreateRequest.swift | 2 - .../BetaAppReviewSubmissionResponse.swift | 2 - ...iewSubmissionWithoutIncludesResponse.swift | 27 + .../BetaAppReviewSubmissionsResponse.swift | 2 - .../Entities/BetaBuildLocalization.swift | 10 +- .../BetaBuildLocalizationCreateRequest.swift | 2 - .../BetaBuildLocalizationResponse.swift | 2 - .../BetaBuildLocalizationUpdateRequest.swift | 2 - .../BetaBuildLocalizationsResponse.swift | 2 - ...LocalizationsWithoutIncludesResponse.swift | 30 + .../Generated/Entities/BetaGroup.swift | 10 +- .../BetaGroupBetaTestersLinkagesRequest.swift | 2 - ...BetaGroupBetaTestersLinkagesResponse.swift | 2 - .../BetaGroupBuildsLinkagesRequest.swift | 2 - .../BetaGroupBuildsLinkagesResponse.swift | 2 - .../Entities/BetaGroupCreateRequest.swift | 2 - .../Entities/BetaGroupResponse.swift | 7 +- .../Entities/BetaGroupUpdateRequest.swift | 2 - .../Entities/BetaGroupsResponse.swift | 7 +- .../BetaGroupsWithoutIncludesResponse.swift | 30 + .../Generated/Entities/BetaInviteType.swift | 2 - .../Entities/BetaLicenseAgreement.swift | 10 +- .../BetaLicenseAgreementResponse.swift | 2 - .../BetaLicenseAgreementUpdateRequest.swift | 2 - ...enseAgreementWithoutIncludesResponse.swift | 27 + .../BetaLicenseAgreementsResponse.swift | 2 - .../Generated/Entities/BetaReviewState.swift | 2 - .../Generated/Entities/BetaTester.swift | 10 +- .../BetaTesterAppsLinkagesRequest.swift | 2 - .../BetaTesterAppsLinkagesResponse.swift | 2 - .../BetaTesterBetaGroupsLinkagesRequest.swift | 2 - ...BetaTesterBetaGroupsLinkagesResponse.swift | 2 - .../BetaTesterBuildsLinkagesRequest.swift | 2 - .../BetaTesterBuildsLinkagesResponse.swift | 2 - .../Entities/BetaTesterCreateRequest.swift | 2 - .../Entities/BetaTesterInvitation.swift | 8 +- .../BetaTesterInvitationCreateRequest.swift | 2 - .../BetaTesterInvitationResponse.swift | 2 - .../Entities/BetaTesterResponse.swift | 7 +- .../Entities/BetaTestersResponse.swift | 7 +- .../BetaTestersWithoutIncludesResponse.swift | 30 + .../Generated/Entities/BrazilAgeRating.swift | 2 - .../OpenAPI/Generated/Entities/Build.swift | 10 +- ...pEncryptionDeclarationLinkageRequest.swift | 2 - ...EncryptionDeclarationLinkageResponse.swift | 2 - .../Entities/BuildAudienceType.swift | 2 - .../Generated/Entities/BuildBetaDetail.swift | 10 +- .../Entities/BuildBetaDetailResponse.swift | 2 - .../BuildBetaDetailUpdateRequest.swift | 2 - ...ildBetaDetailWithoutIncludesResponse.swift | 27 + .../Entities/BuildBetaDetailsResponse.swift | 2 - .../BuildBetaGroupsLinkagesRequest.swift | 2 - .../Entities/BuildBetaNotification.swift | 8 +- .../BuildBetaNotificationCreateRequest.swift | 2 - .../BuildBetaNotificationResponse.swift | 2 - .../Generated/Entities/BuildBundle.swift | 8 +- .../Entities/BuildBundleFileSize.swift | 8 +- .../BuildBundleFileSizesResponse.swift | 2 - .../Generated/Entities/BuildIcon.swift | 8 +- .../Entities/BuildIconsResponse.swift | 2 - .../BuildIconsWithoutIncludesResponse.swift | 30 + ...uildIndividualTestersLinkagesRequest.swift | 2 - ...ildIndividualTestersLinkagesResponse.swift | 2 - .../Generated/Entities/BuildResponse.swift | 15 +- .../Entities/BuildUpdateRequest.swift | 2 - .../BuildWithoutIncludesResponse.swift | 27 + .../Generated/Entities/BuildsResponse.swift | 15 +- .../BuildsWithoutIncludesResponse.swift | 30 + .../OpenAPI/Generated/Entities/BundleID.swift | 10 +- .../BundleIDCapabilitiesResponse.swift | 2 - ...DCapabilitiesWithoutIncludesResponse.swift | 30 + .../Entities/BundleIDCapability.swift | 10 +- .../BundleIDCapabilityCreateRequest.swift | 2 - .../Entities/BundleIDCapabilityResponse.swift | 2 - .../BundleIDCapabilityUpdateRequest.swift | 2 - .../Entities/BundleIDCreateRequest.swift | 2 - .../Generated/Entities/BundleIDPlatform.swift | 2 - .../Generated/Entities/BundleIDResponse.swift | 7 +- .../Entities/BundleIDUpdateRequest.swift | 2 - .../BundleIDWithoutIncludesResponse.swift | 27 + .../Entities/BundleIDsResponse.swift | 7 +- .../Generated/Entities/CapabilityOption.swift | 2 - .../Entities/CapabilitySetting.swift | 2 - .../Generated/Entities/CapabilityType.swift | 2 - .../Generated/Entities/Certificate.swift | 10 +- .../Entities/CertificateCreateRequest.swift | 2 - .../Entities/CertificateResponse.swift | 2 - .../Generated/Entities/CertificateType.swift | 2 - .../Entities/CertificatesResponse.swift | 2 - .../CertificatesWithoutIncludesResponse.swift | 30 + .../OpenAPI/Generated/Entities/CiAction.swift | 2 - .../Generated/Entities/CiActionType.swift | 2 - .../Generated/Entities/CiArtifact.swift | 10 +- .../Entities/CiArtifactResponse.swift | 2 - .../Entities/CiArtifactsResponse.swift | 2 - .../Generated/Entities/CiBranchPatterns.swift | 2 - .../Entities/CiBranchStartCondition.swift | 2 - .../Generated/Entities/CiBuildAction.swift | 10 +- .../Entities/CiBuildActionResponse.swift | 2 - .../Entities/CiBuildActionsResponse.swift | 2 - .../Generated/Entities/CiBuildRun.swift | 10 +- .../Entities/CiBuildRunCreateRequest.swift | 2 - .../Entities/CiBuildRunResponse.swift | 7 +- .../Entities/CiBuildRunsResponse.swift | 7 +- .../Entities/CiCompletionStatus.swift | 2 - .../Entities/CiExecutionProgress.swift | 2 - .../Entities/CiFilesAndFoldersRule.swift | 2 - .../Generated/Entities/CiGitRefKind.swift | 2 - .../Generated/Entities/CiGitUser.swift | 2 - .../OpenAPI/Generated/Entities/CiIssue.swift | 10 +- .../Generated/Entities/CiIssueCounts.swift | 2 - .../Generated/Entities/CiIssueResponse.swift | 2 - .../Generated/Entities/CiIssuesResponse.swift | 2 - .../Generated/Entities/CiMacOsVersion.swift | 10 +- .../Entities/CiMacOsVersionResponse.swift | 2 - .../Entities/CiMacOsVersionsResponse.swift | 2 - .../Generated/Entities/CiProduct.swift | 10 +- .../Entities/CiProductResponse.swift | 7 +- .../Entities/CiProductsResponse.swift | 7 +- .../CiPullRequestStartCondition.swift | 2 - .../Entities/CiScheduledStartCondition.swift | 2 - .../CiStartConditionFileMatcher.swift | 2 - .../Generated/Entities/CiTagPatterns.swift | 2 - .../Entities/CiTagStartCondition.swift | 2 - .../Entities/CiTestDestination.swift | 2 - .../Entities/CiTestDestinationKind.swift | 2 - .../Generated/Entities/CiTestResult.swift | 10 +- .../Entities/CiTestResultResponse.swift | 2 - .../Entities/CiTestResultsResponse.swift | 2 - .../Generated/Entities/CiTestStatus.swift | 2 - .../Generated/Entities/CiWorkflow.swift | 10 +- .../Entities/CiWorkflowCreateRequest.swift | 2 - .../Entities/CiWorkflowResponse.swift | 7 +- .../Entities/CiWorkflowUpdateRequest.swift | 2 - .../Entities/CiWorkflowsResponse.swift | 7 +- .../Generated/Entities/CiXcodeVersion.swift | 10 +- .../Entities/CiXcodeVersionResponse.swift | 2 - .../Entities/CiXcodeVersionsResponse.swift | 2 - .../Generated/Entities/CustomerReview.swift | 10 +- .../Entities/CustomerReviewResponse.swift | 2 - .../Entities/CustomerReviewResponseV1.swift | 10 +- ...ustomerReviewResponseV1CreateRequest.swift | 2 - .../CustomerReviewResponseV1Response.swift | 2 - .../Entities/CustomerReviewsResponse.swift | 2 - .../OpenAPI/Generated/Entities/Device.swift | 10 +- .../Entities/DeviceCreateRequest.swift | 2 - .../Generated/Entities/DeviceResponse.swift | 2 - .../Entities/DeviceUpdateRequest.swift | 2 - .../Generated/Entities/DevicesResponse.swift | 2 - .../DevicesWithoutIncludesResponse.swift | 30 + .../Generated/Entities/DiagnosticLog.swift | 8 +- .../Entities/DiagnosticLogCallStackNode.swift | 2 - .../Generated/Entities/DiagnosticLogs.swift | 2 - .../Entities/DiagnosticSignature.swift | 8 +- .../DiagnosticSignaturesResponse.swift | 2 - .../Generated/Entities/DocumentLinks.swift | 2 - .../Entities/EndAppAvailabilityPreOrder.swift | 30 + ...AppAvailabilityPreOrderCreateRequest.swift | 110 + .../EndAppAvailabilityPreOrderResponse.swift | 27 + .../Entities/EndUserLicenseAgreement.swift | 10 +- ...EndUserLicenseAgreementCreateRequest.swift | 2 - .../EndUserLicenseAgreementResponse.swift | 7 +- ...EndUserLicenseAgreementUpdateRequest.swift | 2 - ...enseAgreementWithoutIncludesResponse.swift | 27 + .../Generated/Entities/ErrorResponse.swift | 7 +- .../Entities/ErrorSourceParameter.swift | 2 - .../Entities/ErrorSourcePointer.swift | 2 - .../Entities/ExternalBetaState.swift | 2 - .../Generated/Entities/FileLocation.swift | 2 - .../Entities/GameCenterAchievement.swift | 472 + .../GameCenterAchievementCreateRequest.swift | 196 + ...vementGroupAchievementLinkageRequest.swift | 48 + ...ementGroupAchievementLinkageResponse.swift | 52 + .../Entities/GameCenterAchievementImage.swift | 164 + ...eCenterAchievementImageCreateRequest.swift | 136 + .../GameCenterAchievementImageResponse.swift | 31 + ...eCenterAchievementImageUpdateRequest.swift | 70 + .../GameCenterAchievementLocalization.swift | 234 + ...AchievementLocalizationCreateRequest.swift | 144 + ...enterAchievementLocalizationResponse.swift | 58 + ...AchievementLocalizationUpdateRequest.swift | 78 + ...nterAchievementLocalizationsResponse.swift | 61 + .../GameCenterAchievementRelease.swift | 222 + ...enterAchievementReleaseCreateRequest.swift | 158 + ...GameCenterAchievementReleaseResponse.swift | 58 + ...ameCenterAchievementReleasesResponse.swift | 61 + .../GameCenterAchievementResponse.swift | 70 + .../GameCenterAchievementUpdateRequest.swift | 86 + .../GameCenterAchievementsResponse.swift | 73 + .../Entities/GameCenterAppVersion.swift | 226 + ...CompatibilityVersionsLinkagesRequest.swift | 48 + ...ompatibilityVersionsLinkagesResponse.swift | 56 + .../GameCenterAppVersionCreateRequest.swift | 110 + .../GameCenterAppVersionResponse.swift | 58 + .../GameCenterAppVersionUpdateRequest.swift | 70 + .../GameCenterAppVersionsResponse.swift | 61 + .../Generated/Entities/GameCenterDetail.swift | 920 + .../GameCenterDetailCreateRequest.swift | 132 + ...ameCenterAchievementsLinkagesRequest.swift | 48 + ...meCenterAchievementsLinkagesResponse.swift | 56 + ...CenterLeaderboardSetsLinkagesRequest.swift | 48 + ...enterLeaderboardSetsLinkagesResponse.swift | 56 + ...ameCenterLeaderboardsLinkagesRequest.swift | 48 + ...meCenterLeaderboardsLinkagesResponse.swift | 56 + .../Entities/GameCenterDetailResponse.swift | 86 + .../GameCenterDetailUpdateRequest.swift | 232 + .../Entities/GameCenterDetailsResponse.swift | 89 + .../Entities/GameCenterEnabledVersion.swift | 9 +- ...ionCompatibleVersionsLinkagesRequest.swift | 3 +- ...onCompatibleVersionsLinkagesResponse.swift | 3 +- .../GameCenterEnabledVersionsResponse.swift | 8 +- .../Generated/Entities/GameCenterGroup.swift | 386 + .../GameCenterGroupCreateRequest.swift | 66 + ...ameCenterAchievementsLinkagesRequest.swift | 48 + ...meCenterAchievementsLinkagesResponse.swift | 56 + ...CenterLeaderboardSetsLinkagesRequest.swift | 48 + ...enterLeaderboardSetsLinkagesResponse.swift | 56 + ...ameCenterLeaderboardsLinkagesRequest.swift | 48 + ...meCenterLeaderboardsLinkagesResponse.swift | 56 + .../Entities/GameCenterGroupResponse.swift | 66 + .../GameCenterGroupUpdateRequest.swift | 70 + .../Entities/GameCenterGroupsResponse.swift | 69 + .../Entities/GameCenterLeaderboard.swift | 580 + .../GameCenterLeaderboardCreateRequest.swift | 274 + .../GameCenterLeaderboardFormatter.swift | 25 + ...rboardGroupLeaderboardLinkageRequest.swift | 48 + ...boardGroupLeaderboardLinkageResponse.swift | 52 + .../Entities/GameCenterLeaderboardImage.swift | 164 + ...eCenterLeaderboardImageCreateRequest.swift | 136 + .../GameCenterLeaderboardImageResponse.swift | 31 + ...eCenterLeaderboardImageUpdateRequest.swift | 70 + .../GameCenterLeaderboardLocalization.swift | 238 + ...LeaderboardLocalizationCreateRequest.swift | 148 + ...enterLeaderboardLocalizationResponse.swift | 58 + ...LeaderboardLocalizationUpdateRequest.swift | 82 + ...nterLeaderboardLocalizationsResponse.swift | 61 + .../GameCenterLeaderboardRelease.swift | 222 + ...enterLeaderboardReleaseCreateRequest.swift | 158 + ...GameCenterLeaderboardReleaseResponse.swift | 58 + ...ameCenterLeaderboardReleasesResponse.swift | 61 + .../GameCenterLeaderboardResponse.swift | 74 + .../Entities/GameCenterLeaderboardSet.swift | 534 + ...ameCenterLeaderboardSetCreateRequest.swift | 136 + ...ameCenterLeaderboardsLinkagesRequest.swift | 48 + ...meCenterLeaderboardsLinkagesResponse.swift | 56 + ...SetGroupLeaderboardSetLinkageRequest.swift | 48 + ...etGroupLeaderboardSetLinkageResponse.swift | 52 + .../GameCenterLeaderboardSetImage.swift | 164 + ...nterLeaderboardSetImageCreateRequest.swift | 136 + ...ameCenterLeaderboardSetImageResponse.swift | 31 + ...nterLeaderboardSetImageUpdateRequest.swift | 70 + ...GameCenterLeaderboardSetLocalization.swift | 226 + ...derboardSetLocalizationCreateRequest.swift | 136 + ...erLeaderboardSetLocalizationResponse.swift | 58 + ...derboardSetLocalizationUpdateRequest.swift | 70 + ...rLeaderboardSetLocalizationsResponse.swift | 61 + ...nterLeaderboardSetMemberLocalization.swift | 226 + ...rdSetMemberLocalizationCreateRequest.swift | 184 + ...erboardSetMemberLocalizationResponse.swift | 58 + ...rdSetMemberLocalizationUpdateRequest.swift | 70 + ...rboardSetMemberLocalizationsResponse.swift | 61 + .../GameCenterLeaderboardSetRelease.swift | 222 + ...erLeaderboardSetReleaseCreateRequest.swift | 158 + ...eCenterLeaderboardSetReleaseResponse.swift | 58 + ...CenterLeaderboardSetReleasesResponse.swift | 61 + .../GameCenterLeaderboardSetResponse.swift | 74 + ...ameCenterLeaderboardSetUpdateRequest.swift | 70 + .../GameCenterLeaderboardSetsResponse.swift | 77 + .../GameCenterLeaderboardUpdateRequest.swift | 116 + .../GameCenterLeaderboardsResponse.swift | 77 + .../Generated/Entities/HTTPHeader.swift | 2 - .../Generated/Entities/IconAssetType.swift | 2 - .../Generated/Entities/ImageAsset.swift | 2 - .../Generated/Entities/InAppPurchase.swift | 11 +- ...nAppPurchaseAppStoreReviewScreenshot.swift | 10 +- ...ppStoreReviewScreenshotCreateRequest.swift | 2 - ...haseAppStoreReviewScreenshotResponse.swift | 2 - ...ppStoreReviewScreenshotUpdateRequest.swift | 2 - .../Entities/InAppPurchaseAvailability.swift | 10 +- ...AppPurchaseAvailabilityCreateRequest.swift | 2 - .../InAppPurchaseAvailabilityResponse.swift | 2 - .../Entities/InAppPurchaseContent.swift | 10 +- .../InAppPurchaseContentResponse.swift | 2 - .../Entities/InAppPurchaseLocalization.swift | 10 +- ...AppPurchaseLocalizationCreateRequest.swift | 2 - .../InAppPurchaseLocalizationResponse.swift | 2 - ...AppPurchaseLocalizationUpdateRequest.swift | 2 - .../InAppPurchaseLocalizationsResponse.swift | 2 - .../Entities/InAppPurchasePrice.swift | 8 +- .../InAppPurchasePriceInlineCreate.swift | 2 - .../Entities/InAppPurchasePricePoint.swift | 8 +- .../InAppPurchasePricePointsResponse.swift | 2 - .../Entities/InAppPurchasePriceSchedule.swift | 10 +- ...ppPurchasePriceScheduleCreateRequest.swift | 7 +- .../InAppPurchasePriceScheduleResponse.swift | 7 +- .../InAppPurchasePricesResponse.swift | 7 +- .../Entities/InAppPurchaseResponse.swift | 5 +- .../Entities/InAppPurchaseState.swift | 2 - .../Entities/InAppPurchaseSubmission.swift | 8 +- ...InAppPurchaseSubmissionCreateRequest.swift | 2 - .../InAppPurchaseSubmissionResponse.swift | 2 - .../Entities/InAppPurchaseType.swift | 2 - .../Generated/Entities/InAppPurchaseV2.swift | 11 +- .../InAppPurchaseV2CreateRequest.swift | 3 +- .../Entities/InAppPurchaseV2Response.swift | 7 +- .../InAppPurchaseV2UpdateRequest.swift | 3 +- .../Entities/InAppPurchasesResponse.swift | 3 +- .../Entities/InAppPurchasesV2Response.swift | 7 +- .../Entities/InternalBetaState.swift | 2 - .../Generated/Entities/KidsAgeBand.swift | 2 - .../Generated/Entities/MetricCategory.swift | 2 - .../Generated/Entities/MetricsInsight.swift | 2 - .../Entities/PagedDocumentLinks.swift | 2 - .../Entities/PagingInformation.swift | 2 - .../Generated/Entities/PerfPowerMetric.swift | 8 +- .../Entities/PhasedReleaseState.swift | 2 - .../OpenAPI/Generated/Entities/Platform.swift | 3 - .../Entities/PreReleaseVersionsResponse.swift | 13 +- ...leaseVersionsWithoutIncludesResponse.swift | 30 + .../Entities/PrereleaseVersion.swift | 12 +- .../Entities/PrereleaseVersionResponse.swift | 17 +- ...eleaseVersionWithoutIncludesResponse.swift | 27 + .../Generated/Entities/PreviewType.swift | 2 - .../OpenAPI/Generated/Entities/Profile.swift | 10 +- .../Entities/ProfileCreateRequest.swift | 2 - .../Generated/Entities/ProfileResponse.swift | 7 +- .../Generated/Entities/ProfilesResponse.swift | 7 +- .../ProfilesWithoutIncludesResponse.swift | 30 + .../Generated/Entities/PromotedPurchase.swift | 10 +- .../PromotedPurchaseCreateRequest.swift | 2 - .../Entities/PromotedPurchaseImage.swift | 10 +- .../PromotedPurchaseImageCreateRequest.swift | 2 - .../PromotedPurchaseImageResponse.swift | 2 - .../PromotedPurchaseImageUpdateRequest.swift | 2 - .../PromotedPurchaseImagesResponse.swift | 2 - .../Entities/PromotedPurchaseResponse.swift | 7 +- .../PromotedPurchaseUpdateRequest.swift | 2 - .../Entities/PromotedPurchasesResponse.swift | 7 +- .../Generated/Entities/ResourceLinks.swift | 10 +- .../Generated/Entities/ReviewSubmission.swift | 10 +- .../ReviewSubmissionCreateRequest.swift | 2 - .../Entities/ReviewSubmissionItem.swift | 10 +- .../ReviewSubmissionItemCreateRequest.swift | 2 - .../ReviewSubmissionItemResponse.swift | 7 +- .../ReviewSubmissionItemUpdateRequest.swift | 2 - .../ReviewSubmissionItemsResponse.swift | 7 +- .../Entities/ReviewSubmissionResponse.swift | 7 +- .../ReviewSubmissionUpdateRequest.swift | 2 - .../Entities/ReviewSubmissionsResponse.swift | 7 +- .../Entities/RoutingAppCoverage.swift | 10 +- .../RoutingAppCoverageCreateRequest.swift | 2 - .../Entities/RoutingAppCoverageResponse.swift | 2 - .../RoutingAppCoverageUpdateRequest.swift | 2 - ...ngAppCoverageWithoutIncludesResponse.swift | 27 + .../Generated/Entities/SandboxTesterV2.swift | 10 +- .../Entities/SandboxTesterV2Response.swift | 2 - .../SandboxTesterV2UpdateRequest.swift | 2 - ...TestersClearPurchaseHistoryRequestV2.swift | 8 +- ...urchaseHistoryRequestV2CreateRequest.swift | 2 - ...learPurchaseHistoryRequestV2Response.swift | 2 - .../Entities/SandboxTestersV2Response.swift | 2 - .../Generated/Entities/ScmGitReference.swift | 10 +- .../Entities/ScmGitReferenceResponse.swift | 2 - .../Entities/ScmGitReferencesResponse.swift | 2 - .../Generated/Entities/ScmProvider.swift | 10 +- .../Entities/ScmProviderResponse.swift | 2 - .../Generated/Entities/ScmProviderType.swift | 2 - .../Entities/ScmProvidersResponse.swift | 2 - .../Generated/Entities/ScmPullRequest.swift | 10 +- .../Entities/ScmPullRequestResponse.swift | 2 - .../Entities/ScmPullRequestsResponse.swift | 2 - .../Entities/ScmRepositoriesResponse.swift | 7 +- .../Generated/Entities/ScmRepository.swift | 10 +- .../Entities/ScmRepositoryResponse.swift | 7 +- .../Entities/ScreenshotDisplayType.swift | 2 - .../Generated/Entities/Subscription.swift | 11 +- ...SubscriptionAppStoreReviewScreenshot.swift | 10 +- ...ppStoreReviewScreenshotCreateRequest.swift | 2 - ...tionAppStoreReviewScreenshotResponse.swift | 2 - ...ppStoreReviewScreenshotUpdateRequest.swift | 2 - .../Entities/SubscriptionAvailability.swift | 10 +- ...ubscriptionAvailabilityCreateRequest.swift | 2 - .../SubscriptionAvailabilityResponse.swift | 7 +- .../Entities/SubscriptionCreateRequest.swift | 3 +- .../SubscriptionCustomerEligibility.swift | 2 - .../Entities/SubscriptionGracePeriod.swift | 10 +- .../SubscriptionGracePeriodDuration.swift | 2 - .../SubscriptionGracePeriodResponse.swift | 2 - ...SubscriptionGracePeriodUpdateRequest.swift | 2 - .../Entities/SubscriptionGroup.swift | 10 +- .../SubscriptionGroupCreateRequest.swift | 2 - .../SubscriptionGroupLocalization.swift | 10 +- ...iptionGroupLocalizationCreateRequest.swift | 2 - ...ubscriptionGroupLocalizationResponse.swift | 2 - ...iptionGroupLocalizationUpdateRequest.swift | 2 - ...bscriptionGroupLocalizationsResponse.swift | 2 - .../Entities/SubscriptionGroupResponse.swift | 7 +- .../SubscriptionGroupSubmission.swift | 8 +- ...criptionGroupSubmissionCreateRequest.swift | 2 - .../SubscriptionGroupSubmissionResponse.swift | 2 - .../SubscriptionGroupUpdateRequest.swift | 2 - .../Entities/SubscriptionGroupsResponse.swift | 7 +- .../SubscriptionIntroductoryOffer.swift | 10 +- ...iptionIntroductoryOfferCreateRequest.swift | 2 - ...riptionIntroductoryOfferInlineCreate.swift | 2 - ...ubscriptionIntroductoryOfferResponse.swift | 7 +- ...iptionIntroductoryOfferUpdateRequest.swift | 2 - ...ionIntroductoryOffersLinkagesRequest.swift | 2 - ...onIntroductoryOffersLinkagesResponse.swift | 2 - ...bscriptionIntroductoryOffersResponse.swift | 7 +- .../Entities/SubscriptionLocalization.swift | 10 +- ...ubscriptionLocalizationCreateRequest.swift | 2 - .../SubscriptionLocalizationResponse.swift | 2 - ...ubscriptionLocalizationUpdateRequest.swift | 2 - .../SubscriptionLocalizationsResponse.swift | 2 - .../Entities/SubscriptionOfferCode.swift | 10 +- .../SubscriptionOfferCodeCreateRequest.swift | 2 - .../SubscriptionOfferCodeCustomCode.swift | 10 +- ...tionOfferCodeCustomCodeCreateRequest.swift | 2 - ...scriptionOfferCodeCustomCodeResponse.swift | 2 - ...tionOfferCodeCustomCodeUpdateRequest.swift | 2 - ...criptionOfferCodeCustomCodesResponse.swift | 2 - .../SubscriptionOfferCodeOneTimeUseCode.swift | 10 +- ...OfferCodeOneTimeUseCodeCreateRequest.swift | 2 - ...ptionOfferCodeOneTimeUseCodeResponse.swift | 2 - ...OfferCodeOneTimeUseCodeUpdateRequest.swift | 2 - ...criptionOfferCodeOneTimeUseCodeValue.swift | 8 +- ...tionOfferCodeOneTimeUseCodesResponse.swift | 2 - .../Entities/SubscriptionOfferCodePrice.swift | 8 +- ...bscriptionOfferCodePriceInlineCreate.swift | 2 - .../SubscriptionOfferCodePricesResponse.swift | 7 +- .../SubscriptionOfferCodeResponse.swift | 7 +- .../SubscriptionOfferCodeUpdateRequest.swift | 2 - .../SubscriptionOfferCodesResponse.swift | 7 +- .../Entities/SubscriptionOfferDuration.swift | 2 - .../SubscriptionOfferEligibility.swift | 2 - .../Entities/SubscriptionOfferMode.swift | 2 - .../Entities/SubscriptionPrice.swift | 10 +- .../SubscriptionPriceCreateRequest.swift | 2 - .../SubscriptionPriceInlineCreate.swift | 2 - .../Entities/SubscriptionPricePoint.swift | 10 +- .../SubscriptionPricePointInlineCreate.swift | 2 - .../SubscriptionPricePointResponse.swift | 2 - .../SubscriptionPricePointsResponse.swift | 2 - .../Entities/SubscriptionPriceResponse.swift | 7 +- .../SubscriptionPricesLinkagesRequest.swift | 2 - .../SubscriptionPricesLinkagesResponse.swift | 2 - .../Entities/SubscriptionPricesResponse.swift | 7 +- .../SubscriptionPromotionalOffer.swift | 10 +- ...riptionPromotionalOfferCreateRequest.swift | 2 - ...criptionPromotionalOfferInlineCreate.swift | 2 - .../SubscriptionPromotionalOfferPrice.swift | 8 +- ...ionPromotionalOfferPriceInlineCreate.swift | 2 - ...iptionPromotionalOfferPricesResponse.swift | 7 +- ...SubscriptionPromotionalOfferResponse.swift | 7 +- ...riptionPromotionalOfferUpdateRequest.swift | 2 - ...ubscriptionPromotionalOffersResponse.swift | 7 +- .../Entities/SubscriptionResponse.swift | 7 +- .../SubscriptionStatusURLVersion.swift | 2 - .../Entities/SubscriptionSubmission.swift | 8 +- .../SubscriptionSubmissionCreateRequest.swift | 2 - .../SubscriptionSubmissionResponse.swift | 2 - .../Entities/SubscriptionUpdateRequest.swift | 8 +- .../Entities/SubscriptionsResponse.swift | 7 +- .../Entities/TerritoriesResponse.swift | 2 - .../TerritoriesWithoutIncludesResponse.swift | 30 + .../Generated/Entities/Territory.swift | 8 +- .../TerritoryAvailabilitiesResponse.swift | 34 + .../Entities/TerritoryAvailability.swift | 200 + .../TerritoryAvailabilityInlineCreate.swift | 30 + .../TerritoryAvailabilityResponse.swift | 31 + .../TerritoryAvailabilityUpdateRequest.swift | 78 + .../Generated/Entities/TerritoryCode.swift | 2 - .../Entities/TerritoryInlineCreate.swift | 2 - .../Entities/TerritoryResponse.swift | 2 - .../Generated/Entities/UploadOperation.swift | 2 - Sources/OpenAPI/Generated/Entities/User.swift | 10 +- .../Generated/Entities/UserInvitation.swift | 10 +- .../UserInvitationCreateRequest.swift | 2 - .../Entities/UserInvitationResponse.swift | 2 - .../Entities/UserInvitationsResponse.swift | 2 - .../Generated/Entities/UserResponse.swift | 2 - .../OpenAPI/Generated/Entities/UserRole.swift | 2 - .../Entities/UserUpdateRequest.swift | 2 - .../UserVisibleAppsLinkagesRequest.swift | 2 - .../UserVisibleAppsLinkagesResponse.swift | 2 - .../Generated/Entities/UsersResponse.swift | 2 - .../Generated/Entities/XcodeMetrics.swift | 2 - .../APIEndpoint.swift} | 2 - .../StringCodingKey.swift} | 2 - Sources/OpenAPI/Generated/Paths/PathsV1.swift | 2 - .../Generated/Paths/PathsV1Actors.swift | 4 +- .../Generated/Paths/PathsV1ActorsWithID.swift | 4 +- .../Paths/PathsV1AgeRatingDeclarations.swift | 2 - .../PathsV1AgeRatingDeclarationsWithID.swift | 4 +- .../Paths/PathsV1AppAvailabilities.swift | 4 +- .../PathsV1AppAvailabilitiesWithID.swift | 4 +- ...labilitiesWithIDAvailableTerritories.swift | 4 +- ...AppAvailabilitiesWithIDRelationships.swift | 2 - ...hIDRelationshipsAvailableTerritories.swift | 2 - .../Paths/PathsV1AppCategories.swift | 4 +- .../Paths/PathsV1AppCategoriesWithID.swift | 4 +- .../PathsV1AppCategoriesWithIDParent.swift | 6 +- ...hsV1AppCategoriesWithIDRelationships.swift | 2 - ...pCategoriesWithIDRelationshipsParent.swift | 2 - ...riesWithIDRelationshipsSubcategories.swift | 2 - ...hsV1AppCategoriesWithIDSubcategories.swift | 6 +- ...thsV1AppClipAdvancedExperienceImages.swift | 4 +- ...ppClipAdvancedExperienceImagesWithID.swift | 6 +- .../PathsV1AppClipAdvancedExperiences.swift | 4 +- ...hsV1AppClipAdvancedExperiencesWithID.swift | 6 +- .../PathsV1AppClipAppStoreReviewDetails.swift | 4 +- ...V1AppClipAppStoreReviewDetailsWithID.swift | 6 +- ...ppClipDefaultExperienceLocalizations.swift | 4 +- ...DefaultExperienceLocalizationsWithID.swift | 8 +- ...ocalizationsWithIDAppClipHeaderImage.swift | 4 +- ...enceLocalizationsWithIDRelationships.swift | 2 - ...ithIDRelationshipsAppClipHeaderImage.swift | 2 - .../PathsV1AppClipDefaultExperiences.swift | 4 +- ...thsV1AppClipDefaultExperiencesWithID.swift | 8 +- ...cesWithIDAppClipAppStoreReviewDetail.swift | 4 +- ...ppClipDefaultExperienceLocalizations.swift | 4 +- ...efaultExperiencesWithIDRelationships.swift | 2 - ...tionshipsAppClipAppStoreReviewDetail.swift | 2 - ...ppClipDefaultExperienceLocalizations.swift | 2 - ...ationshipsReleaseWithAppStoreVersion.swift | 6 +- ...ncesWithIDReleaseWithAppStoreVersion.swift | 7 +- .../Paths/PathsV1AppClipHeaderImages.swift | 4 +- .../PathsV1AppClipHeaderImagesWithID.swift | 8 +- .../Generated/Paths/PathsV1AppClips.swift | 2 - .../Paths/PathsV1AppClipsWithID.swift | 4 +- ...lipsWithIDAppClipAdvancedExperiences.swift | 4 +- ...ClipsWithIDAppClipDefaultExperiences.swift | 4 +- .../PathsV1AppClipsWithIDRelationships.swift | 2 - ...ationshipsAppClipAdvancedExperiences.swift | 2 - ...lationshipsAppClipDefaultExperiences.swift | 2 - ...sV1AppCustomProductPageLocalizations.swift | 4 +- ...CustomProductPageLocalizationsWithID.swift | 8 +- ...ageLocalizationsWithIDAppPreviewSets.swift | 4 +- ...LocalizationsWithIDAppScreenshotSets.swift | 4 +- ...PageLocalizationsWithIDRelationships.swift | 2 - ...onsWithIDRelationshipsAppPreviewSets.swift | 2 - ...WithIDRelationshipsAppScreenshotSets.swift | 2 - .../PathsV1AppCustomProductPageVersions.swift | 4 +- ...V1AppCustomProductPageVersionsWithID.swift | 4 +- ...hIDAppCustomProductPageLocalizations.swift | 4 +- ...oductPageVersionsWithIDRelationships.swift | 2 - ...ipsAppCustomProductPageLocalizations.swift | 2 - .../Paths/PathsV1AppCustomProductPages.swift | 4 +- .../PathsV1AppCustomProductPagesWithID.swift | 8 +- ...esWithIDAppCustomProductPageVersions.swift | 4 +- ...ustomProductPagesWithIDRelationships.swift | 2 - ...ionshipsAppCustomProductPageVersions.swift | 2 - ...sV1AppEncryptionDeclarationDocuments.swift | 4 +- ...EncryptionDeclarationDocumentsWithID.swift | 6 +- .../PathsV1AppEncryptionDeclarations.swift | 6 +- ...thsV1AppEncryptionDeclarationsWithID.swift | 6 +- ...V1AppEncryptionDeclarationsWithIDApp.swift | 8 +- ...thIDAppEncryptionDeclarationDocument.swift | 4 +- ...ptionDeclarationsWithIDRelationships.swift | 2 - ...onDeclarationsWithIDRelationshipsApp.swift | 2 - ...hipsAppEncryptionDeclarationDocument.swift | 2 - ...eclarationsWithIDRelationshipsBuilds.swift | 4 +- .../Paths/PathsV1AppEventLocalizations.swift | 4 +- .../PathsV1AppEventLocalizationsWithID.swift | 8 +- ...calizationsWithIDAppEventScreenshots.swift | 4 +- ...ocalizationsWithIDAppEventVideoClips.swift | 4 +- ...ventLocalizationsWithIDRelationships.swift | 2 - ...thIDRelationshipsAppEventScreenshots.swift | 2 - ...ithIDRelationshipsAppEventVideoClips.swift | 2 - .../Paths/PathsV1AppEventScreenshots.swift | 4 +- .../PathsV1AppEventScreenshotsWithID.swift | 8 +- .../Paths/PathsV1AppEventVideoClips.swift | 4 +- .../PathsV1AppEventVideoClipsWithID.swift | 8 +- .../Generated/Paths/PathsV1AppEvents.swift | 4 +- .../Paths/PathsV1AppEventsWithID.swift | 8 +- .../PathsV1AppEventsWithIDLocalizations.swift | 4 +- .../PathsV1AppEventsWithIDRelationships.swift | 2 - ...entsWithIDRelationshipsLocalizations.swift | 2 - .../Paths/PathsV1AppInfoLocalizations.swift | 4 +- .../PathsV1AppInfoLocalizationsWithID.swift | 8 +- .../Generated/Paths/PathsV1AppInfos.swift | 2 - .../Paths/PathsV1AppInfosWithID.swift | 6 +- ...V1AppInfosWithIDAgeRatingDeclaration.swift | 4 +- ...V1AppInfosWithIDAppInfoLocalizations.swift | 4 +- ...PathsV1AppInfosWithIDPrimaryCategory.swift | 4 +- ...1AppInfosWithIDPrimarySubcategoryOne.swift | 4 +- ...1AppInfosWithIDPrimarySubcategoryTwo.swift | 4 +- .../PathsV1AppInfosWithIDRelationships.swift | 2 - ...hIDRelationshipsAgeRatingDeclaration.swift | 2 - ...hIDRelationshipsAppInfoLocalizations.swift | 2 - ...osWithIDRelationshipsPrimaryCategory.swift | 2 - ...IDRelationshipsPrimarySubcategoryOne.swift | 2 - ...IDRelationshipsPrimarySubcategoryTwo.swift | 2 - ...WithIDRelationshipsSecondaryCategory.swift | 2 - ...RelationshipsSecondarySubcategoryOne.swift | 2 - ...RelationshipsSecondarySubcategoryTwo.swift | 2 - ...thsV1AppInfosWithIDSecondaryCategory.swift | 4 +- ...ppInfosWithIDSecondarySubcategoryOne.swift | 4 +- ...ppInfosWithIDSecondarySubcategoryTwo.swift | 4 +- .../Generated/Paths/PathsV1AppPreOrders.swift | 4 +- .../Paths/PathsV1AppPreOrdersWithID.swift | 8 +- .../Paths/PathsV1AppPreviewSets.swift | 4 +- .../Paths/PathsV1AppPreviewSetsWithID.swift | 6 +- ...thsV1AppPreviewSetsWithIDAppPreviews.swift | 4 +- ...sV1AppPreviewSetsWithIDRelationships.swift | 2 - ...ewSetsWithIDRelationshipsAppPreviews.swift | 6 +- .../Generated/Paths/PathsV1AppPreviews.swift | 4 +- .../Paths/PathsV1AppPreviewsWithID.swift | 8 +- .../Paths/PathsV1AppPricePoints.swift | 4 +- .../Paths/PathsV1AppPricePointsWithID.swift | 4 +- ...sV1AppPricePointsWithIDRelationships.swift | 2 - ...cePointsWithIDRelationshipsTerritory.swift | 2 - ...PathsV1AppPricePointsWithIDTerritory.swift | 4 +- .../Paths/PathsV1AppPriceSchedules.swift | 4 +- .../PathsV1AppPriceSchedulesWithID.swift | 4 +- ...pPriceSchedulesWithIDAutomaticPrices.swift | 4 +- ...AppPriceSchedulesWithIDBaseTerritory.swift | 4 +- ...1AppPriceSchedulesWithIDManualPrices.swift | 4 +- ...AppPriceSchedulesWithIDRelationships.swift | 2 - ...esWithIDRelationshipsAutomaticPrices.swift | 2 - ...ulesWithIDRelationshipsBaseTerritory.swift | 2 - ...dulesWithIDRelationshipsManualPrices.swift | 2 - .../Paths/PathsV1AppPriceTiers.swift | 4 +- .../Paths/PathsV1AppPriceTiersWithID.swift | 4 +- ...athsV1AppPriceTiersWithIDPricePoints.swift | 4 +- ...hsV1AppPriceTiersWithIDRelationships.swift | 2 - ...eTiersWithIDRelationshipsPricePoints.swift | 2 - .../Generated/Paths/PathsV1AppPrices.swift | 2 - .../Paths/PathsV1AppPricesWithID.swift | 4 +- .../Paths/PathsV1AppScreenshotSets.swift | 4 +- .../PathsV1AppScreenshotSetsWithID.swift | 6 +- ...ppScreenshotSetsWithIDAppScreenshots.swift | 4 +- ...AppScreenshotSetsWithIDRelationships.swift | 2 - ...etsWithIDRelationshipsAppScreenshots.swift | 6 +- .../Paths/PathsV1AppScreenshots.swift | 4 +- .../Paths/PathsV1AppScreenshotsWithID.swift | 8 +- .../PathsV1AppStoreReviewAttachments.swift | 4 +- ...thsV1AppStoreReviewAttachmentsWithID.swift | 8 +- .../Paths/PathsV1AppStoreReviewDetails.swift | 4 +- .../PathsV1AppStoreReviewDetailsWithID.swift | 6 +- ...tailsWithIDAppStoreReviewAttachments.swift | 4 +- ...toreReviewDetailsWithIDRelationships.swift | 2 - ...lationshipsAppStoreReviewAttachments.swift | 2 - ...sionExperimentTreatmentLocalizations.swift | 4 +- ...perimentTreatmentLocalizationsWithID.swift | 6 +- ...entLocalizationsWithIDAppPreviewSets.swift | 4 +- ...LocalizationsWithIDAppScreenshotSets.swift | 4 +- ...mentLocalizationsWithIDRelationships.swift | 2 - ...onsWithIDRelationshipsAppPreviewSets.swift | 2 - ...WithIDRelationshipsAppScreenshotSets.swift | 2 - ...1AppStoreVersionExperimentTreatments.swift | 4 +- ...oreVersionExperimentTreatmentsWithID.swift | 8 +- ...sionExperimentTreatmentLocalizations.swift | 4 +- ...erimentTreatmentsWithIDRelationships.swift | 2 - ...sionExperimentTreatmentLocalizations.swift | 2 - .../PathsV1AppStoreVersionExperiments.swift | 4 +- ...hsV1AppStoreVersionExperimentsWithID.swift | 8 +- ...DAppStoreVersionExperimentTreatments.swift | 5 +- ...ersionExperimentsWithIDRelationships.swift | 2 - ...sAppStoreVersionExperimentTreatments.swift | 2 - .../PathsV1AppStoreVersionLocalizations.swift | 4 +- ...V1AppStoreVersionLocalizationsWithID.swift | 8 +- ...ionLocalizationsWithIDAppPreviewSets.swift | 4 +- ...LocalizationsWithIDAppScreenshotSets.swift | 4 +- ...sionLocalizationsWithIDRelationships.swift | 2 - ...onsWithIDRelationshipsAppPreviewSets.swift | 2 - ...WithIDRelationshipsAppScreenshotSets.swift | 2 - ...PathsV1AppStoreVersionPhasedReleases.swift | 4 +- ...1AppStoreVersionPhasedReleasesWithID.swift | 6 +- .../PathsV1AppStoreVersionPromotions.swift | 4 +- ...athsV1AppStoreVersionReleaseRequests.swift | 4 +- .../PathsV1AppStoreVersionSubmissions.swift | 4 +- ...hsV1AppStoreVersionSubmissionsWithID.swift | 4 +- .../Paths/PathsV1AppStoreVersions.swift | 4 +- .../Paths/PathsV1AppStoreVersionsWithID.swift | 9 +- ...reVersionsWithIDAgeRatingDeclaration.swift | 6 +- ...rsionsWithIDAppClipDefaultExperience.swift | 4 +- ...reVersionsWithIDAppStoreReviewDetail.swift | 4 +- ...ionsWithIDAppStoreVersionExperiments.swift | 4 +- ...nsWithIDAppStoreVersionExperimentsV2.swift | 6 +- ...nsWithIDAppStoreVersionLocalizations.swift | 6 +- ...nsWithIDAppStoreVersionPhasedRelease.swift | 6 +- ...sionsWithIDAppStoreVersionSubmission.swift | 4 +- .../PathsV1AppStoreVersionsWithIDBuild.swift | 6 +- ...ppStoreVersionsWithIDCustomerReviews.swift | 4 +- ...1AppStoreVersionsWithIDRelationships.swift | 2 - ...hIDRelationshipsAgeRatingDeclaration.swift | 2 - ...elationshipsAppClipDefaultExperience.swift | 6 +- ...hIDRelationshipsAppStoreReviewDetail.swift | 2 - ...ationshipsAppStoreVersionExperiments.swift | 2 - ...ionshipsAppStoreVersionExperimentsV2.swift | 2 - ...ionshipsAppStoreVersionLocalizations.swift | 2 - ...ionshipsAppStoreVersionPhasedRelease.swift | 2 - ...lationshipsAppStoreVersionSubmission.swift | 2 - ...toreVersionsWithIDRelationshipsBuild.swift | 6 +- ...nsWithIDRelationshipsCustomerReviews.swift | 2 - ...ithIDRelationshipsRoutingAppCoverage.swift | 2 - ...toreVersionsWithIDRoutingAppCoverage.swift | 6 +- .../OpenAPI/Generated/Paths/PathsV1Apps.swift | 69 +- .../Generated/Paths/PathsV1AppsWithID.swift | 71 +- .../PathsV1AppsWithIDAppAvailability.swift | 6 +- .../Paths/PathsV1AppsWithIDAppClips.swift | 6 +- ...thsV1AppsWithIDAppCustomProductPages.swift | 6 +- ...1AppsWithIDAppEncryptionDeclarations.swift | 176 + .../Paths/PathsV1AppsWithIDAppEvents.swift | 4 +- .../Paths/PathsV1AppsWithIDAppInfos.swift | 6 +- .../PathsV1AppsWithIDAppPricePoints.swift | 6 +- .../PathsV1AppsWithIDAppPriceSchedule.swift | 6 +- ...psWithIDAppStoreVersionExperimentsV2.swift | 6 +- .../PathsV1AppsWithIDAppStoreVersions.swift | 7 +- ...athsV1AppsWithIDAvailableTerritories.swift | 4 +- ...athsV1AppsWithIDBetaAppLocalizations.swift | 6 +- ...PathsV1AppsWithIDBetaAppReviewDetail.swift | 6 +- .../Paths/PathsV1AppsWithIDBetaGroups.swift | 6 +- ...athsV1AppsWithIDBetaLicenseAgreement.swift | 6 +- .../Paths/PathsV1AppsWithIDBuilds.swift | 6 +- .../Paths/PathsV1AppsWithIDCiProduct.swift | 6 +- .../PathsV1AppsWithIDCustomerReviews.swift | 4 +- ...sV1AppsWithIDEndUserLicenseAgreement.swift | 6 +- .../PathsV1AppsWithIDGameCenterDetail.swift | 239 + ...1AppsWithIDGameCenterEnabledVersions.swift | 7 +- .../PathsV1AppsWithIDInAppPurchases.swift | 6 +- .../PathsV1AppsWithIDInAppPurchasesV2.swift | 4 +- .../PathsV1AppsWithIDPerfPowerMetrics.swift | 4 +- .../Paths/PathsV1AppsWithIDPreOrder.swift | 6 +- .../PathsV1AppsWithIDPreReleaseVersions.swift | 6 +- .../Paths/PathsV1AppsWithIDPricePoints.swift | 6 +- .../Paths/PathsV1AppsWithIDPrices.swift | 6 +- .../PathsV1AppsWithIDPromotedPurchases.swift | 4 +- .../PathsV1AppsWithIDRelationships.swift | 2 - ...psWithIDRelationshipsAppAvailability.swift | 2 - ...thsV1AppsWithIDRelationshipsAppClips.swift | 2 - ...IDRelationshipsAppCustomProductPages.swift | 2 - ...lationshipsAppEncryptionDeclarations.swift | 16 + ...hsV1AppsWithIDRelationshipsAppEvents.swift | 2 - ...thsV1AppsWithIDRelationshipsAppInfos.swift | 2 - ...ppsWithIDRelationshipsAppPricePoints.swift | 2 - ...sWithIDRelationshipsAppPriceSchedule.swift | 2 - ...ionshipsAppStoreVersionExperimentsV2.swift | 2 - ...sWithIDRelationshipsAppStoreVersions.swift | 2 - ...hIDRelationshipsAvailableTerritories.swift | 2 - ...hIDRelationshipsBetaAppLocalizations.swift | 2 - ...thIDRelationshipsBetaAppReviewDetail.swift | 2 - ...sV1AppsWithIDRelationshipsBetaGroups.swift | 2 - ...hIDRelationshipsBetaLicenseAgreement.swift | 2 - ...V1AppsWithIDRelationshipsBetaTesters.swift | 4 +- ...PathsV1AppsWithIDRelationshipsBuilds.swift | 2 - ...hsV1AppsWithIDRelationshipsCiProduct.swift | 2 - ...psWithIDRelationshipsCustomerReviews.swift | 2 - ...RelationshipsEndUserLicenseAgreement.swift | 2 - ...sWithIDRelationshipsGameCenterDetail.swift | 16 + ...lationshipsGameCenterEnabledVersions.swift | 2 - ...ppsWithIDRelationshipsInAppPurchases.swift | 2 - ...sWithIDRelationshipsInAppPurchasesV2.swift | 2 - ...thsV1AppsWithIDRelationshipsPreOrder.swift | 2 - ...ithIDRelationshipsPreReleaseVersions.swift | 2 - ...V1AppsWithIDRelationshipsPricePoints.swift | 2 - ...PathsV1AppsWithIDRelationshipsPrices.swift | 2 - ...WithIDRelationshipsPromotedPurchases.swift | 6 +- ...WithIDRelationshipsReviewSubmissions.swift | 2 - ...RelationshipsSubscriptionGracePeriod.swift | 2 - ...ithIDRelationshipsSubscriptionGroups.swift | 2 - .../PathsV1AppsWithIDReviewSubmissions.swift | 6 +- ...sV1AppsWithIDSubscriptionGracePeriod.swift | 4 +- .../PathsV1AppsWithIDSubscriptionGroups.swift | 4 +- ...V1BetaAppClipInvocationLocalizations.swift | 4 +- ...AppClipInvocationLocalizationsWithID.swift | 6 +- .../Paths/PathsV1BetaAppClipInvocations.swift | 4 +- .../PathsV1BetaAppClipInvocationsWithID.swift | 8 +- .../Paths/PathsV1BetaAppLocalizations.swift | 8 +- .../PathsV1BetaAppLocalizationsWithID.swift | 10 +- ...PathsV1BetaAppLocalizationsWithIDApp.swift | 8 +- ...aAppLocalizationsWithIDRelationships.swift | 2 - ...pLocalizationsWithIDRelationshipsApp.swift | 2 - .../Paths/PathsV1BetaAppReviewDetails.swift | 6 +- .../PathsV1BetaAppReviewDetailsWithID.swift | 8 +- ...PathsV1BetaAppReviewDetailsWithIDApp.swift | 8 +- ...aAppReviewDetailsWithIDRelationships.swift | 2 - ...pReviewDetailsWithIDRelationshipsApp.swift | 2 - .../PathsV1BetaAppReviewSubmissions.swift | 6 +- ...athsV1BetaAppReviewSubmissionsWithID.swift | 4 +- ...1BetaAppReviewSubmissionsWithIDBuild.swift | 6 +- ...ReviewSubmissionsWithIDRelationships.swift | 2 - ...wSubmissionsWithIDRelationshipsBuild.swift | 2 - .../Paths/PathsV1BetaBuildLocalizations.swift | 6 +- .../PathsV1BetaBuildLocalizationsWithID.swift | 8 +- ...sV1BetaBuildLocalizationsWithIDBuild.swift | 6 +- ...uildLocalizationsWithIDRelationships.swift | 2 - ...ocalizationsWithIDRelationshipsBuild.swift | 2 - .../Generated/Paths/PathsV1BetaGroups.swift | 8 +- .../Paths/PathsV1BetaGroupsWithID.swift | 10 +- .../Paths/PathsV1BetaGroupsWithIDApp.swift | 8 +- .../PathsV1BetaGroupsWithIDBetaTesters.swift | 6 +- .../Paths/PathsV1BetaGroupsWithIDBuilds.swift | 6 +- ...PathsV1BetaGroupsWithIDRelationships.swift | 2 - ...hsV1BetaGroupsWithIDRelationshipsApp.swift | 2 - ...GroupsWithIDRelationshipsBetaTesters.swift | 8 +- ...1BetaGroupsWithIDRelationshipsBuilds.swift | 8 +- .../Paths/PathsV1BetaLicenseAgreements.swift | 6 +- .../PathsV1BetaLicenseAgreementsWithID.swift | 8 +- ...athsV1BetaLicenseAgreementsWithIDApp.swift | 8 +- ...LicenseAgreementsWithIDRelationships.swift | 2 - ...enseAgreementsWithIDRelationshipsApp.swift | 2 - .../Paths/PathsV1BetaTesterInvitations.swift | 4 +- .../Generated/Paths/PathsV1BetaTesters.swift | 8 +- .../Paths/PathsV1BetaTestersWithID.swift | 8 +- .../Paths/PathsV1BetaTestersWithIDApps.swift | 8 +- .../PathsV1BetaTestersWithIDBetaGroups.swift | 6 +- .../PathsV1BetaTestersWithIDBuilds.swift | 6 +- ...athsV1BetaTestersWithIDRelationships.swift | 2 - ...V1BetaTestersWithIDRelationshipsApps.swift | 6 +- ...TestersWithIDRelationshipsBetaGroups.swift | 8 +- ...BetaTestersWithIDRelationshipsBuilds.swift | 8 +- .../Paths/PathsV1BuildBetaDetails.swift | 4 +- .../Paths/PathsV1BuildBetaDetailsWithID.swift | 6 +- .../PathsV1BuildBetaDetailsWithIDBuild.swift | 6 +- ...1BuildBetaDetailsWithIDRelationships.swift | 2 - ...dBetaDetailsWithIDRelationshipsBuild.swift | 2 - .../Paths/PathsV1BuildBetaNotifications.swift | 4 +- .../Generated/Paths/PathsV1BuildBundles.swift | 2 - .../Paths/PathsV1BuildBundlesWithID.swift | 2 - ...undlesWithIDAppClipDomainCacheStatus.swift | 4 +- ...undlesWithIDAppClipDomainDebugStatus.swift | 4 +- ...dBundlesWithIDBetaAppClipInvocations.swift | 4 +- ...ildBundlesWithIDBuildBundleFileSizes.swift | 4 +- ...thsV1BuildBundlesWithIDRelationships.swift | 2 - ...elationshipsAppClipDomainCacheStatus.swift | 2 - ...elationshipsAppClipDomainDebugStatus.swift | 2 - ...DRelationshipsBetaAppClipInvocations.swift | 2 - ...hIDRelationshipsBuildBundleFileSizes.swift | 2 - .../Generated/Paths/PathsV1Builds.swift | 6 +- .../Generated/Paths/PathsV1BuildsWithID.swift | 8 +- .../Paths/PathsV1BuildsWithIDApp.swift | 8 +- ...BuildsWithIDAppEncryptionDeclaration.swift | 6 +- .../PathsV1BuildsWithIDAppStoreVersion.swift | 7 +- ...1BuildsWithIDBetaAppReviewSubmission.swift | 6 +- ...V1BuildsWithIDBetaBuildLocalizations.swift | 6 +- .../PathsV1BuildsWithIDBuildBetaDetail.swift | 6 +- ...hsV1BuildsWithIDDiagnosticSignatures.swift | 4 +- .../Paths/PathsV1BuildsWithIDIcons.swift | 6 +- ...PathsV1BuildsWithIDIndividualTesters.swift | 6 +- .../PathsV1BuildsWithIDPerfPowerMetrics.swift | 4 +- ...PathsV1BuildsWithIDPreReleaseVersion.swift | 6 +- .../PathsV1BuildsWithIDRelationships.swift | 2 - .../PathsV1BuildsWithIDRelationshipsApp.swift | 2 - ...elationshipsAppEncryptionDeclaration.swift | 6 +- ...dsWithIDRelationshipsAppStoreVersion.swift | 2 - ...RelationshipsBetaAppReviewSubmission.swift | 2 - ...DRelationshipsBetaBuildLocalizations.swift | 2 - ...1BuildsWithIDRelationshipsBetaGroups.swift | 6 +- ...dsWithIDRelationshipsBuildBetaDetail.swift | 2 - ...hIDRelationshipsDiagnosticSignatures.swift | 2 - ...athsV1BuildsWithIDRelationshipsIcons.swift | 2 - ...WithIDRelationshipsIndividualTesters.swift | 8 +- ...WithIDRelationshipsPreReleaseVersion.swift | 2 - .../Paths/PathsV1BundleIDCapabilities.swift | 4 +- .../PathsV1BundleIDCapabilitiesWithID.swift | 6 +- .../Generated/Paths/PathsV1BundleIDs.swift | 8 +- .../Paths/PathsV1BundleIDsWithID.swift | 10 +- .../Paths/PathsV1BundleIDsWithIDApp.swift | 8 +- ...1BundleIDsWithIDBundleIDCapabilities.swift | 6 +- .../PathsV1BundleIDsWithIDProfiles.swift | 6 +- .../PathsV1BundleIDsWithIDRelationships.swift | 2 - ...thsV1BundleIDsWithIDRelationshipsApp.swift | 2 - ...hIDRelationshipsBundleIDCapabilities.swift | 2 - ...BundleIDsWithIDRelationshipsProfiles.swift | 2 - .../Generated/Paths/PathsV1Certificates.swift | 6 +- .../Paths/PathsV1CertificatesWithID.swift | 6 +- .../Generated/Paths/PathsV1CiArtifacts.swift | 2 - .../Paths/PathsV1CiArtifactsWithID.swift | 4 +- .../Paths/PathsV1CiBuildActions.swift | 2 - .../Paths/PathsV1CiBuildActionsWithID.swift | 4 +- ...PathsV1CiBuildActionsWithIDArtifacts.swift | 4 +- .../PathsV1CiBuildActionsWithIDBuildRun.swift | 4 +- .../PathsV1CiBuildActionsWithIDIssues.swift | 4 +- ...sV1CiBuildActionsWithIDRelationships.swift | 2 - ...dActionsWithIDRelationshipsArtifacts.swift | 2 - ...ldActionsWithIDRelationshipsBuildRun.swift | 2 - ...uildActionsWithIDRelationshipsIssues.swift | 2 - ...ctionsWithIDRelationshipsTestResults.swift | 2 - ...thsV1CiBuildActionsWithIDTestResults.swift | 4 +- .../Generated/Paths/PathsV1CiBuildRuns.swift | 4 +- .../Paths/PathsV1CiBuildRunsWithID.swift | 4 +- .../PathsV1CiBuildRunsWithIDActions.swift | 4 +- .../PathsV1CiBuildRunsWithIDBuilds.swift | 6 +- ...athsV1CiBuildRunsWithIDRelationships.swift | 2 - ...iBuildRunsWithIDRelationshipsActions.swift | 2 - ...CiBuildRunsWithIDRelationshipsBuilds.swift | 2 - .../Generated/Paths/PathsV1CiIssues.swift | 2 - .../Paths/PathsV1CiIssuesWithID.swift | 4 +- .../Paths/PathsV1CiMacOsVersions.swift | 4 +- .../Paths/PathsV1CiMacOsVersionsWithID.swift | 4 +- ...V1CiMacOsVersionsWithIDRelationships.swift | 2 - ...ionsWithIDRelationshipsXcodeVersions.swift | 2 - ...V1CiMacOsVersionsWithIDXcodeVersions.swift | 4 +- .../Generated/Paths/PathsV1CiProducts.swift | 6 +- .../Paths/PathsV1CiProductsWithID.swift | 8 +- ...ProductsWithIDAdditionalRepositories.swift | 4 +- .../Paths/PathsV1CiProductsWithIDApp.swift | 68 +- .../PathsV1CiProductsWithIDBuildRuns.swift | 4 +- ...1CiProductsWithIDPrimaryRepositories.swift | 4 +- ...PathsV1CiProductsWithIDRelationships.swift | 2 - ...DRelationshipsAdditionalRepositories.swift | 2 - ...hsV1CiProductsWithIDRelationshipsApp.swift | 2 - ...ProductsWithIDRelationshipsBuildRuns.swift | 2 - ...thIDRelationshipsPrimaryRepositories.swift | 2 - ...ProductsWithIDRelationshipsWorkflows.swift | 2 - .../PathsV1CiProductsWithIDWorkflows.swift | 4 +- .../Paths/PathsV1CiTestResults.swift | 2 - .../Paths/PathsV1CiTestResultsWithID.swift | 4 +- .../Generated/Paths/PathsV1CiWorkflows.swift | 4 +- .../Paths/PathsV1CiWorkflowsWithID.swift | 8 +- .../PathsV1CiWorkflowsWithIDBuildRuns.swift | 4 +- ...athsV1CiWorkflowsWithIDRelationships.swift | 2 - ...orkflowsWithIDRelationshipsBuildRuns.swift | 2 - ...rkflowsWithIDRelationshipsRepository.swift | 2 - .../PathsV1CiWorkflowsWithIDRepository.swift | 4 +- .../Paths/PathsV1CiXcodeVersions.swift | 4 +- .../Paths/PathsV1CiXcodeVersionsWithID.swift | 4 +- ...V1CiXcodeVersionsWithIDMacOsVersions.swift | 4 +- ...V1CiXcodeVersionsWithIDRelationships.swift | 2 - ...ionsWithIDRelationshipsMacOsVersions.swift | 2 - .../PathsV1CustomerReviewResponses.swift | 4 +- ...PathsV1CustomerReviewResponsesWithID.swift | 6 +- .../Paths/PathsV1CustomerReviews.swift | 2 - .../Paths/PathsV1CustomerReviewsWithID.swift | 4 +- ...V1CustomerReviewsWithIDRelationships.swift | 2 - ...erReviewsWithIDRelationshipsResponse.swift | 2 - ...PathsV1CustomerReviewsWithIDResponse.swift | 4 +- .../Generated/Paths/PathsV1Devices.swift | 6 +- .../Paths/PathsV1DevicesWithID.swift | 6 +- .../Paths/PathsV1DiagnosticSignatures.swift | 2 - .../PathsV1DiagnosticSignaturesWithID.swift | 2 - ...athsV1DiagnosticSignaturesWithIDLogs.swift | 4 +- .../PathsV1EndAppAvailabilityPreOrders.swift | 20 + .../PathsV1EndUserLicenseAgreements.swift | 4 +- ...athsV1EndUserLicenseAgreementsWithID.swift | 8 +- ...LicenseAgreementsWithIDRelationships.swift | 2 - ...ementsWithIDRelationshipsTerritories.swift | 2 - ...erLicenseAgreementsWithIDTerritories.swift | 6 +- .../Paths/PathsV1FinanceReports.swift | 4 +- .../PathsV1GameCenterAchievementImages.swift | 20 + ...sV1GameCenterAchievementImagesWithID.swift | 49 + ...V1GameCenterAchievementLocalizations.swift | 20 + ...CenterAchievementLocalizationsWithID.swift | 89 + ...lizationsWithIDGameCenterAchievement.swift | 116 + ...ionsWithIDGameCenterAchievementImage.swift | 63 + ...mentLocalizationsWithIDRelationships.swift | 16 + ...IDRelationshipsGameCenterAchievement.swift | 16 + ...ationshipsGameCenterAchievementImage.swift | 16 + ...PathsV1GameCenterAchievementReleases.swift | 20 + ...1GameCenterAchievementReleasesWithID.swift | 42 + .../Paths/PathsV1GameCenterAchievements.swift | 20 + .../PathsV1GameCenterAchievementsWithID.swift | 94 + ...erAchievementsWithIDGroupAchievement.swift | 116 + ...enterAchievementsWithIDLocalizations.swift | 84 + ...enterAchievementsWithIDRelationships.swift | 16 + ...sWithIDRelationshipsGroupAchievement.swift | 24 + ...entsWithIDRelationshipsLocalizations.swift | 16 + ...ievementsWithIDRelationshipsReleases.swift | 16 + ...GameCenterAchievementsWithIDReleases.swift | 93 + .../Paths/PathsV1GameCenterAppVersions.swift | 20 + .../PathsV1GameCenterAppVersionsWithID.swift | 81 + ...nterAppVersionsWithIDAppStoreVersion.swift | 280 + ...pVersionsWithIDCompatibilityVersions.swift | 83 + ...CenterAppVersionsWithIDRelationships.swift | 16 + ...nsWithIDRelationshipsAppStoreVersion.swift | 16 + ...IDRelationshipsCompatibilityVersions.swift | 34 + .../Paths/PathsV1GameCenterDetails.swift | 20 + .../PathsV1GameCenterDetailsWithID.swift | 193 + ...nterDetailsWithIDAchievementReleases.swift | 93 + ...rDetailsWithIDGameCenterAchievements.swift | 128 + ...erDetailsWithIDGameCenterAppVersions.swift | 83 + ...meCenterDetailsWithIDGameCenterGroup.swift | 137 + ...tailsWithIDGameCenterLeaderboardSets.swift | 147 + ...rDetailsWithIDGameCenterLeaderboards.swift | 153 + ...nterDetailsWithIDLeaderboardReleases.swift | 99 + ...rDetailsWithIDLeaderboardSetReleases.swift | 90 + ...GameCenterDetailsWithIDRelationships.swift | 16 + ...thIDRelationshipsAchievementReleases.swift | 16 + ...DRelationshipsGameCenterAchievements.swift | 30 + ...IDRelationshipsGameCenterAppVersions.swift | 16 + ...lsWithIDRelationshipsGameCenterGroup.swift | 16 + ...lationshipsGameCenterLeaderboardSets.swift | 30 + ...DRelationshipsGameCenterLeaderboards.swift | 30 + ...thIDRelationshipsLeaderboardReleases.swift | 16 + ...DRelationshipsLeaderboardSetReleases.swift | 16 + .../PathsV1GameCenterEnabledVersions.swift | 2 - ...thsV1GameCenterEnabledVersionsWithID.swift | 2 - ...bledVersionsWithIDCompatibleVersions.swift | 7 +- ...erEnabledVersionsWithIDRelationships.swift | 2 - ...ithIDRelationshipsCompatibleVersions.swift | 14 +- .../Paths/PathsV1GameCenterGroups.swift | 147 + .../Paths/PathsV1GameCenterGroupsWithID.swift | 145 + ...erGroupsWithIDGameCenterAchievements.swift | 128 + ...eCenterGroupsWithIDGameCenterDetails.swift | 245 + ...roupsWithIDGameCenterLeaderboardSets.swift | 147 + ...erGroupsWithIDGameCenterLeaderboards.swift | 153 + ...1GameCenterGroupsWithIDRelationships.swift | 16 + ...DRelationshipsGameCenterAchievements.swift | 30 + ...WithIDRelationshipsGameCenterDetails.swift | 16 + ...lationshipsGameCenterLeaderboardSets.swift | 30 + ...DRelationshipsGameCenterLeaderboards.swift | 30 + .../PathsV1GameCenterLeaderboardImages.swift | 20 + ...sV1GameCenterLeaderboardImagesWithID.swift | 49 + ...V1GameCenterLeaderboardLocalizations.swift | 20 + ...CenterLeaderboardLocalizationsWithID.swift | 73 + ...ionsWithIDGameCenterLeaderboardImage.swift | 64 + ...oardLocalizationsWithIDRelationships.swift | 16 + ...ationshipsGameCenterLeaderboardImage.swift | 16 + ...PathsV1GameCenterLeaderboardReleases.swift | 20 + ...1GameCenterLeaderboardReleasesWithID.swift | 42 + ...athsV1GameCenterLeaderboardSetImages.swift | 20 + ...GameCenterLeaderboardSetImagesWithID.swift | 49 + ...ameCenterLeaderboardSetLocalizations.swift | 20 + ...terLeaderboardSetLocalizationsWithID.swift | 70 + ...sWithIDGameCenterLeaderboardSetImage.swift | 61 + ...dSetLocalizationsWithIDRelationships.swift | 16 + ...onshipsGameCenterLeaderboardSetImage.swift | 16 + ...terLeaderboardSetMemberLocalizations.swift | 99 + ...derboardSetMemberLocalizationsWithID.swift | 24 + ...lizationsWithIDGameCenterLeaderboard.swift | 141 + ...ationsWithIDGameCenterLeaderboardSet.swift | 138 + ...mberLocalizationsWithIDRelationships.swift | 16 + ...IDRelationshipsGameCenterLeaderboard.swift | 16 + ...elationshipsGameCenterLeaderboardSet.swift | 16 + ...hsV1GameCenterLeaderboardSetReleases.swift | 20 + ...meCenterLeaderboardSetReleasesWithID.swift | 42 + .../PathsV1GameCenterLeaderboardSets.swift | 20 + ...thsV1GameCenterLeaderboardSetsWithID.swift | 116 + ...oardSetsWithIDGameCenterLeaderboards.swift | 153 + ...erboardSetsWithIDGroupLeaderboardSet.swift | 138 + ...erLeaderboardSetsWithIDLocalizations.swift | 79 + ...erLeaderboardSetsWithIDRelationships.swift | 16 + ...DRelationshipsGameCenterLeaderboards.swift | 38 + ...thIDRelationshipsGroupLeaderboardSet.swift | 24 + ...SetsWithIDRelationshipsLocalizations.swift | 16 + ...boardSetsWithIDRelationshipsReleases.swift | 16 + ...eCenterLeaderboardSetsWithIDReleases.swift | 90 + .../Paths/PathsV1GameCenterLeaderboards.swift | 20 + .../PathsV1GameCenterLeaderboardsWithID.swift | 105 + ...erLeaderboardsWithIDGroupLeaderboard.swift | 141 + ...enterLeaderboardsWithIDLocalizations.swift | 91 + ...enterLeaderboardsWithIDRelationships.swift | 16 + ...sWithIDRelationshipsGroupLeaderboard.swift | 24 + ...ardsWithIDRelationshipsLocalizations.swift | 16 + ...derboardsWithIDRelationshipsReleases.swift | 16 + ...GameCenterLeaderboardsWithIDReleases.swift | 99 + ...AppPurchaseAppStoreReviewScreenshots.swift | 4 +- ...chaseAppStoreReviewScreenshotsWithID.swift | 8 +- .../PathsV1InAppPurchaseAvailabilities.swift | 4 +- ...sV1InAppPurchaseAvailabilitiesWithID.swift | 4 +- ...labilitiesWithIDAvailableTerritories.swift | 4 +- ...aseAvailabilitiesWithIDRelationships.swift | 2 - ...hIDRelationshipsAvailableTerritories.swift | 2 - .../Paths/PathsV1InAppPurchaseContents.swift | 2 - .../PathsV1InAppPurchaseContentsWithID.swift | 4 +- .../PathsV1InAppPurchaseLocalizations.swift | 4 +- ...hsV1InAppPurchaseLocalizationsWithID.swift | 8 +- .../PathsV1InAppPurchasePriceSchedules.swift | 4 +- ...sV1InAppPurchasePriceSchedulesWithID.swift | 4 +- ...ePriceSchedulesWithIDAutomaticPrices.swift | 4 +- ...asePriceSchedulesWithIDBaseTerritory.swift | 4 +- ...hasePriceSchedulesWithIDManualPrices.swift | 4 +- ...asePriceSchedulesWithIDRelationships.swift | 2 - ...esWithIDRelationshipsAutomaticPrices.swift | 2 - ...ulesWithIDRelationshipsBaseTerritory.swift | 2 - ...dulesWithIDRelationshipsManualPrices.swift | 2 - .../PathsV1InAppPurchaseSubmissions.swift | 4 +- .../Paths/PathsV1InAppPurchases.swift | 2 - .../Paths/PathsV1InAppPurchasesWithID.swift | 5 +- .../Paths/PathsV1PreReleaseVersions.swift | 6 +- .../PathsV1PreReleaseVersionsWithID.swift | 8 +- .../PathsV1PreReleaseVersionsWithIDApp.swift | 8 +- ...athsV1PreReleaseVersionsWithIDBuilds.swift | 6 +- ...reReleaseVersionsWithIDRelationships.swift | 2 - ...eleaseVersionsWithIDRelationshipsApp.swift | 2 - ...aseVersionsWithIDRelationshipsBuilds.swift | 2 - .../Generated/Paths/PathsV1Profiles.swift | 6 +- .../Paths/PathsV1ProfilesWithID.swift | 6 +- .../Paths/PathsV1ProfilesWithIDBundleID.swift | 6 +- .../PathsV1ProfilesWithIDCertificates.swift | 6 +- .../Paths/PathsV1ProfilesWithIDDevices.swift | 6 +- .../PathsV1ProfilesWithIDRelationships.swift | 2 - ...1ProfilesWithIDRelationshipsBundleID.swift | 2 - ...filesWithIDRelationshipsCertificates.swift | 2 - ...V1ProfilesWithIDRelationshipsDevices.swift | 2 - .../Paths/PathsV1PromotedPurchaseImages.swift | 4 +- .../PathsV1PromotedPurchaseImagesWithID.swift | 8 +- .../Paths/PathsV1PromotedPurchases.swift | 4 +- .../PathsV1PromotedPurchasesWithID.swift | 8 +- ...omotedPurchasesWithIDPromotionImages.swift | 4 +- ...PromotedPurchasesWithIDRelationships.swift | 2 - ...esWithIDRelationshipsPromotionImages.swift | 2 - .../Paths/PathsV1ReviewSubmissionItems.swift | 4 +- .../PathsV1ReviewSubmissionItemsWithID.swift | 6 +- .../Paths/PathsV1ReviewSubmissions.swift | 6 +- .../PathsV1ReviewSubmissionsWithID.swift | 6 +- .../PathsV1ReviewSubmissionsWithIDItems.swift | 5 +- ...ReviewSubmissionsWithIDRelationships.swift | 2 - ...wSubmissionsWithIDRelationshipsItems.swift | 2 - .../Paths/PathsV1RoutingAppCoverages.swift | 4 +- .../PathsV1RoutingAppCoveragesWithID.swift | 8 +- .../Generated/Paths/PathsV1SalesReports.swift | 4 +- .../Paths/PathsV1ScmGitReferences.swift | 2 - .../Paths/PathsV1ScmGitReferencesWithID.swift | 4 +- .../Generated/Paths/PathsV1ScmProviders.swift | 4 +- .../Paths/PathsV1ScmProvidersWithID.swift | 4 +- ...thsV1ScmProvidersWithIDRelationships.swift | 2 - ...idersWithIDRelationshipsRepositories.swift | 2 - ...athsV1ScmProvidersWithIDRepositories.swift | 4 +- .../Paths/PathsV1ScmPullRequests.swift | 2 - .../Paths/PathsV1ScmPullRequestsWithID.swift | 4 +- .../Paths/PathsV1ScmRepositories.swift | 4 +- .../Paths/PathsV1ScmRepositoriesWithID.swift | 4 +- ...V1ScmRepositoriesWithIDGitReferences.swift | 4 +- ...sV1ScmRepositoriesWithIDPullRequests.swift | 4 +- ...V1ScmRepositoriesWithIDRelationships.swift | 2 - ...riesWithIDRelationshipsGitReferences.swift | 2 - ...oriesWithIDRelationshipsPullRequests.swift | 2 - ...ubscriptionAppStoreReviewScreenshots.swift | 4 +- ...ptionAppStoreReviewScreenshotsWithID.swift | 8 +- .../PathsV1SubscriptionAvailabilities.swift | 4 +- ...hsV1SubscriptionAvailabilitiesWithID.swift | 4 +- ...labilitiesWithIDAvailableTerritories.swift | 4 +- ...ionAvailabilitiesWithIDRelationships.swift | 2 - ...hIDRelationshipsAvailableTerritories.swift | 2 - .../PathsV1SubscriptionGracePeriods.swift | 2 - ...athsV1SubscriptionGracePeriodsWithID.swift | 6 +- ...athsV1SubscriptionGroupLocalizations.swift | 4 +- ...SubscriptionGroupLocalizationsWithID.swift | 8 +- .../PathsV1SubscriptionGroupSubmissions.swift | 4 +- .../Paths/PathsV1SubscriptionGroups.swift | 4 +- .../PathsV1SubscriptionGroupsWithID.swift | 8 +- ...ubscriptionGroupsWithIDRelationships.swift | 2 - ...nshipsSubscriptionGroupLocalizations.swift | 2 - ...oupsWithIDRelationshipsSubscriptions.swift | 2 - ...WithIDSubscriptionGroupLocalizations.swift | 4 +- ...ubscriptionGroupsWithIDSubscriptions.swift | 4 +- ...athsV1SubscriptionIntroductoryOffers.swift | 4 +- ...SubscriptionIntroductoryOffersWithID.swift | 6 +- .../PathsV1SubscriptionLocalizations.swift | 4 +- ...thsV1SubscriptionLocalizationsWithID.swift | 8 +- ...hsV1SubscriptionOfferCodeCustomCodes.swift | 4 +- ...bscriptionOfferCodeCustomCodesWithID.swift | 6 +- ...SubscriptionOfferCodeOneTimeUseCodes.swift | 4 +- ...iptionOfferCodeOneTimeUseCodesWithID.swift | 57 +- ...OfferCodeOneTimeUseCodesWithIDValues.swift | 4 +- .../Paths/PathsV1SubscriptionOfferCodes.swift | 4 +- .../PathsV1SubscriptionOfferCodesWithID.swift | 6 +- ...scriptionOfferCodesWithIDCustomCodes.swift | 4 +- ...ptionOfferCodesWithIDOneTimeUseCodes.swift | 4 +- ...V1SubscriptionOfferCodesWithIDPrices.swift | 4 +- ...riptionOfferCodesWithIDRelationships.swift | 2 - ...rCodesWithIDRelationshipsCustomCodes.swift | 2 - ...esWithIDRelationshipsOneTimeUseCodes.swift | 2 - ...nOfferCodesWithIDRelationshipsPrices.swift | 2 - .../PathsV1SubscriptionPricePoints.swift | 2 - ...PathsV1SubscriptionPricePointsWithID.swift | 4 +- ...iptionPricePointsWithIDEqualizations.swift | 4 +- ...iptionPricePointsWithIDRelationships.swift | 2 - ...intsWithIDRelationshipsEqualizations.swift | 2 - .../Paths/PathsV1SubscriptionPrices.swift | 4 +- .../PathsV1SubscriptionPricesWithID.swift | 4 +- ...PathsV1SubscriptionPromotionalOffers.swift | 4 +- ...1SubscriptionPromotionalOffersWithID.swift | 8 +- ...riptionPromotionalOffersWithIDPrices.swift | 4 +- ...PromotionalOffersWithIDRelationships.swift | 2 - ...ionalOffersWithIDRelationshipsPrices.swift | 2 - .../PathsV1SubscriptionSubmissions.swift | 4 +- .../Paths/PathsV1Subscriptions.swift | 4 +- .../Paths/PathsV1SubscriptionsWithID.swift | 8 +- ...ptionsWithIDAppStoreReviewScreenshot.swift | 4 +- ...ubscriptionsWithIDIntroductoryOffers.swift | 4 +- ...PathsV1SubscriptionsWithIDOfferCodes.swift | 4 +- ...athsV1SubscriptionsWithIDPricePoints.swift | 4 +- .../PathsV1SubscriptionsWithIDPrices.swift | 4 +- ...1SubscriptionsWithIDPromotedPurchase.swift | 4 +- ...SubscriptionsWithIDPromotionalOffers.swift | 4 +- ...hsV1SubscriptionsWithIDRelationships.swift | 2 - ...elationshipsAppStoreReviewScreenshot.swift | 2 - ...ithIDRelationshipsIntroductoryOffers.swift | 6 +- ...iptionsWithIDRelationshipsOfferCodes.swift | 2 - ...ptionsWithIDRelationshipsPricePoints.swift | 2 - ...bscriptionsWithIDRelationshipsPrices.swift | 6 +- ...sWithIDRelationshipsPromotedPurchase.swift | 2 - ...WithIDRelationshipsPromotionalOffers.swift | 2 - ...elationshipsSubscriptionAvailability.swift | 2 - ...lationshipsSubscriptionLocalizations.swift | 2 - ...ptionsWithIDSubscriptionAvailability.swift | 4 +- ...tionsWithIDSubscriptionLocalizations.swift | 4 +- .../Generated/Paths/PathsV1Territories.swift | 4 +- .../PathsV1TerritoryAvailabilities.swift | 16 + ...PathsV1TerritoryAvailabilitiesWithID.swift | 20 + .../Paths/PathsV1UserInvitations.swift | 8 +- .../Paths/PathsV1UserInvitationsWithID.swift | 8 +- ...V1UserInvitationsWithIDRelationships.swift | 2 - ...ationsWithIDRelationshipsVisibleApps.swift | 2 - ...hsV1UserInvitationsWithIDVisibleApps.swift | 8 +- .../Generated/Paths/PathsV1Users.swift | 6 +- .../Generated/Paths/PathsV1UsersWithID.swift | 10 +- .../PathsV1UsersWithIDRelationships.swift | 2 - ...1UsersWithIDRelationshipsVisibleApps.swift | 10 +- .../Paths/PathsV1UsersWithIDVisibleApps.swift | 8 +- Sources/OpenAPI/Generated/Paths/PathsV2.swift | 2 - .../Paths/PathsV2AppAvailabilities.swift | 20 + .../PathsV2AppAvailabilitiesWithID.swift | 62 + ...AppAvailabilitiesWithIDRelationships.swift | 16 + ...RelationshipsTerritoryAvailabilities.swift | 16 + ...ilitiesWithIDTerritoryAvailabilities.swift | 60 + .../PathsV2AppStoreVersionExperiments.swift | 4 +- ...hsV2AppStoreVersionExperimentsWithID.swift | 8 +- ...DAppStoreVersionExperimentTreatments.swift | 5 +- ...ersionExperimentsWithIDRelationships.swift | 2 - ...sAppStoreVersionExperimentTreatments.swift | 2 - .../Paths/PathsV2InAppPurchases.swift | 4 +- .../Paths/PathsV2InAppPurchasesWithID.swift | 8 +- ...chasesWithIDAppStoreReviewScreenshot.swift | 4 +- .../PathsV2InAppPurchasesWithIDContent.swift | 4 +- ...InAppPurchasesWithIDIapPriceSchedule.swift | 4 +- ...hasesWithIDInAppPurchaseAvailability.swift | 4 +- ...asesWithIDInAppPurchaseLocalizations.swift | 4 +- ...thsV2InAppPurchasesWithIDPricePoints.swift | 4 +- ...InAppPurchasesWithIDPromotedPurchase.swift | 4 +- ...sV2InAppPurchasesWithIDRelationships.swift | 2 - ...elationshipsAppStoreReviewScreenshot.swift | 2 - ...pPurchasesWithIDRelationshipsContent.swift | 2 - ...sWithIDRelationshipsIapPriceSchedule.swift | 2 - ...lationshipsInAppPurchaseAvailability.swift | 2 - ...ationshipsInAppPurchaseLocalizations.swift | 2 - ...chasesWithIDRelationshipsPricePoints.swift | 2 - ...sWithIDRelationshipsPromotedPurchase.swift | 2 - .../Paths/PathsV2SandboxTesters.swift | 4 +- ...oxTestersClearPurchaseHistoryRequest.swift | 4 +- .../Paths/PathsV2SandboxTestersWithID.swift | 4 +- Sources/OpenAPI/Generated/Paths/PathsV3.swift | 2 - .../Paths/PathsV3AppPricePoints.swift | 2 - .../Paths/PathsV3AppPricePointsWithID.swift | 4 +- ...sV3AppPricePointsWithIDEqualizations.swift | 6 +- ...sV3AppPricePointsWithIDRelationships.swift | 2 - ...intsWithIDRelationshipsEqualizations.swift | 2 - ...penapi.json => app_store_connect_api.json} | 92187 ++++++++++------ Sources/OpenAPI/create-api.yml | 44 + 1502 files changed, 79838 insertions(+), 38665 deletions(-) delete mode 100644 Sources/OpenAPI/.create-api.yml create mode 100644 Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppAvailabilityV2.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppAvailabilityV2CreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppAvailabilityV2Response.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppCategoriesWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppCategoryWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppPreOrderWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/AppsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BuildIconsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BuildWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BuildsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/BundleIDWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/CertificatesWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/DevicesWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrder.swift create mode 100644 Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievement.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementImage.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalization.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementRelease.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleasesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAchievementsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersion.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersionResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersionUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterAppVersionsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetail.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterDetailsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterGroupsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboard.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardFormatter.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImage.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalization.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardRelease.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleasesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSet.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImage.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalization.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalization.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetRelease.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseCreateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleasesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardUpdateRequest.swift create mode 100644 Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardsResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/PreReleaseVersionsWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/PrereleaseVersionWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/ProfilesWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/RoutingAppCoverageWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/TerritoryAvailabilitiesResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/TerritoryAvailability.swift create mode 100644 Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityInlineCreate.swift create mode 100644 Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityResponse.swift create mode 100644 Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityUpdateRequest.swift rename Sources/OpenAPI/Generated/{Paths/Paths+Extensions.swift => Extensions/APIEndpoint.swift} (83%) rename Sources/OpenAPI/Generated/{Entities/Entities+Extensions.swift => Extensions/StringCodingKey.swift} (95%) create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1EndAppAvailabilityPreOrders.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievementImage.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievement.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievementImage.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsGroupAchievement.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersions.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDCompatibilityVersions.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsAppStoreVersion.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsCompatibilityVersions.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAchievements.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAppVersions.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterGroup.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboardSets.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardSetReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsAchievementReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAchievements.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterGroup.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboardSets.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardSetReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboardSets.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterAchievements.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboardSets.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationshipsGameCenterLeaderboardImage.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationshipsGameCenterLeaderboardSetImage.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboardSet.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboard.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboardSet.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGroupLeaderboardSet.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboards.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsGroupLeaderboard.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDReleases.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilitiesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilities.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationships.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationshipsTerritoryAvailabilities.swift create mode 100644 Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDTerritoryAvailabilities.swift rename Sources/OpenAPI/{app_store_connect_api_2.3_openapi.json => app_store_connect_api.json} (81%) create mode 100644 Sources/OpenAPI/create-api.yml diff --git a/Makefile b/Makefile index b8469c52..675e1230 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ update: download generate # see https://github.com/AvdLee/appstoreconnect-swift-sdk/pull/197 .PHONY: download download: - curl -fsSL -o - https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip | bsdtar -xOf - | jq '.components.schemas.BundleIdPlatform.enum |= [ "IOS", "MAC_OS", "UNIVERSAL" ] | del(.["x-important"]) | del(.. |."enum"? | select(. != null and length == 0))' > Sources/OpenAPI/app_store_connect_api_2.3_openapi.json + curl -fsSL -o - https://developer.apple.com/sample-code/app-store-connect/app-store-connect-openapi-specification.zip | bsdtar -xOf - | jq '.components.schemas.BundleIdPlatform.enum |= [ "IOS", "MAC_OS", "UNIVERSAL" ] | del(.["x-important"]) | del(.. |."enum"? | select(. != null and length == 0))' > Sources/OpenAPI/app_store_connect_api.json # Runs the CreateAPI generator to update generated source code .PHONY: generate diff --git a/Package.swift b/Package.swift index b6bc3773..ee26d449 100644 --- a/Package.swift +++ b/Package.swift @@ -33,12 +33,12 @@ let package = Package( name: "AppStoreConnect-Swift-SDK", dependencies: targetDependencies, path: "Sources", - exclude: ["OpenAPI/app_store_connect_api_2.3_openapi.json"] + exclude: ["OpenAPI/app_store_connect_api.json"] ), .binaryTarget( name: "create-api", // Find the URL and checksum at https://github.com/createapi/createapi/releases/latest - url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.0.5/create-api.artifactbundle.zip", - checksum: "89c75ec3b2938d08b961b94e70e6dd6fa0ff52a90037304d41718cd5fb58bd24" // Find at https://github.com/createapi/createapi/releases/latest + url: "https://github.com/CreateAPI/CreateAPI/releases/download/0.2.0/create-api.artifactbundle.zip", + checksum: "6f8a3ce099f07eb2655ccaf6f66d8c9a09b74bb2307781c4adec36609ddac009" ), .plugin( name: "CreateAPI", diff --git a/Package@swift-5.5.swift b/Package@swift-5.5.swift index cadc590c..3bd4ddd2 100644 --- a/Package@swift-5.5.swift +++ b/Package@swift-5.5.swift @@ -19,6 +19,6 @@ let package = Package( name: "AppStoreConnect-Swift-SDK", dependencies: ["URLQueryEncoder"], path: "Sources", - exclude: ["OpenAPI/app_store_connect_api_2.3_openapi.json"]) + exclude: ["OpenAPI/app_store_connect_api.json"]) ] ) diff --git a/Plugins/CreateAPI/Plugin.swift b/Plugins/CreateAPI/Plugin.swift index c76f0b64..6ccbe151 100644 --- a/Plugins/CreateAPI/Plugin.swift +++ b/Plugins/CreateAPI/Plugin.swift @@ -12,11 +12,9 @@ struct Plugin: CommandPlugin { process.executableURL = URL(fileURLWithPath: createAPI.path.string) process.arguments = [ "generate", - "app_store_connect_api_2.3_openapi.json", - "--module", "AppStoreConnect_Swift_SDK", + "app_store_connect_api.json", "--output", "Generated", - "--config", ".create-api.yml", - "--split", + "--config", "create-api.yml", "--clean" ] diff --git a/Sources/Endpoint.swift b/Sources/Endpoint.swift index bbd3a805..ba0d5a0a 100644 --- a/Sources/Endpoint.swift +++ b/Sources/Endpoint.swift @@ -32,67 +32,21 @@ public struct Request { public var headers: [String: String]? public var id: String? - public init(method: String, path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) { + public init(path: String, method: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil, id: String) { self.method = method self.path = path self.query = query self.headers = headers + self.id = id } - public init(method: String, path: String, query: [(String, String?)]? = nil, body: U?, headers: [String: String]? = nil) { + public init(path: String, method: String, query: [(String, String?)]? = nil, body: U?, headers: [String: String]? = nil, id: String) { self.method = method self.path = path self.query = query self.body = body.map(AnyEncodable.init) self.headers = headers - } - - public static func get(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "GET", path: path, query: query, headers: headers) - } - - public static func post(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "POST", path: path, query: query, headers: headers) - } - - public static func post(_ path: String, query: [(String, String?)]? = nil, body: U?, headers: [String: String]? = nil) -> Request { - Request(method: "POST", path: path, query: query, body: body, headers: headers) - } - - public static func put(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "PUT", path: path, query: query, headers: headers) - } - - public static func put(_ path: String, query: [(String, String?)]? = nil, body: U?, headers: [String: String]? = nil) -> Request { - Request(method: "PUT", path: path, query: query, body: body, headers: headers) - } - - public static func patch(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "PATCH", path: path, query: query, headers: headers) - } - - public static func patch(_ path: String, query: [(String, String?)]? = nil, body: U?, headers: [String: String]? = nil) -> Request { - Request(method: "PATCH", path: path, query: query, body: body, headers: headers) - } - - public static func delete(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "DELETE", path: path, query: query, headers: headers) - } - - public static func delete(_ path: String, query: [(String, String?)]? = nil, body: U?, headers: [String: String]? = nil) -> Request { - Request(method: "DELETE", path: path, query: query, body: body, headers: headers) - } - - public static func options(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "OPTIONS", path: path, query: query, headers: headers) - } - - public static func head(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "HEAD", path: path, query: query, headers: headers) - } - - public static func trace(_ path: String, query: [(String, String?)]? = nil, headers: [String: String]? = nil) -> Request { - Request(method: "TRACE", path: path, query: query, headers: headers) + self.id = id } } diff --git a/Sources/OpenAPI/.create-api.yml b/Sources/OpenAPI/.create-api.yml deleted file mode 100644 index cdcf4ca7..00000000 --- a/Sources/OpenAPI/.create-api.yml +++ /dev/null @@ -1,52 +0,0 @@ -# Modifier for all generated declarations -access: public -# Add @available(*, deprecated) attributed -isAddingDeprecations: true -# Available values: ["spaces", "tabs"] -indentation: tabs -# Parses dates (e.g. "2021-09-29") using `NaiveDate` (https://github.com/CreateAPI/NaiveDate) -isNaiveDateEnabled: false -# Overrides file header comment -fileHeaderComment: "// Generated by Create API\n// https://github.com/CreateAPI/CreateAPI" - -paths: - style: rest - # Generate response headers using https://github.com/CreateAPI/HTTPHeaders - isGeneratingResponseHeaders: true - # Add operation id to each request - isAddingOperationIds: false - # The types to import, by default uses "Get" (https://github.com/CreateAPI/Get) - imports: [] - # Inline simple requests, like the ones with a single parameter - isInliningSimpleRequests: true - # Inline simple parametesr with few arguments. - isInliningSimpleQueryParameters: true - # Threshold from which to start inlining query parameters - simpleQueryParametersThreshold: 2 - # Tries to remove redundant paths - isRemovingRedundantPaths: true - namespace: "APIEndpoint" - # Adds known types to Apple specific content-types. - # In CreateAPI 0.5.0 there is a typo, update this configuration key when moving to newer version - # (https://github.com/CreateAPI/CreateAPI/pull/78). - overridenBodyTypes: - application/vnd.apple.diagnostic-logs+json: DiagnosticLogs - application/vnd.apple.xcode-metrics+json: XcodeMetrics - -entities: - isGeneratingCustomCodingKeys: false - isGeneratingIdentifiableConformance: true - -comments: - # Generate comments - isEnabled: true - # Generate titles - isAddingTitles: true - # Generate description - isAddingDescription: true - # Generate examples - isAddingExamples: true - # Add links to the external documenatation - isAddingExternalDocumentation: true - # Auto-capitalizes comments - isCapitalizationEnabled: true diff --git a/Sources/OpenAPI/Generated/Entities/Actor.swift b/Sources/OpenAPI/Generated/Entities/Actor.swift index 0b804dc5..e139199d 100644 --- a/Sources/OpenAPI/Generated/Entities/Actor.swift +++ b/Sources/OpenAPI/Generated/Entities/Actor.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct Actor: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case actors @@ -56,7 +54,7 @@ public struct Actor: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -68,7 +66,7 @@ public struct Actor: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -76,6 +74,6 @@ public struct Actor: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ActorResponse.swift b/Sources/OpenAPI/Generated/Entities/ActorResponse.swift index 645dde8c..c83d2ab4 100644 --- a/Sources/OpenAPI/Generated/Entities/ActorResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ActorResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift b/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift index 81cb05cc..5522667c 100644 --- a/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ActorsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift index d67ccb70..3ab3feb3 100644 --- a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct AgeRatingDeclaration: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ageRatingDeclarations @@ -170,7 +168,7 @@ public struct AgeRatingDeclaration: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -182,7 +180,7 @@ public struct AgeRatingDeclaration: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -190,6 +188,6 @@ public struct AgeRatingDeclaration: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationResponse.swift b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationResponse.swift index 882d0a47..81172663 100644 --- a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationUpdateRequest.swift index bad447bc..dd6e107d 100644 --- a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationWithoutIncludesResponse.swift new file mode 100644 index 00000000..114a3a3b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AgeRatingDeclarationWithoutIncludesResponse: Codable { + /// AppStoreVersion + public var data: AppStoreVersion + public var links: DocumentLinks + + public init(data: AppStoreVersion, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AppStoreVersion.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/App.swift b/Sources/OpenAPI/Generated/Entities/App.swift index 1b421932..f9b9569a 100644 --- a/Sources/OpenAPI/Generated/Entities/App.swift +++ b/Sources/OpenAPI/Generated/Entities/App.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct App: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case apps @@ -81,6 +79,7 @@ public struct App: Codable, Identifiable { } public struct Relationships: Codable { + public var appEncryptionDeclarations: AppEncryptionDeclarations? public var ciProduct: CiProduct? public var betaGroups: BetaGroups? public var appStoreVersions: AppStoreVersions? @@ -107,8 +106,83 @@ public struct App: Codable, Identifiable { public var appEvents: AppEvents? public var reviewSubmissions: ReviewSubmissions? public var subscriptionGracePeriod: SubscriptionGracePeriod? + public var gameCenterDetail: GameCenterDetail? public var appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? + public struct AppEncryptionDeclarations: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appEncryptionDeclarations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + public struct CiProduct: Codable { public var links: Links? public var data: Data? @@ -1790,6 +1864,76 @@ public struct App: Codable, Identifiable { } } + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + public struct AppStoreVersionExperimentsV2: Codable { public var links: Links? public var meta: PagingInformation? @@ -1864,7 +2008,8 @@ public struct App: Codable, Identifiable { } } - public init(ciProduct: CiProduct? = nil, betaGroups: BetaGroups? = nil, appStoreVersions: AppStoreVersions? = nil, preReleaseVersions: PreReleaseVersions? = nil, betaAppLocalizations: BetaAppLocalizations? = nil, builds: Builds? = nil, betaLicenseAgreement: BetaLicenseAgreement? = nil, betaAppReviewDetail: BetaAppReviewDetail? = nil, appInfos: AppInfos? = nil, appClips: AppClips? = nil, endUserLicenseAgreement: EndUserLicenseAgreement? = nil, preOrder: PreOrder? = nil, prices: Prices? = nil, availableTerritories: AvailableTerritories? = nil, inAppPurchases: InAppPurchases? = nil, subscriptionGroups: SubscriptionGroups? = nil, gameCenterEnabledVersions: GameCenterEnabledVersions? = nil, appCustomProductPages: AppCustomProductPages? = nil, inAppPurchasesV2: InAppPurchasesV2? = nil, promotedPurchases: PromotedPurchases? = nil, appEvents: AppEvents? = nil, reviewSubmissions: ReviewSubmissions? = nil, subscriptionGracePeriod: SubscriptionGracePeriod? = nil, appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? = nil) { + public init(appEncryptionDeclarations: AppEncryptionDeclarations? = nil, ciProduct: CiProduct? = nil, betaGroups: BetaGroups? = nil, appStoreVersions: AppStoreVersions? = nil, preReleaseVersions: PreReleaseVersions? = nil, betaAppLocalizations: BetaAppLocalizations? = nil, builds: Builds? = nil, betaLicenseAgreement: BetaLicenseAgreement? = nil, betaAppReviewDetail: BetaAppReviewDetail? = nil, appInfos: AppInfos? = nil, appClips: AppClips? = nil, endUserLicenseAgreement: EndUserLicenseAgreement? = nil, preOrder: PreOrder? = nil, prices: Prices? = nil, availableTerritories: AvailableTerritories? = nil, inAppPurchases: InAppPurchases? = nil, subscriptionGroups: SubscriptionGroups? = nil, gameCenterEnabledVersions: GameCenterEnabledVersions? = nil, appCustomProductPages: AppCustomProductPages? = nil, inAppPurchasesV2: InAppPurchasesV2? = nil, promotedPurchases: PromotedPurchases? = nil, appEvents: AppEvents? = nil, reviewSubmissions: ReviewSubmissions? = nil, subscriptionGracePeriod: SubscriptionGracePeriod? = nil, gameCenterDetail: GameCenterDetail? = nil, appStoreVersionExperimentsV2: AppStoreVersionExperimentsV2? = nil) { + self.appEncryptionDeclarations = appEncryptionDeclarations self.ciProduct = ciProduct self.betaGroups = betaGroups self.appStoreVersions = appStoreVersions @@ -1888,11 +2033,13 @@ public struct App: Codable, Identifiable { self.appEvents = appEvents self.reviewSubmissions = reviewSubmissions self.subscriptionGracePeriod = subscriptionGracePeriod + self.gameCenterDetail = gameCenterDetail self.appStoreVersionExperimentsV2 = appStoreVersionExperimentsV2 } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) + self.appEncryptionDeclarations = try values.decodeIfPresent(AppEncryptionDeclarations.self, forKey: "appEncryptionDeclarations") self.ciProduct = try values.decodeIfPresent(CiProduct.self, forKey: "ciProduct") self.betaGroups = try values.decodeIfPresent(BetaGroups.self, forKey: "betaGroups") self.appStoreVersions = try values.decodeIfPresent(AppStoreVersions.self, forKey: "appStoreVersions") @@ -1916,11 +2063,13 @@ public struct App: Codable, Identifiable { self.appEvents = try values.decodeIfPresent(AppEvents.self, forKey: "appEvents") self.reviewSubmissions = try values.decodeIfPresent(ReviewSubmissions.self, forKey: "reviewSubmissions") self.subscriptionGracePeriod = try values.decodeIfPresent(SubscriptionGracePeriod.self, forKey: "subscriptionGracePeriod") + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") self.appStoreVersionExperimentsV2 = try values.decodeIfPresent(AppStoreVersionExperimentsV2.self, forKey: "appStoreVersionExperimentsV2") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(appEncryptionDeclarations, forKey: "appEncryptionDeclarations") try values.encodeIfPresent(ciProduct, forKey: "ciProduct") try values.encodeIfPresent(betaGroups, forKey: "betaGroups") try values.encodeIfPresent(appStoreVersions, forKey: "appStoreVersions") @@ -1944,11 +2093,12 @@ public struct App: Codable, Identifiable { try values.encodeIfPresent(appEvents, forKey: "appEvents") try values.encodeIfPresent(reviewSubmissions, forKey: "reviewSubmissions") try values.encodeIfPresent(subscriptionGracePeriod, forKey: "subscriptionGracePeriod") + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") try values.encodeIfPresent(appStoreVersionExperimentsV2, forKey: "appStoreVersionExperimentsV2") } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -1962,7 +2112,7 @@ public struct App: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -1971,6 +2121,6 @@ public struct App: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppAvailability.swift b/Sources/OpenAPI/Generated/Entities/AppAvailability.swift index e85bee92..8170ab68 100644 --- a/Sources/OpenAPI/Generated/Entities/AppAvailability.swift +++ b/Sources/OpenAPI/Generated/Entities/AppAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppAvailability: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appAvailabilities @@ -200,7 +198,7 @@ public struct AppAvailability: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct AppAvailability: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct AppAvailability: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppAvailabilityCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppAvailabilityCreateRequest.swift index 73c69f8c..a8eb2ae7 100644 --- a/Sources/OpenAPI/Generated/Entities/AppAvailabilityCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppAvailabilityResponse.swift b/Sources/OpenAPI/Generated/Entities/AppAvailabilityResponse.swift index 82ad7ce2..9fe67cdc 100644 --- a/Sources/OpenAPI/Generated/Entities/AppAvailabilityResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppAvailabilityResponse: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2.swift b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2.swift new file mode 100644 index 00000000..c143cbf3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2.swift @@ -0,0 +1,152 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppAvailabilityV2: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case appAvailabilities + } + + public struct Attributes: Codable { + public var isAvailableInNewTerritories: Bool? + + public init(isAvailableInNewTerritories: Bool? = nil) { + self.isAvailableInNewTerritories = isAvailableInNewTerritories + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isAvailableInNewTerritories = try values.decodeIfPresent(Bool.self, forKey: "availableInNewTerritories") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isAvailableInNewTerritories, forKey: "availableInNewTerritories") + } + } + + public struct Relationships: Codable { + public var territoryAvailabilities: TerritoryAvailabilities? + + public struct TerritoryAvailabilities: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(territoryAvailabilities: TerritoryAvailabilities? = nil) { + self.territoryAvailabilities = territoryAvailabilities + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.territoryAvailabilities = try values.decodeIfPresent(TerritoryAvailabilities.self, forKey: "territoryAvailabilities") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(territoryAvailabilities, forKey: "territoryAvailabilities") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2CreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2CreateRequest.swift new file mode 100644 index 00000000..5a4f1e9b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2CreateRequest.swift @@ -0,0 +1,184 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppAvailabilityV2CreateRequest: Codable { + public var data: Data + public var included: [TerritoryAvailabilityInlineCreate]? + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case appAvailabilities + } + + public struct Attributes: Codable { + public var isAvailableInNewTerritories: Bool + + public init(isAvailableInNewTerritories: Bool) { + self.isAvailableInNewTerritories = isAvailableInNewTerritories + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isAvailableInNewTerritories = try values.decode(Bool.self, forKey: "availableInNewTerritories") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(isAvailableInNewTerritories, forKey: "availableInNewTerritories") + } + } + + public struct Relationships: Codable { + public var app: App + public var territoryAvailabilities: TerritoryAvailabilities + + public struct App: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case apps + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public struct TerritoryAvailabilities: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(app: App, territoryAvailabilities: TerritoryAvailabilities) { + self.app = app + self.territoryAvailabilities = territoryAvailabilities + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.app = try values.decode(App.self, forKey: "app") + self.territoryAvailabilities = try values.decode(TerritoryAvailabilities.self, forKey: "territoryAvailabilities") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(app, forKey: "app") + try values.encode(territoryAvailabilities, forKey: "territoryAvailabilities") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data, included: [TerritoryAvailabilityInlineCreate]? = nil) { + self.data = data + self.included = included + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + self.included = try values.decodeIfPresent([TerritoryAvailabilityInlineCreate].self, forKey: "included") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2Response.swift new file mode 100644 index 00000000..0dcfad56 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2Response.swift @@ -0,0 +1,31 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppAvailabilityV2Response: Codable { + /// AppAvailabilityV2 + public var data: AppAvailabilityV2 + public var included: [TerritoryAvailability]? + public var links: DocumentLinks + + public init(data: AppAvailabilityV2, included: [TerritoryAvailability]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AppAvailabilityV2.self, forKey: "data") + self.included = try values.decodeIfPresent([TerritoryAvailability].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppBetaTestersLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/AppBetaTestersLinkagesRequest.swift index 8266340a..8e38886c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppBetaTestersLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppBetaTestersLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCategoriesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCategoriesResponse.swift index c54d4d71..a99ea20f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCategoriesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCategoriesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCategoriesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCategoriesWithoutIncludesResponse.swift new file mode 100644 index 00000000..4aa580f2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppCategoriesWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppCategoriesWithoutIncludesResponse: Codable { + public var data: [AppCategory] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [AppCategory], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AppCategory].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppCategory.swift b/Sources/OpenAPI/Generated/Entities/AppCategory.swift index 1024b3f3..d0377022 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCategory.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCategory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppCategory: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appCategories @@ -200,7 +198,7 @@ public struct AppCategory: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct AppCategory: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct AppCategory: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCategoryResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCategoryResponse.swift index f19d53b9..d814d1cf 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCategoryResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCategoryResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCategoryWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCategoryWithoutIncludesResponse.swift new file mode 100644 index 00000000..9f3b7ab8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppCategoryWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppCategoryWithoutIncludesResponse: Codable { + /// AppCategory + public var data: AppCategory + public var links: DocumentLinks + + public init(data: AppCategory, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AppCategory.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppClip.swift b/Sources/OpenAPI/Generated/Entities/AppClip.swift index b89f6b99..fed11faa 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClip.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClip.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppClip: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClips @@ -200,7 +198,7 @@ public struct AppClip: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct AppClip: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct AppClip: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAction.swift b/Sources/OpenAPI/Generated/Entities/AppClipAction.swift index d3eab48b..850fc007 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAction.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAction.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift index 8dd7bd16..2cec281b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppClipAdvancedExperience: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClipAdvancedExperiences @@ -566,7 +564,7 @@ public struct AppClipAdvancedExperience: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -580,7 +578,7 @@ public struct AppClipAdvancedExperience: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -589,6 +587,6 @@ public struct AppClipAdvancedExperience: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceCreateRequest.swift index f0958f2f..052987b4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift index 326b412b..41770214 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct AppClipAdvancedExperienceImage: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClipAdvancedExperienceImages @@ -53,7 +51,7 @@ public struct AppClipAdvancedExperienceImage: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -65,7 +63,7 @@ public struct AppClipAdvancedExperienceImage: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -73,6 +71,6 @@ public struct AppClipAdvancedExperienceImage: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageCreateRequest.swift index 83729877..cc3e5424 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageResponse.swift index 0f807ec0..d4245c1e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageUpdateRequest.swift index 2416c5c3..d5f44180 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImageUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLanguage.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLanguage.swift index 1d7ac465..ffedadf9 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLanguage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLanguage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift index 80945430..ce8b0970 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct AppClipAdvancedExperienceLocalization: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case appClipAdvancedExperienceLocalizations @@ -41,11 +38,10 @@ public struct AppClipAdvancedExperienceLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -53,7 +49,6 @@ public struct AppClipAdvancedExperienceLocalization: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -61,6 +56,5 @@ public struct AppClipAdvancedExperienceLocalization: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalizationInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalizationInlineCreate.swift index c21e82b5..43ef6767 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalizationInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalizationInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceResponse.swift index 24dafa12..3b4ffd98 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppClipAdvancedExperienceResponse: Codable { } else if let value = try? container.decode(AppClipAdvancedExperienceLocalization.self) { self = .appClipAdvancedExperienceLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppClip, AppClipAdvancedExperienceImage, AppClipAdvancedExperienceLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceUpdateRequest.swift index de415e06..e95b999c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperiencesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperiencesResponse.swift index addc2287..714de94b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperiencesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperiencesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppClipAdvancedExperiencesResponse: Codable { } else if let value = try? container.decode(AppClipAdvancedExperienceLocalization.self) { self = .appClipAdvancedExperienceLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppClip, AppClipAdvancedExperienceImage, AppClipAdvancedExperienceLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift index 3dd86ada..84f5449e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppClipAppStoreReviewDetail: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClipAppStoreReviewDetails @@ -122,7 +120,7 @@ public struct AppClipAppStoreReviewDetail: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -136,7 +134,7 @@ public struct AppClipAppStoreReviewDetail: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -145,6 +143,6 @@ public struct AppClipAppStoreReviewDetail: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailCreateRequest.swift index eb09f43d..e618053c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailResponse.swift index 21cae13e..f54fd12a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailUpdateRequest.swift index e970cc24..460ea42a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetailUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift index e2f67fd4..08880c00 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppClipDefaultExperience: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClipDefaultExperiences @@ -348,7 +346,7 @@ public struct AppClipDefaultExperience: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -362,7 +360,7 @@ public struct AppClipDefaultExperience: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -371,6 +369,6 @@ public struct AppClipDefaultExperience: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceCreateRequest.swift index ff3b49c5..4da1f4bc 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift index 84cb5a12..62179466 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppClipDefaultExperienceLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClipDefaultExperienceLocalizations @@ -200,7 +198,7 @@ public struct AppClipDefaultExperienceLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct AppClipDefaultExperienceLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct AppClipDefaultExperienceLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationCreateRequest.swift index 6667e180..6a7f96eb 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationResponse.swift index 61e667ac..b009441b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppClipDefaultExperienceLocalizationResponse: Codable { } else if let value = try? container.decode(AppClipHeaderImage.self) { self = .appClipHeaderImage(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppClipDefaultExperience, AppClipHeaderImage)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationUpdateRequest.swift index 4c0552c4..faa35f98 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationsResponse.swift index 4e3d6047..4f49c908 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppClipDefaultExperienceLocalizationsResponse: Codable { } else if let value = try? container.decode(AppClipHeaderImage.self) { self = .appClipHeaderImage(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppClipDefaultExperience, AppClipHeaderImage)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift index cbd8042f..639e5e7e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift index a8b60164..80446bab 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceResponse.swift index b624ddc2..fc710a91 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppClipDefaultExperienceResponse: Codable { } else if let value = try? container.decode(AppClipAppStoreReviewDetail.self) { self = .appClipAppStoreReviewDetail(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppClip, AppStoreVersion, AppClipDefaultExperienceLocalization, AppClipAppStoreReviewDetail)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceUpdateRequest.swift index 1f31f1a8..60386004 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperiencesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperiencesResponse.swift index 5fb2b0fa..419355f4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperiencesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperiencesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppClipDefaultExperiencesResponse: Codable { } else if let value = try? container.decode(AppClipAppStoreReviewDetail.self) { self = .appClipAppStoreReviewDetail(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppClip, AppStoreVersion, AppClipDefaultExperienceLocalization, AppClipAppStoreReviewDetail)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift b/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift index d1088ab4..8730b639 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct AppClipDomainStatus: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case appClipDomainStatuses @@ -86,11 +83,10 @@ public struct AppClipDomainStatus: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -98,7 +94,6 @@ public struct AppClipDomainStatus: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -106,6 +101,5 @@ public struct AppClipDomainStatus: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipDomainStatusResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipDomainStatusResponse.swift index d1d4a2f6..8a35a693 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDomainStatusResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDomainStatusResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift index 631b9bfe..793dcff0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppClipHeaderImage: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appClipHeaderImages @@ -142,7 +140,7 @@ public struct AppClipHeaderImage: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -156,7 +154,7 @@ public struct AppClipHeaderImage: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -165,6 +163,6 @@ public struct AppClipHeaderImage: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageCreateRequest.swift index fe591cec..5d866d8d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageResponse.swift index 79a709fb..8f78d3b0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageUpdateRequest.swift index c19f7429..9e3f0ec9 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImageUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppClipResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipResponse.swift index f3e5ce98..2ac44166 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppClipResponse: Codable { } else if let value = try? container.decode(AppClipDefaultExperience.self) { self = .appClipDefaultExperience(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppClipDefaultExperience)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppClipsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppClipsResponse.swift index fdfd9ff7..c696ac98 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppClipsResponse: Codable { } else if let value = try? container.decode(AppClipDefaultExperience.self) { self = .appClipDefaultExperience(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppClipDefaultExperience)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift index 38f00d0d..9e5b754e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppCustomProductPage: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appCustomProductPages @@ -208,7 +206,7 @@ public struct AppCustomProductPage: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -222,7 +220,7 @@ public struct AppCustomProductPage: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -231,6 +229,6 @@ public struct AppCustomProductPage: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageCreateRequest.swift index 832c4d0a..aefd3192 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -274,7 +272,10 @@ public struct AppCustomProductPageCreateRequest: Codable { } else if let value = try? container.decode(AppCustomProductPageVersionInlineCreate.self) { self = .appCustomProductPageVersionInlineCreate(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppCustomProductPageLocalizationInlineCreate, AppCustomProductPageVersionInlineCreate)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift index 0e334149..edcd77cc 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppCustomProductPageLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appCustomProductPageLocalizations @@ -282,7 +280,7 @@ public struct AppCustomProductPageLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -296,7 +294,7 @@ public struct AppCustomProductPageLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -305,6 +303,6 @@ public struct AppCustomProductPageLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationCreateRequest.swift index 6c0036a6..327d6f93 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationInlineCreate.swift index 5635cf1a..f07f111d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationResponse.swift index aca556db..758b2b43 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppCustomProductPageLocalizationResponse: Codable { } else if let value = try? container.decode(AppPreviewSet.self) { self = .appPreviewSet(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppCustomProductPageVersion, AppScreenshotSet, AppPreviewSet)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationUpdateRequest.swift index 24f254f6..eeaa0132 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationsResponse.swift index 1093c4dc..13f278aa 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppCustomProductPageLocalizationsResponse: Codable { } else if let value = try? container.decode(AppPreviewSet.self) { self = .appPreviewSet(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppCustomProductPageVersion, AppScreenshotSet, AppPreviewSet)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageResponse.swift index c55eae07..eaecad76 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppCustomProductPageResponse: Codable { } else if let value = try? container.decode(AppCustomProductPageVersion.self) { self = .appCustomProductPageVersion(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppCustomProductPageVersion)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageUpdateRequest.swift index 113de909..8fa537dd 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift index 8556c418..1203b8c8 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppCustomProductPageVersion: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appCustomProductPageVersions @@ -215,7 +213,7 @@ public struct AppCustomProductPageVersion: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -229,7 +227,7 @@ public struct AppCustomProductPageVersion: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -238,6 +236,6 @@ public struct AppCustomProductPageVersion: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionCreateRequest.swift index 26d0353f..fd0ecde5 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionInlineCreate.swift index 264ed432..3958bfd1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionResponse.swift index 3e1795a3..993f1249 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppCustomProductPageVersionResponse: Codable { } else if let value = try? container.decode(AppCustomProductPageLocalization.self) { self = .appCustomProductPageLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppCustomProductPage, AppCustomProductPageLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionsResponse.swift index 951b65f0..38b5dc2f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppCustomProductPageVersionsResponse: Codable { } else if let value = try? container.decode(AppCustomProductPageLocalization.self) { self = .appCustomProductPageLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppCustomProductPage, AppCustomProductPageLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppCustomProductPagesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPagesResponse.swift index 7f9d61a5..74b7e62e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppCustomProductPagesResponse: Codable { } else if let value = try? container.decode(AppCustomProductPageVersion.self) { self = .appCustomProductPageVersion(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppCustomProductPageVersion)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift index af846433..916598df 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppEncryptionDeclaration: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appEncryptionDeclarations @@ -333,7 +331,7 @@ public struct AppEncryptionDeclaration: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -347,7 +345,7 @@ public struct AppEncryptionDeclaration: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -356,6 +354,6 @@ public struct AppEncryptionDeclaration: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift index 3c2f3670..d53d12e5 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationBuildsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift index 8501260f..8cba140a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct AppEncryptionDeclarationDocument: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appEncryptionDeclarationDocuments @@ -57,7 +55,7 @@ public struct AppEncryptionDeclarationDocument: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -69,7 +67,7 @@ public struct AppEncryptionDeclarationDocument: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -77,6 +75,6 @@ public struct AppEncryptionDeclarationDocument: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentCreateRequest.swift index e3dd83f3..0a3c49dd 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentResponse.swift index d45a2239..714e37fb 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentUpdateRequest.swift index 6ee0b3d8..4703dacb 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocumentUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationResponse.swift index bd9c8929..67dfa71e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppEncryptionDeclarationResponse: Codable { } else if let value = try? container.decode(AppEncryptionDeclarationDocument.self) { self = .appEncryptionDeclarationDocument(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Build, AppEncryptionDeclarationDocument)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationState.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationState.swift index fa962ee9..01459b8e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationState.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationWithoutIncludesResponse.swift new file mode 100644 index 00000000..6ac7c791 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppEncryptionDeclarationWithoutIncludesResponse: Codable { + /// Build + public var data: Build + public var links: DocumentLinks + + public init(data: Build, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Build.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationsResponse.swift index c3418d18..fdf993f1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppEncryptionDeclarationsResponse: Codable { } else if let value = try? container.decode(AppEncryptionDeclarationDocument.self) { self = .appEncryptionDeclarationDocument(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Build, AppEncryptionDeclarationDocument)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEvent.swift b/Sources/OpenAPI/Generated/Entities/AppEvent.swift index d07326fe..5b87f191 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEvent.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEvent.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppEvent: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appEvents @@ -265,7 +263,7 @@ public struct AppEvent: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -279,7 +277,7 @@ public struct AppEvent: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -288,6 +286,6 @@ public struct AppEvent: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEventAssetType.swift b/Sources/OpenAPI/Generated/Entities/AppEventAssetType.swift index 204c2ce9..17eae6f9 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventAssetType.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventAssetType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventCreateRequest.swift index e909ffdb..e0e53f7b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift index 956fea8d..955c740c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppEventLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appEventLocalizations @@ -290,7 +288,7 @@ public struct AppEventLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -304,7 +302,7 @@ public struct AppEventLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -313,6 +311,6 @@ public struct AppEventLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationCreateRequest.swift index 9d5eb281..797f9bab 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationResponse.swift index f22dd5e1..0e63e2b7 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppEventLocalizationResponse: Codable { } else if let value = try? container.decode(AppEventVideoClip.self) { self = .appEventVideoClip(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppEvent, AppEventScreenshot, AppEventVideoClip)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationUpdateRequest.swift index 0dab6c4c..5b1e1529 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationsResponse.swift index 580843de..f934d978 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppEventLocalizationsResponse: Codable { } else if let value = try? container.decode(AppEventVideoClip.self) { self = .appEventVideoClip(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppEvent, AppEventScreenshot, AppEventVideoClip)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEventResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventResponse.swift index a32a0014..a329e7d1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift b/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift index c34b453e..f9ccca91 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppEventScreenshot: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appEventScreenshots @@ -146,7 +144,7 @@ public struct AppEventScreenshot: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -160,7 +158,7 @@ public struct AppEventScreenshot: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -169,6 +167,6 @@ public struct AppEventScreenshot: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotCreateRequest.swift index 0f76cb48..f476623e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotResponse.swift index 6c311a12..75ef4d5f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotUpdateRequest.swift index b9f27a22..dfeed115 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotsResponse.swift index 4150167c..237d0830 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventScreenshotsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventScreenshotsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventUpdateRequest.swift index 1cb4a36d..be8c6c41 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift b/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift index 3d231b7e..7bc0a3ff 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppEventVideoClip: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appEventVideoClips @@ -150,7 +148,7 @@ public struct AppEventVideoClip: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct AppEventVideoClip: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct AppEventVideoClip: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipCreateRequest.swift index eb8d6f92..45dc7203 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipResponse.swift index 3089374c..4af3fdd2 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipUpdateRequest.swift index 0a3d280a..be31014e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipsResponse.swift index 198f3bcc..f3ad8bd0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventVideoClipsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventVideoClipsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppEventsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEventsResponse.swift index 97030fd5..5154e298 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppInfo.swift b/Sources/OpenAPI/Generated/Entities/AppInfo.swift index c6ab8fd1..9f3c98ac 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfo.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfo.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppInfo: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appInfos @@ -749,7 +747,7 @@ public struct AppInfo: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -763,7 +761,7 @@ public struct AppInfo: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -772,6 +770,6 @@ public struct AppInfo: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppInfoLocalization.swift index 323ee34f..145ddd9d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppInfoLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appInfoLocalizations @@ -142,7 +140,7 @@ public struct AppInfoLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -156,7 +154,7 @@ public struct AppInfoLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -165,6 +163,6 @@ public struct AppInfoLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationCreateRequest.swift index 18a25064..26f6c39f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationResponse.swift index 0e8ca8c2..3fbc8f85 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationUpdateRequest.swift index c6b75c74..9c6aadc6 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationsResponse.swift index e50a89c2..fc6c92bd 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoResponse.swift b/Sources/OpenAPI/Generated/Entities/AppInfoResponse.swift index d88422c9..c865024e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppInfoResponse: Codable { } else if let value = try? container.decode(AppCategory.self) { self = .appCategory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AgeRatingDeclaration, AppInfoLocalization, AppCategory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppInfoUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppInfoUpdateRequest.swift index 5e916b0c..8845086f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppInfosResponse.swift b/Sources/OpenAPI/Generated/Entities/AppInfosResponse.swift index d87a4d20..d50f1620 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfosResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfosResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppInfosResponse: Codable { } else if let value = try? container.decode(AppCategory.self) { self = .appCategory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AgeRatingDeclaration, AppInfoLocalization, AppCategory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppMediaAssetState.swift b/Sources/OpenAPI/Generated/Entities/AppMediaAssetState.swift index 11494a11..2a276515 100644 --- a/Sources/OpenAPI/Generated/Entities/AppMediaAssetState.swift +++ b/Sources/OpenAPI/Generated/Entities/AppMediaAssetState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppMediaStateError.swift b/Sources/OpenAPI/Generated/Entities/AppMediaStateError.swift index a034f47d..c4f44d69 100644 --- a/Sources/OpenAPI/Generated/Entities/AppMediaStateError.swift +++ b/Sources/OpenAPI/Generated/Entities/AppMediaStateError.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift index 9d0e835b..22ca326f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppPreOrder: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPreOrders @@ -126,7 +124,7 @@ public struct AppPreOrder: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -140,7 +138,7 @@ public struct AppPreOrder: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -149,6 +147,6 @@ public struct AppPreOrder: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPreOrderCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrderCreateRequest.swift index 98a79180..f8f1f22c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreOrderCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrderCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreOrderResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrderResponse.swift index ff8b03c6..041d7569 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreOrderResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrderResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreOrderUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrderUpdateRequest.swift index fca8e25a..ebe1b69e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreOrderUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrderUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreOrderWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrderWithoutIncludesResponse.swift new file mode 100644 index 00000000..97128149 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrderWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppPreOrderWithoutIncludesResponse: Codable { + /// App + public var data: App + public var links: DocumentLinks + + public init(data: App, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(App.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppPreview.swift b/Sources/OpenAPI/Generated/Entities/AppPreview.swift index c13960ce..a416aa66 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreview.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreview.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppPreview: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPreviews @@ -154,7 +152,7 @@ public struct AppPreview: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -168,7 +166,7 @@ public struct AppPreview: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -177,6 +175,6 @@ public struct AppPreview: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewCreateRequest.swift index 11b13543..1b4f6384 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewResponse.swift index b5905ca4..6faf2032 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift index 0ba53115..f8f11ef9 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppPreviewSet: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPreviewSets @@ -348,7 +346,7 @@ public struct AppPreviewSet: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -362,7 +360,7 @@ public struct AppPreviewSet: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -371,6 +369,6 @@ public struct AppPreviewSet: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesRequest.swift index ac74244e..841d70c7 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesResponse.swift index 4613227d..ae329f25 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSetAppPreviewsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewSetCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSetCreateRequest.swift index 22acba0f..6da5c751 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSetCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSetCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewSetResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSetResponse.swift index d5bc80e2..0af7c755 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSetResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSetResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppPreviewSetResponse: Codable { } else if let value = try? container.decode(AppPreview.self) { self = .appPreview(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionLocalization, AppCustomProductPageLocalization, AppStoreVersionExperimentTreatmentLocalization, AppPreview)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewSetsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSetsResponse.swift index 1a06a273..dc3cb37f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSetsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSetsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppPreviewSetsResponse: Codable { } else if let value = try? container.decode(AppPreview.self) { self = .appPreview(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionLocalization, AppCustomProductPageLocalization, AppStoreVersionExperimentTreatmentLocalization, AppPreview)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewUpdateRequest.swift index 4dbd829c..45b2aefc 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPreviewsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewsResponse.swift index dcf5f392..1f1e1c44 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPrice.swift b/Sources/OpenAPI/Generated/Entities/AppPrice.swift index a4503749..925fa869 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPrice.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPrice.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppPrice: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPrices @@ -178,7 +176,7 @@ public struct AppPrice: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.relationships = relationships @@ -190,7 +188,7 @@ public struct AppPrice: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -198,6 +196,6 @@ public struct AppPrice: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/AppPriceInlineCreate.swift index 12a18cf1..d124c49b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift b/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift index 99cfc926..8fd1f660 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -11,7 +9,7 @@ public struct AppPricePoint: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPricePoints @@ -201,7 +199,7 @@ public struct AppPricePoint: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -215,7 +213,7 @@ public struct AppPricePoint: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -224,6 +222,6 @@ public struct AppPricePoint: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointResponse.swift index 4700411f..13529ed5 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppPricePointResponse: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppPriceTier, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift index 5944d964..2c75c79c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -11,7 +9,6 @@ public struct AppPricePointV2: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case appPricePoints @@ -275,12 +272,11 @@ public struct AppPricePointV2: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { self.type = type self.id = id self.attributes = attributes self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -289,7 +285,6 @@ public struct AppPricePointV2: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -298,6 +293,5 @@ public struct AppPricePointV2: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointV3.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointV3.swift index ce315141..51534f22 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointV3.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointV3.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppPricePointV3: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPricePoints @@ -200,7 +198,7 @@ public struct AppPricePointV3: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct AppPricePointV3: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct AppPricePointV3: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointV3Response.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointV3Response.swift index 22cdf3bc..9d5430ea 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointV3Response.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointV3Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppPricePointV3Response: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointsResponse.swift index e0b6dd2e..b373e5de 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -23,7 +21,10 @@ public struct AppPricePointsResponse: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppPriceTier, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointsV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointsV2Response.swift index 71c6ddca..8a5aa5b4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointsV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointsV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -26,7 +24,10 @@ public struct AppPricePointsV2Response: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppPriceTier, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricePointsV3Response.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointsV3Response.swift index 4e7ebb72..eb96b805 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointsV3Response.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointsV3Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppPricePointsV3Response: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPriceResponse.swift index d9f00887..4913f186 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppPriceResponse: Codable { } else if let value = try? container.decode(AppPriceTier.self) { self = .appPriceTier(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppPriceTier)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift b/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift index 93bc73a4..cf9276be 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct AppPriceSchedule: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPriceSchedules @@ -333,7 +331,7 @@ public struct AppPriceSchedule: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.relationships = relationships @@ -345,7 +343,7 @@ public struct AppPriceSchedule: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -353,6 +351,6 @@ public struct AppPriceSchedule: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceScheduleCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPriceScheduleCreateRequest.swift index f50eeb75..32ead283 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceScheduleCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceScheduleCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -204,7 +202,10 @@ public struct AppPriceScheduleCreateRequest: Codable { } else if let value = try? container.decode(TerritoryInlineCreate.self) { self = .territoryInlineCreate(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppPriceV2InlineCreate, TerritoryInlineCreate)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceScheduleResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPriceScheduleResponse.swift index bd024549..b371fff1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceScheduleResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceScheduleResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppPriceScheduleResponse: Codable { } else if let value = try? container.decode(AppPriceV2.self) { self = .appPriceV2(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Territory, AppPriceV2)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift b/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift index 5b0d71dd..3af1b9dd 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppPriceTier: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appPriceTiers @@ -110,7 +108,7 @@ public struct AppPriceTier: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.relationships = relationships @@ -122,7 +120,7 @@ public struct AppPriceTier: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -130,6 +128,6 @@ public struct AppPriceTier: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceTierResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPriceTierResponse.swift index 11fadcd1..2cf35a4b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceTierResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceTierResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceTiersResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPriceTiersResponse.swift index 7033713d..affb7a29 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceTiersResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceTiersResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift b/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift index f7ef560f..e5c6f9cf 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,6 @@ public struct AppPriceV2: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case appPrices @@ -204,12 +201,11 @@ public struct AppPriceV2: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { self.type = type self.id = id self.attributes = attributes self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -218,7 +214,6 @@ public struct AppPriceV2: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -227,6 +222,5 @@ public struct AppPriceV2: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPriceV2InlineCreate.swift b/Sources/OpenAPI/Generated/Entities/AppPriceV2InlineCreate.swift index 2b7b0cd4..69021766 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceV2InlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceV2InlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPricesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPricesResponse.swift index 9cfeb9e3..87612b37 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -23,7 +21,10 @@ public struct AppPricesResponse: Codable { } else if let value = try? container.decode(AppPriceTier.self) { self = .appPriceTier(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppPriceTier)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPricesV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppPricesV2Response.swift index 6ea66836..6bf77710 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricesV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricesV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppPricesV2Response: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppPricePointV3, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesRequest.swift index 160c2612..040d8a5a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesResponse.swift index dcd7df31..abc890b3 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPromotedPurchasesLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppResponse.swift b/Sources/OpenAPI/Generated/Entities/AppResponse.swift index 06a22f6f..4a2dc0b4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -12,10 +10,11 @@ public struct AppResponse: Codable { public var links: DocumentLinks public enum IncludedItem: Codable { + case appEncryptionDeclaration(AppEncryptionDeclaration) case ciProduct(CiProduct) case betaGroup(BetaGroup) case appStoreVersion(AppStoreVersion) - case preReleaseVersion(PreReleaseVersion) + case prereleaseVersion(PrereleaseVersion) case betaAppLocalization(BetaAppLocalization) case build(Build) case betaLicenseAgreement(BetaLicenseAgreement) @@ -35,18 +34,21 @@ public struct AppResponse: Codable { case appEvent(AppEvent) case reviewSubmission(ReviewSubmission) case subscriptionGracePeriod(SubscriptionGracePeriod) + case gameCenterDetail(GameCenterDetail) case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() - if let value = try? container.decode(CiProduct.self) { + if let value = try? container.decode(AppEncryptionDeclaration.self) { + self = .appEncryptionDeclaration(value) + } else if let value = try? container.decode(CiProduct.self) { self = .ciProduct(value) } else if let value = try? container.decode(BetaGroup.self) { self = .betaGroup(value) } else if let value = try? container.decode(AppStoreVersion.self) { self = .appStoreVersion(value) - } else if let value = try? container.decode(PreReleaseVersion.self) { - self = .preReleaseVersion(value) + } else if let value = try? container.decode(PrereleaseVersion.self) { + self = .prereleaseVersion(value) } else if let value = try? container.decode(BetaAppLocalization.self) { self = .betaAppLocalization(value) } else if let value = try? container.decode(Build.self) { @@ -85,20 +87,26 @@ public struct AppResponse: Codable { self = .reviewSubmission(value) } else if let value = try? container.decode(SubscriptionGracePeriod.self) { self = .subscriptionGracePeriod(value) + } else if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { self = .appStoreVersionExperimentV2(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppEncryptionDeclaration, CiProduct, BetaGroup, AppStoreVersion, PrereleaseVersion, BetaAppLocalization, Build, BetaLicenseAgreement, BetaAppReviewDetail, AppInfo, AppClip, EndUserLicenseAgreement, AppPreOrder, AppPrice, Territory, InAppPurchase, SubscriptionGroup, GameCenterEnabledVersion, AppCustomProductPage, InAppPurchaseV2, PromotedPurchase, AppEvent, ReviewSubmission, SubscriptionGracePeriod, GameCenterDetail, AppStoreVersionExperimentV2)." + ) } } public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch self { + case .appEncryptionDeclaration(let value): try container.encode(value) case .ciProduct(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .appStoreVersion(let value): try container.encode(value) - case .preReleaseVersion(let value): try container.encode(value) + case .prereleaseVersion(let value): try container.encode(value) case .betaAppLocalization(let value): try container.encode(value) case .build(let value): try container.encode(value) case .betaLicenseAgreement(let value): try container.encode(value) @@ -118,6 +126,7 @@ public struct AppResponse: Codable { case .appEvent(let value): try container.encode(value) case .reviewSubmission(let value): try container.encode(value) case .subscriptionGracePeriod(let value): try container.encode(value) + case .gameCenterDetail(let value): try container.encode(value) case .appStoreVersionExperimentV2(let value): try container.encode(value) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshot.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshot.swift index cca2b119..0caaf2c2 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppScreenshot: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appScreenshots @@ -150,7 +148,7 @@ public struct AppScreenshot: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct AppScreenshot: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct AppScreenshot: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotCreateRequest.swift index 320308be..17af8bd5 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotResponse.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotResponse.swift index 5d4133dd..94ffaffa 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift index e8ab8d89..d2fa7ffb 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppScreenshotSet: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appScreenshotSets @@ -348,7 +346,7 @@ public struct AppScreenshotSet: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -362,7 +360,7 @@ public struct AppScreenshotSet: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -371,6 +369,6 @@ public struct AppScreenshotSet: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesRequest.swift index bc8a9df7..484de5fe 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesResponse.swift index 5726bc01..e8309516 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetAppScreenshotsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetCreateRequest.swift index bf56dd35..d21a4430 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetResponse.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetResponse.swift index a18d70b1..14d6745d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppScreenshotSetResponse: Codable { } else if let value = try? container.decode(AppScreenshot.self) { self = .appScreenshot(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionLocalization, AppCustomProductPageLocalization, AppStoreVersionExperimentTreatmentLocalization, AppScreenshot)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetsResponse.swift index fd598ff3..d720d588 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSetsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSetsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct AppScreenshotSetsResponse: Codable { } else if let value = try? container.decode(AppScreenshot.self) { self = .appScreenshot(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionLocalization, AppCustomProductPageLocalization, AppStoreVersionExperimentTreatmentLocalization, AppScreenshot)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotUpdateRequest.swift index e5ecece2..29a5a225 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppScreenshotsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotsResponse.swift index 13ce2272..cd84926e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreAgeRating.swift b/Sources/OpenAPI/Generated/Entities/AppStoreAgeRating.swift index c5062386..dd574fc3 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreAgeRating.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreAgeRating.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift index c86adec5..e446df6c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreReviewAttachment: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreReviewAttachments @@ -138,7 +136,7 @@ public struct AppStoreReviewAttachment: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -152,7 +150,7 @@ public struct AppStoreReviewAttachment: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -161,6 +159,6 @@ public struct AppStoreReviewAttachment: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentCreateRequest.swift index 27b3c03d..003ba62b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentResponse.swift index 0f505b67..f2146ee1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentUpdateRequest.swift index 30a7eb14..48dc3930 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentsResponse.swift index 20ddea5a..02849ea3 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachmentsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift index ab3cc8f9..fc470384 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreReviewDetail: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreReviewDetails @@ -228,7 +226,7 @@ public struct AppStoreReviewDetail: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -242,7 +240,7 @@ public struct AppStoreReviewDetail: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -251,6 +249,6 @@ public struct AppStoreReviewDetail: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailCreateRequest.swift index 66548e2b..204e4ede 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailResponse.swift index 1ff3144b..2cf507ba 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct AppStoreReviewDetailResponse: Codable { } else if let value = try? container.decode(AppStoreReviewAttachment.self) { self = .appStoreReviewAttachment(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppStoreReviewAttachment)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailUpdateRequest.swift index bd50616d..8d349ecd 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetailUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift index 83eeab6d..41f87857 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreVersion: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersions @@ -910,7 +908,7 @@ public struct AppStoreVersion: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -924,7 +922,7 @@ public struct AppStoreVersion: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -933,6 +931,6 @@ public struct AppStoreVersion: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift index a7604a41..aa8c38b0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift index 32b94969..34dbac70 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionAppClipDefaultExperienceLinkageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageRequest.swift index 75554abd..0a090e3c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageResponse.swift index f9017875..862e7eca 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionBuildLinkageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionCreateRequest.swift index 097dfbcc..bacd8d3b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift index 44ffdd7a..e75f7b9f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -11,7 +9,7 @@ public struct AppStoreVersionExperiment: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionExperiments @@ -233,7 +231,7 @@ public struct AppStoreVersionExperiment: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -247,7 +245,7 @@ public struct AppStoreVersionExperiment: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -256,6 +254,6 @@ public struct AppStoreVersionExperiment: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift index adc3bb59..57af4d6c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift index cc2c1db3..c4769aae 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentResponse: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentTreatment.self) { self = .appStoreVersionExperimentTreatment(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppStoreVersionExperimentTreatment)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift index 064ec775..4f7baf68 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionExperimentTreatments @@ -286,7 +284,7 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -300,7 +298,7 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -309,6 +307,6 @@ public struct AppStoreVersionExperimentTreatment: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift index 97f2083b..04476599 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift index 46c4850a..2014efcc 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable, Identifia public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionExperimentTreatmentLocalizations @@ -278,7 +276,7 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable, Identifia } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -292,7 +290,7 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable, Identifia self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -301,6 +299,6 @@ public struct AppStoreVersionExperimentTreatmentLocalization: Codable, Identifia try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift index bfdc639e..6417571e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationResponse.swift index 7c382554..672342f2 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentTreatmentLocalizationResponse: Codable { } else if let value = try? container.decode(AppPreviewSet.self) { self = .appPreviewSet(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionExperimentTreatment, AppScreenshotSet, AppPreviewSet)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift index 19b5a059..27f18dd4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentTreatmentLocalizationsResponse: Codable { } else if let value = try? container.decode(AppPreviewSet.self) { self = .appPreviewSet(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionExperimentTreatment, AppScreenshotSet, AppPreviewSet)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift index c1deaf2f..1acce661 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentTreatmentResponse: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentTreatmentLocalization.self) { self = .appStoreVersionExperimentTreatmentLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionExperiment, AppStoreVersionExperimentV2, AppStoreVersionExperimentTreatmentLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentUpdateRequest.swift index 5c7a3d98..f19f1c49 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift index 6aacab51..d94dafa1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentTreatmentsResponse: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentTreatmentLocalization.self) { self = .appStoreVersionExperimentTreatmentLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersionExperiment, AppStoreVersionExperimentV2, AppStoreVersionExperimentTreatmentLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift index ffa88f9b..78897b14 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift index dbcd4dd5..f4e62e76 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreVersionExperimentV2: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionExperiments @@ -388,7 +386,7 @@ public struct AppStoreVersionExperimentV2: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -402,7 +400,7 @@ public struct AppStoreVersionExperimentV2: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -411,6 +409,6 @@ public struct AppStoreVersionExperimentV2: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift index 3c5ce6d2..6f54eaf6 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2CreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift index 51aee0d1..afb40718 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentV2Response: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentTreatment.self) { self = .appStoreVersionExperimentTreatment(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppStoreVersion, AppStoreVersionExperimentTreatment)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift index f9ed8258..f9101bba 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2UpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift index 65ccb9c4..31da5758 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -23,7 +21,10 @@ public struct AppStoreVersionExperimentsResponse: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentTreatment.self) { self = .appStoreVersionExperimentTreatment(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppStoreVersionExperimentTreatment)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift index 254727ed..cf5e9186 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentsV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionExperimentsV2Response: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentTreatment.self) { self = .appStoreVersionExperimentTreatment(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AppStoreVersion, AppStoreVersionExperimentTreatment)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift index e299d2df..eecdbfc9 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreVersionLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionLocalizations @@ -302,7 +300,7 @@ public struct AppStoreVersionLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -316,7 +314,7 @@ public struct AppStoreVersionLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -325,6 +323,6 @@ public struct AppStoreVersionLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationCreateRequest.swift index 61b17498..665154de 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationResponse.swift index eaec9b9b..94ead563 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionLocalizationResponse: Codable { } else if let value = try? container.decode(AppPreviewSet.self) { self = .appPreviewSet(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppScreenshotSet, AppPreviewSet)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationUpdateRequest.swift index c6a6ec61..c13d949f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsResponse.swift index 6868d542..57f7ce88 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct AppStoreVersionLocalizationsResponse: Codable { } else if let value = try? container.decode(AppPreviewSet.self) { self = .appPreviewSet(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppScreenshotSet, AppPreviewSet)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift new file mode 100644 index 00000000..0bb86755 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppStoreVersionLocalizationsWithoutIncludesResponse: Codable { + public var data: [AppStoreVersion] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [AppStoreVersion], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([AppStoreVersion].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedRelease.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedRelease.swift index 62e3b3f1..0432db3b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedRelease.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedRelease.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct AppStoreVersionPhasedRelease: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionPhasedReleases @@ -45,7 +43,7 @@ public struct AppStoreVersionPhasedRelease: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -57,7 +55,7 @@ public struct AppStoreVersionPhasedRelease: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -65,6 +63,6 @@ public struct AppStoreVersionPhasedRelease: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseCreateRequest.swift index 5a551da8..b7b4d675 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseResponse.swift index 8b023bce..49a61ada 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseUpdateRequest.swift index 0b6abbac..a36d3eaf 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift new file mode 100644 index 00000000..03498a0d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppStoreVersionPhasedReleaseWithoutIncludesResponse: Codable { + /// AppStoreVersion + public var data: AppStoreVersion + public var links: DocumentLinks + + public init(data: AppStoreVersion, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AppStoreVersion.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotion.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotion.swift index bff33b3a..36d6bad0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotion.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct AppStoreVersionPromotion: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case appStoreVersionPromotions } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionCreateRequest.swift index f03c178e..faf8281a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionResponse.swift index 6b6605d3..91271921 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift index dce25e0a..ec458aa4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct AppStoreVersionReleaseRequest: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case appStoreVersionReleaseRequests } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestCreateRequest.swift index 460469dc..6fc72301 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestResponse.swift index 95ac78e2..332132e6 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequestResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift index 7d93e98c..892fbee5 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -49,7 +47,10 @@ public struct AppStoreVersionResponse: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { self = .appStoreVersionExperimentV2(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AgeRatingDeclaration, AppStoreVersionLocalization, Build, AppStoreVersionPhasedRelease, RoutingAppCoverage, AppStoreReviewDetail, AppStoreVersionSubmission, AppClipDefaultExperience, AppStoreVersionExperiment, AppStoreVersionExperimentV2)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionState.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionState.swift index 560e7d44..0a3402b0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionState.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift index a6840ae7..33b9b52d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct AppStoreVersionSubmission: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case appStoreVersionSubmissions @@ -104,7 +102,7 @@ public struct AppStoreVersionSubmission: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.relationships = relationships @@ -116,7 +114,7 @@ public struct AppStoreVersionSubmission: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -124,6 +122,6 @@ public struct AppStoreVersionSubmission: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionCreateRequest.swift index 28c1e4af..85eea51d 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionResponse.swift index abb82ff9..cb594318 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmissionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionUpdateRequest.swift index 03c034bd..cee32242 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift index 20940243..1bb540e4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -49,7 +47,10 @@ public struct AppStoreVersionsResponse: Codable { } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { self = .appStoreVersionExperimentV2(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, AgeRatingDeclaration, AppStoreVersionLocalization, Build, AppStoreVersionPhasedRelease, RoutingAppCoverage, AppStoreReviewDetail, AppStoreVersionSubmission, AppClipDefaultExperience, AppStoreVersionExperiment, AppStoreVersionExperimentV2)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/AppUpdateRequest.swift index 272658a9..2b6f7638 100644 --- a/Sources/OpenAPI/Generated/Entities/AppUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/AppWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppWithoutIncludesResponse.swift new file mode 100644 index 00000000..8f43e3a4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppWithoutIncludesResponse: Codable { + /// PrereleaseVersion + public var data: PrereleaseVersion + public var links: DocumentLinks + + public init(data: PrereleaseVersion, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(PrereleaseVersion.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/AppsResponse.swift b/Sources/OpenAPI/Generated/Entities/AppsResponse.swift index cd2f5872..6a4515c7 100644 --- a/Sources/OpenAPI/Generated/Entities/AppsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -12,10 +10,11 @@ public struct AppsResponse: Codable { public var meta: PagingInformation? public enum IncludedItem: Codable { + case appEncryptionDeclaration(AppEncryptionDeclaration) case ciProduct(CiProduct) case betaGroup(BetaGroup) case appStoreVersion(AppStoreVersion) - case preReleaseVersion(PreReleaseVersion) + case prereleaseVersion(PrereleaseVersion) case betaAppLocalization(BetaAppLocalization) case build(Build) case betaLicenseAgreement(BetaLicenseAgreement) @@ -35,18 +34,21 @@ public struct AppsResponse: Codable { case appEvent(AppEvent) case reviewSubmission(ReviewSubmission) case subscriptionGracePeriod(SubscriptionGracePeriod) + case gameCenterDetail(GameCenterDetail) case appStoreVersionExperimentV2(AppStoreVersionExperimentV2) public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() - if let value = try? container.decode(CiProduct.self) { + if let value = try? container.decode(AppEncryptionDeclaration.self) { + self = .appEncryptionDeclaration(value) + } else if let value = try? container.decode(CiProduct.self) { self = .ciProduct(value) } else if let value = try? container.decode(BetaGroup.self) { self = .betaGroup(value) } else if let value = try? container.decode(AppStoreVersion.self) { self = .appStoreVersion(value) - } else if let value = try? container.decode(PreReleaseVersion.self) { - self = .preReleaseVersion(value) + } else if let value = try? container.decode(PrereleaseVersion.self) { + self = .prereleaseVersion(value) } else if let value = try? container.decode(BetaAppLocalization.self) { self = .betaAppLocalization(value) } else if let value = try? container.decode(Build.self) { @@ -85,20 +87,26 @@ public struct AppsResponse: Codable { self = .reviewSubmission(value) } else if let value = try? container.decode(SubscriptionGracePeriod.self) { self = .subscriptionGracePeriod(value) + } else if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) } else if let value = try? container.decode(AppStoreVersionExperimentV2.self) { self = .appStoreVersionExperimentV2(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppEncryptionDeclaration, CiProduct, BetaGroup, AppStoreVersion, PrereleaseVersion, BetaAppLocalization, Build, BetaLicenseAgreement, BetaAppReviewDetail, AppInfo, AppClip, EndUserLicenseAgreement, AppPreOrder, AppPrice, Territory, InAppPurchase, SubscriptionGroup, GameCenterEnabledVersion, AppCustomProductPage, InAppPurchaseV2, PromotedPurchase, AppEvent, ReviewSubmission, SubscriptionGracePeriod, GameCenterDetail, AppStoreVersionExperimentV2)." + ) } } public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch self { + case .appEncryptionDeclaration(let value): try container.encode(value) case .ciProduct(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .appStoreVersion(let value): try container.encode(value) - case .preReleaseVersion(let value): try container.encode(value) + case .prereleaseVersion(let value): try container.encode(value) case .betaAppLocalization(let value): try container.encode(value) case .build(let value): try container.encode(value) case .betaLicenseAgreement(let value): try container.encode(value) @@ -118,6 +126,7 @@ public struct AppsResponse: Codable { case .appEvent(let value): try container.encode(value) case .reviewSubmission(let value): try container.encode(value) case .subscriptionGracePeriod(let value): try container.encode(value) + case .gameCenterDetail(let value): try container.encode(value) case .appStoreVersionExperimentV2(let value): try container.encode(value) } } diff --git a/Sources/OpenAPI/Generated/Entities/AppsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppsWithoutIncludesResponse.swift new file mode 100644 index 00000000..6d8800db --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct AppsWithoutIncludesResponse: Codable { + public var data: [User] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [User], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([User].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocation.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocation.swift index d7827ff5..7e74cf42 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocation.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocation.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaAppClipInvocation: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaAppClipInvocations @@ -126,7 +124,7 @@ public struct BetaAppClipInvocation: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -140,7 +138,7 @@ public struct BetaAppClipInvocation: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -149,6 +147,6 @@ public struct BetaAppClipInvocation: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationCreateRequest.swift index f8dd5835..abc8700b 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift index c223f631..7ea04e27 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct BetaAppClipInvocationLocalization: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaAppClipInvocationLocalizations @@ -37,7 +35,7 @@ public struct BetaAppClipInvocationLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -49,7 +47,7 @@ public struct BetaAppClipInvocationLocalization: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -57,6 +55,6 @@ public struct BetaAppClipInvocationLocalization: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationCreateRequest.swift index ff265193..cd4f3027 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationInlineCreate.swift index 02a6af29..2996526c 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationResponse.swift index f9c0fd75..a5344010 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationUpdateRequest.swift index 6254c90f..ed6243fb 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationResponse.swift index b347ae8b..f6e19385 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationUpdateRequest.swift index 59a558db..a276afaf 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationsResponse.swift index 5dccf85b..1fa675a2 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift index 44551591..d7e0792a 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaAppLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaAppLocalizations @@ -142,7 +140,7 @@ public struct BetaAppLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -156,7 +154,7 @@ public struct BetaAppLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -165,6 +163,6 @@ public struct BetaAppLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationCreateRequest.swift index f2ba69a1..ec50f92a 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationResponse.swift index 11e81235..d96342cb 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationUpdateRequest.swift index 09387270..546e4880 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsResponse.swift index 163757ad..0b4fe36b 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsWithoutIncludesResponse.swift new file mode 100644 index 00000000..67e73829 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaAppLocalizationsWithoutIncludesResponse: Codable { + public var data: [App] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [App], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([App].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetail.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetail.swift index a0c5025b..3587aa4a 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaAppReviewDetail: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaAppReviewDetails @@ -150,7 +148,7 @@ public struct BetaAppReviewDetail: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct BetaAppReviewDetail: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct BetaAppReviewDetail: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailResponse.swift index 7d4086ce..78ad0bcb 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailUpdateRequest.swift index 78c0e4f8..81979801 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailWithoutIncludesResponse.swift new file mode 100644 index 00000000..97210e86 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaAppReviewDetailWithoutIncludesResponse: Codable { + /// App + public var data: App + public var links: DocumentLinks + + public init(data: App, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(App.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailsResponse.swift index e37977fd..2b397b87 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift index ce7f4b08..995c9d74 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaAppReviewSubmission: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaAppReviewSubmissions @@ -126,7 +124,7 @@ public struct BetaAppReviewSubmission: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -140,7 +138,7 @@ public struct BetaAppReviewSubmission: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -149,6 +147,6 @@ public struct BetaAppReviewSubmission: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionCreateRequest.swift index 47ba6c1a..b862dedc 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionResponse.swift index 74e1b602..6b319d70 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionWithoutIncludesResponse.swift new file mode 100644 index 00000000..34ab82e0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaAppReviewSubmissionWithoutIncludesResponse: Codable { + /// Build + public var data: Build + public var links: DocumentLinks + + public init(data: Build, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Build.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionsResponse.swift index b31986a3..ce348756 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift index bfd724d5..6825441f 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaBuildLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaBuildLocalizations @@ -126,7 +124,7 @@ public struct BetaBuildLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -140,7 +138,7 @@ public struct BetaBuildLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -149,6 +147,6 @@ public struct BetaBuildLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationCreateRequest.swift index bbe0af1e..5636fec3 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationResponse.swift index 73aaa370..cb7afafa 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationUpdateRequest.swift index 5af572d6..8387ab61 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsResponse.swift index ca749ecc..2d8fc353 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsWithoutIncludesResponse.swift new file mode 100644 index 00000000..e3d598d6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaBuildLocalizationsWithoutIncludesResponse: Codable { + public var data: [Build] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [Build], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Build].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroup.swift b/Sources/OpenAPI/Generated/Entities/BetaGroup.swift index 6bc527ff..d8caaaa2 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroup.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroup.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaGroup: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaGroups @@ -318,7 +316,7 @@ public struct BetaGroup: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -332,7 +330,7 @@ public struct BetaGroup: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -341,6 +339,6 @@ public struct BetaGroup: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesRequest.swift index 95ed846f..af911be2 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesResponse.swift index 17c3560e..9159f372 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupBetaTestersLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesRequest.swift index cd970289..43f5e3d5 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesResponse.swift index a0a1a0a4..46fe1639 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupBuildsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupCreateRequest.swift index 4f3a62bc..27cf1751 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupResponse.swift index 80ce5275..dfd624fe 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct BetaGroupResponse: Codable { } else if let value = try? container.decode(BetaTester.self) { self = .betaTester(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Build, BetaTester)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupUpdateRequest.swift index 483945b0..da6203f8 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupsResponse.swift index e474d025..58d0df44 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroupsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct BetaGroupsResponse: Codable { } else if let value = try? container.decode(BetaTester.self) { self = .betaTester(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Build, BetaTester)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift new file mode 100644 index 00000000..ad38c455 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaGroupsWithoutIncludesResponse: Codable { + public var data: [BetaTester] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [BetaTester], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([BetaTester].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaInviteType.swift b/Sources/OpenAPI/Generated/Entities/BetaInviteType.swift index 99ae17ab..24ca4989 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaInviteType.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaInviteType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift index c413c3b0..77a2726a 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaLicenseAgreement: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaLicenseAgreements @@ -122,7 +120,7 @@ public struct BetaLicenseAgreement: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -136,7 +134,7 @@ public struct BetaLicenseAgreement: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -145,6 +143,6 @@ public struct BetaLicenseAgreement: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementResponse.swift index 81fc5401..1d7fa413 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementUpdateRequest.swift index 2c45eac2..17c0960b 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementWithoutIncludesResponse.swift new file mode 100644 index 00000000..4c04c5f8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaLicenseAgreementWithoutIncludesResponse: Codable { + /// App + public var data: App + public var links: DocumentLinks + + public init(data: App, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(App.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementsResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementsResponse.swift index 4a5f22c5..671e846d 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaReviewState.swift b/Sources/OpenAPI/Generated/Entities/BetaReviewState.swift index 02f6aa1c..b104ec5f 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaReviewState.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaReviewState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTester.swift b/Sources/OpenAPI/Generated/Entities/BetaTester.swift index 0b08eeb9..47cf8c14 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTester.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTester.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BetaTester: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case betaTesters @@ -294,7 +292,7 @@ public struct BetaTester: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -308,7 +306,7 @@ public struct BetaTester: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -317,6 +315,6 @@ public struct BetaTester: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesRequest.swift index 161dc455..d0aa0510 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesResponse.swift index 739bf2d7..8d725995 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterAppsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesRequest.swift index d288988d..1ded72e0 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesResponse.swift index 384e7401..f3c7754a 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterBetaGroupsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesRequest.swift index 5b81d3b3..83dac3c8 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesResponse.swift index 09887f78..648081b3 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterBuildsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterCreateRequest.swift index f99eecce..f45d2d24 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift index 2eead3ab..9d7119d2 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct BetaTesterInvitation: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case betaTesterInvitations } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationCreateRequest.swift index 77fbe46f..73be393c 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationResponse.swift index bc442fd2..3a1fc369 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BetaTesterResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterResponse.swift index 199b185b..07a5d7b4 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct BetaTesterResponse: Codable { } else if let value = try? container.decode(Build.self) { self = .build(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, BetaGroup, Build)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaTestersResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTestersResponse.swift index f170435e..06ed9f89 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTestersResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTestersResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct BetaTestersResponse: Codable { } else if let value = try? container.decode(Build.self) { self = .build(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, BetaGroup, Build)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift new file mode 100644 index 00000000..ab8f0480 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BetaTestersWithoutIncludesResponse: Codable { + public var data: [Build] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [Build], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Build].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BrazilAgeRating.swift b/Sources/OpenAPI/Generated/Entities/BrazilAgeRating.swift index ac4bc910..023dffd7 100644 --- a/Sources/OpenAPI/Generated/Entities/BrazilAgeRating.swift +++ b/Sources/OpenAPI/Generated/Entities/BrazilAgeRating.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/Build.swift b/Sources/OpenAPI/Generated/Entities/Build.swift index 06bc8bf5..975fbee2 100644 --- a/Sources/OpenAPI/Generated/Entities/Build.swift +++ b/Sources/OpenAPI/Generated/Entities/Build.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct Build: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case builds @@ -929,7 +927,7 @@ public struct Build: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -943,7 +941,7 @@ public struct Build: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -952,6 +950,6 @@ public struct Build: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageRequest.swift index 8399abeb..7d51ec41 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageResponse.swift index dcd4b8cf..d609ca56 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildAppEncryptionDeclarationLinkageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildAudienceType.swift b/Sources/OpenAPI/Generated/Entities/BuildAudienceType.swift index 006544b6..9f41292c 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildAudienceType.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildAudienceType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift index b635631f..026abd00 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BuildBetaDetail: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case buildBetaDetails @@ -130,7 +128,7 @@ public struct BuildBetaDetail: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -144,7 +142,7 @@ public struct BuildBetaDetail: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -153,6 +151,6 @@ public struct BuildBetaDetail: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailResponse.swift index 63552e24..4db2de7d 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailUpdateRequest.swift index 59a12ca5..def1f571 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift new file mode 100644 index 00000000..29fbe6a7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BuildBetaDetailWithoutIncludesResponse: Codable { + /// Build + public var data: Build + public var links: DocumentLinks + + public init(data: Build, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Build.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailsResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailsResponse.swift index 6552984a..cd78a3cf 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaDetailsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaGroupsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaGroupsLinkagesRequest.swift index 06f1bfa4..8649463f 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaGroupsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaGroupsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift index 27c7662e..610c3be4 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct BuildBetaNotification: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case buildBetaNotifications } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationCreateRequest.swift index f4d15403..288f1215 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationResponse.swift index e6b26f47..f37da27d 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaNotificationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildBundle.swift b/Sources/OpenAPI/Generated/Entities/BuildBundle.swift index ad90f18d..77f0cee2 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBundle.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBundle.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,6 @@ public struct BuildBundle: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case buildBundles @@ -421,12 +418,11 @@ public struct BuildBundle: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { self.type = type self.id = id self.attributes = attributes self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -435,7 +431,6 @@ public struct BuildBundle: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -444,6 +439,5 @@ public struct BuildBundle: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildBundleFileSize.swift b/Sources/OpenAPI/Generated/Entities/BuildBundleFileSize.swift index 59b8bb49..ee5bcb33 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBundleFileSize.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBundleFileSize.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct BuildBundleFileSize: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case buildBundleFileSizes @@ -45,11 +42,10 @@ public struct BuildBundleFileSize: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -57,7 +53,6 @@ public struct BuildBundleFileSize: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -65,6 +60,5 @@ public struct BuildBundleFileSize: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildBundleFileSizesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildBundleFileSizesResponse.swift index 83b3d1f2..33cafe17 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBundleFileSizesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBundleFileSizesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildIcon.swift b/Sources/OpenAPI/Generated/Entities/BuildIcon.swift index e46a2082..df6033dc 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildIcon.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildIcon.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct BuildIcon: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case buildIcons @@ -41,11 +38,10 @@ public struct BuildIcon: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -53,7 +49,6 @@ public struct BuildIcon: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -61,6 +56,5 @@ public struct BuildIcon: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BuildIconsResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildIconsResponse.swift index c5dd5449..f407c786 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildIconsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildIconsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildIconsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildIconsWithoutIncludesResponse.swift new file mode 100644 index 00000000..d771746b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildIconsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BuildIconsWithoutIncludesResponse: Codable { + public var data: [Build] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [Build], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Build].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesRequest.swift index 76216ad0..7b6a6c5a 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesResponse.swift index 748859e0..c251f33f 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildIndividualTestersLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildResponse.swift index 9861fdc5..62ae929a 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -12,7 +10,7 @@ public struct BuildResponse: Codable { public var links: DocumentLinks public enum IncludedItem: Codable { - case preReleaseVersion(PreReleaseVersion) + case prereleaseVersion(PrereleaseVersion) case betaTester(BetaTester) case betaGroup(BetaGroup) case betaBuildLocalization(BetaBuildLocalization) @@ -26,8 +24,8 @@ public struct BuildResponse: Codable { public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() - if let value = try? container.decode(PreReleaseVersion.self) { - self = .preReleaseVersion(value) + if let value = try? container.decode(PrereleaseVersion.self) { + self = .prereleaseVersion(value) } else if let value = try? container.decode(BetaTester.self) { self = .betaTester(value) } else if let value = try? container.decode(BetaGroup.self) { @@ -49,14 +47,17 @@ public struct BuildResponse: Codable { } else if let value = try? container.decode(BuildBundle.self) { self = .buildBundle(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (PrereleaseVersion, BetaTester, BetaGroup, BetaBuildLocalization, AppEncryptionDeclaration, BetaAppReviewSubmission, App, BuildBetaDetail, AppStoreVersion, BuildIcon, BuildBundle)." + ) } } public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch self { - case .preReleaseVersion(let value): try container.encode(value) + case .prereleaseVersion(let value): try container.encode(value) case .betaTester(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .betaBuildLocalization(let value): try container.encode(value) diff --git a/Sources/OpenAPI/Generated/Entities/BuildUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BuildUpdateRequest.swift index 30f636d9..3325dd1e 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BuildWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildWithoutIncludesResponse.swift new file mode 100644 index 00000000..cfe0c438 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BuildWithoutIncludesResponse: Codable { + /// BuildBetaDetail + public var data: BuildBetaDetail + public var links: DocumentLinks + + public init(data: BuildBetaDetail, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(BuildBetaDetail.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift index a82b143f..3f909e57 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -12,7 +10,7 @@ public struct BuildsResponse: Codable { public var meta: PagingInformation? public enum IncludedItem: Codable { - case preReleaseVersion(PreReleaseVersion) + case prereleaseVersion(PrereleaseVersion) case betaTester(BetaTester) case betaGroup(BetaGroup) case betaBuildLocalization(BetaBuildLocalization) @@ -26,8 +24,8 @@ public struct BuildsResponse: Codable { public init(from decoder: Decoder) throws { let container = try decoder.singleValueContainer() - if let value = try? container.decode(PreReleaseVersion.self) { - self = .preReleaseVersion(value) + if let value = try? container.decode(PrereleaseVersion.self) { + self = .prereleaseVersion(value) } else if let value = try? container.decode(BetaTester.self) { self = .betaTester(value) } else if let value = try? container.decode(BetaGroup.self) { @@ -49,14 +47,17 @@ public struct BuildsResponse: Codable { } else if let value = try? container.decode(BuildBundle.self) { self = .buildBundle(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (PrereleaseVersion, BetaTester, BetaGroup, BetaBuildLocalization, AppEncryptionDeclaration, BetaAppReviewSubmission, App, BuildBetaDetail, AppStoreVersion, BuildIcon, BuildBundle)." + ) } } public func encode(to encoder: Encoder) throws { var container = encoder.singleValueContainer() switch self { - case .preReleaseVersion(let value): try container.encode(value) + case .prereleaseVersion(let value): try container.encode(value) case .betaTester(let value): try container.encode(value) case .betaGroup(let value): try container.encode(value) case .betaBuildLocalization(let value): try container.encode(value) diff --git a/Sources/OpenAPI/Generated/Entities/BuildsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildsWithoutIncludesResponse.swift new file mode 100644 index 00000000..d4cd84aa --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BuildsWithoutIncludesResponse: Codable { + public var data: [PrereleaseVersion] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [PrereleaseVersion], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([PrereleaseVersion].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BundleID.swift b/Sources/OpenAPI/Generated/Entities/BundleID.swift index 49b6319c..e0fab615 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleID.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct BundleID: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case bundleIDs = "bundleIds" @@ -290,7 +288,7 @@ public struct BundleID: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -304,7 +302,7 @@ public struct BundleID: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -313,6 +311,6 @@ public struct BundleID: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesResponse.swift index 9abd8ea9..392aefc7 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesWithoutIncludesResponse.swift new file mode 100644 index 00000000..6d649e45 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BundleIDCapabilitiesWithoutIncludesResponse: Codable { + public var data: [BundleID] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [BundleID], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([BundleID].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCapability.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapability.swift index c177fa07..1fd269fa 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCapability.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct BundleIDCapability: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case bundleIDCapabilities = "bundleIdCapabilities" @@ -37,7 +35,7 @@ public struct BundleIDCapability: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -49,7 +47,7 @@ public struct BundleIDCapability: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -57,6 +55,6 @@ public struct BundleIDCapability: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityCreateRequest.swift index 64098519..038cac75 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityResponse.swift index dfdee72b..697766ac 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityUpdateRequest.swift index acb90911..ef59b91d 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilityUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCreateRequest.swift index eead961f..a7e2c8af 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift b/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift index d0121a57..009c00d4 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDPlatform.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDResponse.swift index cdcf3703..9d2f8e4c 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct BundleIDResponse: Codable { } else if let value = try? container.decode(App.self) { self = .app(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Profile, BundleIDCapability, App)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/BundleIDUpdateRequest.swift index c4f796fe..5f6589d5 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDWithoutIncludesResponse.swift new file mode 100644 index 00000000..fc23b0f0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BundleIDWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct BundleIDWithoutIncludesResponse: Codable { + /// Profile + public var data: Profile + public var links: DocumentLinks + + public init(data: Profile, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Profile.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/BundleIDsResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDsResponse.swift index 632d82d8..f8ee11e6 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct BundleIDsResponse: Codable { } else if let value = try? container.decode(App.self) { self = .app(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Profile, BundleIDCapability, App)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CapabilityOption.swift b/Sources/OpenAPI/Generated/Entities/CapabilityOption.swift index aba83fdd..c4b3c88a 100644 --- a/Sources/OpenAPI/Generated/Entities/CapabilityOption.swift +++ b/Sources/OpenAPI/Generated/Entities/CapabilityOption.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CapabilitySetting.swift b/Sources/OpenAPI/Generated/Entities/CapabilitySetting.swift index 4837ae30..93c26895 100644 --- a/Sources/OpenAPI/Generated/Entities/CapabilitySetting.swift +++ b/Sources/OpenAPI/Generated/Entities/CapabilitySetting.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CapabilityType.swift b/Sources/OpenAPI/Generated/Entities/CapabilityType.swift index cdfa6634..8eebe0a3 100644 --- a/Sources/OpenAPI/Generated/Entities/CapabilityType.swift +++ b/Sources/OpenAPI/Generated/Entities/CapabilityType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/Certificate.swift b/Sources/OpenAPI/Generated/Entities/Certificate.swift index 03846560..e64f9109 100644 --- a/Sources/OpenAPI/Generated/Entities/Certificate.swift +++ b/Sources/OpenAPI/Generated/Entities/Certificate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct Certificate: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case certificates @@ -57,7 +55,7 @@ public struct Certificate: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -69,7 +67,7 @@ public struct Certificate: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -77,6 +75,6 @@ public struct Certificate: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CertificateCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/CertificateCreateRequest.swift index e24c687f..30ce3cc1 100644 --- a/Sources/OpenAPI/Generated/Entities/CertificateCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/CertificateCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CertificateResponse.swift b/Sources/OpenAPI/Generated/Entities/CertificateResponse.swift index f2029983..ebefc41f 100644 --- a/Sources/OpenAPI/Generated/Entities/CertificateResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CertificateResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CertificateType.swift b/Sources/OpenAPI/Generated/Entities/CertificateType.swift index e2c943b7..138653bd 100644 --- a/Sources/OpenAPI/Generated/Entities/CertificateType.swift +++ b/Sources/OpenAPI/Generated/Entities/CertificateType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CertificatesResponse.swift b/Sources/OpenAPI/Generated/Entities/CertificatesResponse.swift index 3c1eacd6..f97d5b66 100644 --- a/Sources/OpenAPI/Generated/Entities/CertificatesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CertificatesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CertificatesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/CertificatesWithoutIncludesResponse.swift new file mode 100644 index 00000000..1986c94a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/CertificatesWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct CertificatesWithoutIncludesResponse: Codable { + public var data: [Profile] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [Profile], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Profile].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/CiAction.swift b/Sources/OpenAPI/Generated/Entities/CiAction.swift index e2249bf3..408855c4 100644 --- a/Sources/OpenAPI/Generated/Entities/CiAction.swift +++ b/Sources/OpenAPI/Generated/Entities/CiAction.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiActionType.swift b/Sources/OpenAPI/Generated/Entities/CiActionType.swift index bb1694d5..23151e7f 100644 --- a/Sources/OpenAPI/Generated/Entities/CiActionType.swift +++ b/Sources/OpenAPI/Generated/Entities/CiActionType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiArtifact.swift b/Sources/OpenAPI/Generated/Entities/CiArtifact.swift index 39608030..cfedf49b 100644 --- a/Sources/OpenAPI/Generated/Entities/CiArtifact.swift +++ b/Sources/OpenAPI/Generated/Entities/CiArtifact.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct CiArtifact: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciArtifacts @@ -54,7 +52,7 @@ public struct CiArtifact: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -66,7 +64,7 @@ public struct CiArtifact: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -74,6 +72,6 @@ public struct CiArtifact: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiArtifactResponse.swift b/Sources/OpenAPI/Generated/Entities/CiArtifactResponse.swift index e931d36a..f3e46fa6 100644 --- a/Sources/OpenAPI/Generated/Entities/CiArtifactResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiArtifactResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiArtifactsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiArtifactsResponse.swift index 76edf3d6..3e22f336 100644 --- a/Sources/OpenAPI/Generated/Entities/CiArtifactsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiArtifactsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiBranchPatterns.swift b/Sources/OpenAPI/Generated/Entities/CiBranchPatterns.swift index f7f178a8..aed003c4 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBranchPatterns.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBranchPatterns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiBranchStartCondition.swift b/Sources/OpenAPI/Generated/Entities/CiBranchStartCondition.swift index a708330c..1fabee31 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBranchStartCondition.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBranchStartCondition.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift b/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift index de6d4924..6a524fba 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CiBuildAction: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciBuildActions @@ -150,7 +148,7 @@ public struct CiBuildAction: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct CiBuildAction: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct CiBuildAction: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildActionResponse.swift b/Sources/OpenAPI/Generated/Entities/CiBuildActionResponse.swift index 8ea74646..80cb7bbc 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildActionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildActionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildActionsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiBuildActionsResponse.swift index 23384481..a7155684 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildActionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildActionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift b/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift index 60178d60..044af748 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CiBuildRun: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciBuildRuns @@ -622,7 +620,7 @@ public struct CiBuildRun: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -636,7 +634,7 @@ public struct CiBuildRun: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -645,6 +643,6 @@ public struct CiBuildRun: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildRunCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/CiBuildRunCreateRequest.swift index e20c633b..9bd09663 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildRunCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildRunCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildRunResponse.swift b/Sources/OpenAPI/Generated/Entities/CiBuildRunResponse.swift index ed161ecf..bddabe2c 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildRunResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildRunResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -31,7 +29,10 @@ public struct CiBuildRunResponse: Codable { } else if let value = try? container.decode(ScmPullRequest.self) { self = .scmPullRequest(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Build, CiWorkflow, CiProduct, ScmGitReference, ScmPullRequest)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CiBuildRunsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiBuildRunsResponse.swift index 6de64a50..48b7d09f 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildRunsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildRunsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -31,7 +29,10 @@ public struct CiBuildRunsResponse: Codable { } else if let value = try? container.decode(ScmPullRequest.self) { self = .scmPullRequest(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Build, CiWorkflow, CiProduct, ScmGitReference, ScmPullRequest)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CiCompletionStatus.swift b/Sources/OpenAPI/Generated/Entities/CiCompletionStatus.swift index eb3d14d7..23ffeae9 100644 --- a/Sources/OpenAPI/Generated/Entities/CiCompletionStatus.swift +++ b/Sources/OpenAPI/Generated/Entities/CiCompletionStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiExecutionProgress.swift b/Sources/OpenAPI/Generated/Entities/CiExecutionProgress.swift index 070b2706..71ada9e2 100644 --- a/Sources/OpenAPI/Generated/Entities/CiExecutionProgress.swift +++ b/Sources/OpenAPI/Generated/Entities/CiExecutionProgress.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiFilesAndFoldersRule.swift b/Sources/OpenAPI/Generated/Entities/CiFilesAndFoldersRule.swift index 4a2df7b7..a00bad57 100644 --- a/Sources/OpenAPI/Generated/Entities/CiFilesAndFoldersRule.swift +++ b/Sources/OpenAPI/Generated/Entities/CiFilesAndFoldersRule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiGitRefKind.swift b/Sources/OpenAPI/Generated/Entities/CiGitRefKind.swift index e470da90..c0722306 100644 --- a/Sources/OpenAPI/Generated/Entities/CiGitRefKind.swift +++ b/Sources/OpenAPI/Generated/Entities/CiGitRefKind.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiGitUser.swift b/Sources/OpenAPI/Generated/Entities/CiGitUser.swift index 6a27b024..d76a2e9c 100644 --- a/Sources/OpenAPI/Generated/Entities/CiGitUser.swift +++ b/Sources/OpenAPI/Generated/Entities/CiGitUser.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiIssue.swift b/Sources/OpenAPI/Generated/Entities/CiIssue.swift index af2e93ea..4398a7e3 100644 --- a/Sources/OpenAPI/Generated/Entities/CiIssue.swift +++ b/Sources/OpenAPI/Generated/Entities/CiIssue.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct CiIssue: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciIssues @@ -52,7 +50,7 @@ public struct CiIssue: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -64,7 +62,7 @@ public struct CiIssue: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -72,6 +70,6 @@ public struct CiIssue: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiIssueCounts.swift b/Sources/OpenAPI/Generated/Entities/CiIssueCounts.swift index 311930e5..142b310b 100644 --- a/Sources/OpenAPI/Generated/Entities/CiIssueCounts.swift +++ b/Sources/OpenAPI/Generated/Entities/CiIssueCounts.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiIssueResponse.swift b/Sources/OpenAPI/Generated/Entities/CiIssueResponse.swift index eb0da05d..0f71a63c 100644 --- a/Sources/OpenAPI/Generated/Entities/CiIssueResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiIssueResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiIssuesResponse.swift b/Sources/OpenAPI/Generated/Entities/CiIssuesResponse.swift index afd3dac0..92408de1 100644 --- a/Sources/OpenAPI/Generated/Entities/CiIssuesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiIssuesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift b/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift index 3dcaf50f..e561c1bf 100644 --- a/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CiMacOsVersion: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciMacOsVersions @@ -130,7 +128,7 @@ public struct CiMacOsVersion: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -144,7 +142,7 @@ public struct CiMacOsVersion: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -153,6 +151,6 @@ public struct CiMacOsVersion: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiMacOsVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/CiMacOsVersionResponse.swift index 73c1d2b0..db14bb25 100644 --- a/Sources/OpenAPI/Generated/Entities/CiMacOsVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiMacOsVersionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiMacOsVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiMacOsVersionsResponse.swift index 4fb7e5ce..913484f7 100644 --- a/Sources/OpenAPI/Generated/Entities/CiMacOsVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiMacOsVersionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiProduct.swift b/Sources/OpenAPI/Generated/Entities/CiProduct.swift index ecb0fe43..98a83c61 100644 --- a/Sources/OpenAPI/Generated/Entities/CiProduct.swift +++ b/Sources/OpenAPI/Generated/Entities/CiProduct.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CiProduct: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciProducts @@ -287,7 +285,7 @@ public struct CiProduct: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -301,7 +299,7 @@ public struct CiProduct: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -310,6 +308,6 @@ public struct CiProduct: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiProductResponse.swift b/Sources/OpenAPI/Generated/Entities/CiProductResponse.swift index 30a208bf..5b4d68ad 100644 --- a/Sources/OpenAPI/Generated/Entities/CiProductResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiProductResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct CiProductResponse: Codable { } else if let value = try? container.decode(ScmRepository.self) { self = .scmRepository(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, BundleID, ScmRepository)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CiProductsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiProductsResponse.swift index fbf4a457..a593ae6e 100644 --- a/Sources/OpenAPI/Generated/Entities/CiProductsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiProductsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct CiProductsResponse: Codable { } else if let value = try? container.decode(ScmRepository.self) { self = .scmRepository(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, BundleID, ScmRepository)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CiPullRequestStartCondition.swift b/Sources/OpenAPI/Generated/Entities/CiPullRequestStartCondition.swift index 04359aa1..df9cfaeb 100644 --- a/Sources/OpenAPI/Generated/Entities/CiPullRequestStartCondition.swift +++ b/Sources/OpenAPI/Generated/Entities/CiPullRequestStartCondition.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiScheduledStartCondition.swift b/Sources/OpenAPI/Generated/Entities/CiScheduledStartCondition.swift index 56d31123..887506e9 100644 --- a/Sources/OpenAPI/Generated/Entities/CiScheduledStartCondition.swift +++ b/Sources/OpenAPI/Generated/Entities/CiScheduledStartCondition.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiStartConditionFileMatcher.swift b/Sources/OpenAPI/Generated/Entities/CiStartConditionFileMatcher.swift index 4b6257c8..7205ffd1 100644 --- a/Sources/OpenAPI/Generated/Entities/CiStartConditionFileMatcher.swift +++ b/Sources/OpenAPI/Generated/Entities/CiStartConditionFileMatcher.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTagPatterns.swift b/Sources/OpenAPI/Generated/Entities/CiTagPatterns.swift index bdff576e..a31b33dd 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTagPatterns.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTagPatterns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTagStartCondition.swift b/Sources/OpenAPI/Generated/Entities/CiTagStartCondition.swift index c63eaa48..858d8681 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTagStartCondition.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTagStartCondition.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTestDestination.swift b/Sources/OpenAPI/Generated/Entities/CiTestDestination.swift index b001f5d2..db781575 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestDestination.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestDestination.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTestDestinationKind.swift b/Sources/OpenAPI/Generated/Entities/CiTestDestinationKind.swift index 25f7ee08..0353e106 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestDestinationKind.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestDestinationKind.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTestResult.swift b/Sources/OpenAPI/Generated/Entities/CiTestResult.swift index 7d6493aa..6bda9d00 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestResult.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestResult.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct CiTestResult: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciTestResults @@ -87,7 +85,7 @@ public struct CiTestResult: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -99,7 +97,7 @@ public struct CiTestResult: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -107,6 +105,6 @@ public struct CiTestResult: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiTestResultResponse.swift b/Sources/OpenAPI/Generated/Entities/CiTestResultResponse.swift index 93da86b7..5dcacaa2 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestResultResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestResultResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTestResultsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiTestResultsResponse.swift index 6f0d83d5..8ea604e8 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestResultsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestResultsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiTestStatus.swift b/Sources/OpenAPI/Generated/Entities/CiTestStatus.swift index 50a96307..7e3a3ad3 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestStatus.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift b/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift index 7ae070de..eb9355c0 100644 --- a/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift +++ b/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CiWorkflow: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciWorkflows @@ -388,7 +386,7 @@ public struct CiWorkflow: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -402,7 +400,7 @@ public struct CiWorkflow: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -411,6 +409,6 @@ public struct CiWorkflow: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiWorkflowCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/CiWorkflowCreateRequest.swift index d087755c..e523a878 100644 --- a/Sources/OpenAPI/Generated/Entities/CiWorkflowCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/CiWorkflowCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiWorkflowResponse.swift b/Sources/OpenAPI/Generated/Entities/CiWorkflowResponse.swift index cadefeb7..0ad85dd7 100644 --- a/Sources/OpenAPI/Generated/Entities/CiWorkflowResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiWorkflowResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct CiWorkflowResponse: Codable { } else if let value = try? container.decode(CiMacOsVersion.self) { self = .ciMacOsVersion(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (CiProduct, ScmRepository, CiXcodeVersion, CiMacOsVersion)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CiWorkflowUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/CiWorkflowUpdateRequest.swift index 549d2e09..ffa8db18 100644 --- a/Sources/OpenAPI/Generated/Entities/CiWorkflowUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/CiWorkflowUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiWorkflowsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiWorkflowsResponse.swift index 69e9c279..a36ba348 100644 --- a/Sources/OpenAPI/Generated/Entities/CiWorkflowsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiWorkflowsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct CiWorkflowsResponse: Codable { } else if let value = try? container.decode(CiMacOsVersion.self) { self = .ciMacOsVersion(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (CiProduct, ScmRepository, CiXcodeVersion, CiMacOsVersion)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift b/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift index 38c02b87..68dc33ca 100644 --- a/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CiXcodeVersion: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case ciXcodeVersions @@ -186,7 +184,7 @@ public struct CiXcodeVersion: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -200,7 +198,7 @@ public struct CiXcodeVersion: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -209,6 +207,6 @@ public struct CiXcodeVersion: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CiXcodeVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/CiXcodeVersionResponse.swift index c53b5bbc..a7289dfc 100644 --- a/Sources/OpenAPI/Generated/Entities/CiXcodeVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiXcodeVersionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CiXcodeVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/CiXcodeVersionsResponse.swift index df1b56ed..2c490e48 100644 --- a/Sources/OpenAPI/Generated/Entities/CiXcodeVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CiXcodeVersionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CustomerReview.swift b/Sources/OpenAPI/Generated/Entities/CustomerReview.swift index d397971c..eed899bd 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReview.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReview.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CustomerReview: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case customerReviews @@ -142,7 +140,7 @@ public struct CustomerReview: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -156,7 +154,7 @@ public struct CustomerReview: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -165,6 +163,6 @@ public struct CustomerReview: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponse.swift b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponse.swift index d3485a7b..aa5d7065 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift index 5b5eb8cf..b0d20c4a 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct CustomerReviewResponseV1: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case customerReviewResponses @@ -135,7 +133,7 @@ public struct CustomerReviewResponseV1: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -149,7 +147,7 @@ public struct CustomerReviewResponseV1: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -158,6 +156,6 @@ public struct CustomerReviewResponseV1: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1CreateRequest.swift b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1CreateRequest.swift index bee8829d..77dfe52f 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1CreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1CreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1Response.swift b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1Response.swift index 1da0cdac..239ba057 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1Response.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/CustomerReviewsResponse.swift b/Sources/OpenAPI/Generated/Entities/CustomerReviewsResponse.swift index 2bbd183d..ce4d3b71 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReviewsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReviewsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/Device.swift b/Sources/OpenAPI/Generated/Entities/Device.swift index 6180c586..c33a13de 100644 --- a/Sources/OpenAPI/Generated/Entities/Device.swift +++ b/Sources/OpenAPI/Generated/Entities/Device.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct Device: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case devices @@ -71,7 +69,7 @@ public struct Device: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -83,7 +81,7 @@ public struct Device: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -91,6 +89,6 @@ public struct Device: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/DeviceCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/DeviceCreateRequest.swift index 626c0b5d..5fa44d9c 100644 --- a/Sources/OpenAPI/Generated/Entities/DeviceCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/DeviceCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DeviceResponse.swift b/Sources/OpenAPI/Generated/Entities/DeviceResponse.swift index aea99c50..89a427fd 100644 --- a/Sources/OpenAPI/Generated/Entities/DeviceResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/DeviceResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DeviceUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/DeviceUpdateRequest.swift index f367c72a..d77cccc4 100644 --- a/Sources/OpenAPI/Generated/Entities/DeviceUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/DeviceUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DevicesResponse.swift b/Sources/OpenAPI/Generated/Entities/DevicesResponse.swift index f7313cd5..6f48fded 100644 --- a/Sources/OpenAPI/Generated/Entities/DevicesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/DevicesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DevicesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/DevicesWithoutIncludesResponse.swift new file mode 100644 index 00000000..245f038a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/DevicesWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct DevicesWithoutIncludesResponse: Codable { + public var data: [Profile] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [Profile], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Profile].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/DiagnosticLog.swift b/Sources/OpenAPI/Generated/Entities/DiagnosticLog.swift index 5bf3de00..100335fa 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticLog.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticLog.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct DiagnosticLog: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case diagnosticLogs } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/DiagnosticLogCallStackNode.swift b/Sources/OpenAPI/Generated/Entities/DiagnosticLogCallStackNode.swift index 2febcf6e..50616502 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticLogCallStackNode.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticLogCallStackNode.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DiagnosticLogs.swift b/Sources/OpenAPI/Generated/Entities/DiagnosticLogs.swift index 1d7b244a..49985e6e 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticLogs.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticLogs.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift b/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift index b00192cf..c02f1ec2 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct DiagnosticSignature: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case diagnosticSignatures @@ -46,11 +43,10 @@ public struct DiagnosticSignature: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -58,7 +54,6 @@ public struct DiagnosticSignature: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -66,6 +61,5 @@ public struct DiagnosticSignature: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/DiagnosticSignaturesResponse.swift b/Sources/OpenAPI/Generated/Entities/DiagnosticSignaturesResponse.swift index 391e899f..6b904e95 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticSignaturesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticSignaturesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/DocumentLinks.swift b/Sources/OpenAPI/Generated/Entities/DocumentLinks.swift index e5b53600..ba2261b0 100644 --- a/Sources/OpenAPI/Generated/Entities/DocumentLinks.swift +++ b/Sources/OpenAPI/Generated/Entities/DocumentLinks.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrder.swift b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrder.swift new file mode 100644 index 00000000..1dc557e0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrder.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct EndAppAvailabilityPreOrder: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case endAppAvailabilityPreOrders + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderCreateRequest.swift new file mode 100644 index 00000000..1edcf958 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderCreateRequest.swift @@ -0,0 +1,110 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct EndAppAvailabilityPreOrderCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case endAppAvailabilityPreOrders + } + + public struct Relationships: Codable { + public var territoryAvailabilities: TerritoryAvailabilities + + public struct TerritoryAvailabilities: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(territoryAvailabilities: TerritoryAvailabilities) { + self.territoryAvailabilities = territoryAvailabilities + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.territoryAvailabilities = try values.decode(TerritoryAvailabilities.self, forKey: "territoryAvailabilities") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(territoryAvailabilities, forKey: "territoryAvailabilities") + } + } + + public init(type: `Type`, relationships: Relationships) { + self.type = type + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderResponse.swift b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderResponse.swift new file mode 100644 index 00000000..d0f6396e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct EndAppAvailabilityPreOrderResponse: Codable { + /// EndAppAvailabilityPreOrder + public var data: EndAppAvailabilityPreOrder + public var links: DocumentLinks + + public init(data: EndAppAvailabilityPreOrder, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(EndAppAvailabilityPreOrder.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreement.swift b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreement.swift index d942784b..55751fad 100644 --- a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreement.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct EndUserLicenseAgreement: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case endUserLicenseAgreements @@ -200,7 +198,7 @@ public struct EndUserLicenseAgreement: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct EndUserLicenseAgreement: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct EndUserLicenseAgreement: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementCreateRequest.swift index b2362e03..5c1d7220 100644 --- a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementResponse.swift b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementResponse.swift index c5746b3f..35015c04 100644 --- a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct EndUserLicenseAgreementResponse: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementUpdateRequest.swift index 4db80131..7b687998 100644 --- a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementWithoutIncludesResponse.swift new file mode 100644 index 00000000..194c2277 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct EndUserLicenseAgreementWithoutIncludesResponse: Codable { + /// App + public var data: App + public var links: DocumentLinks + + public init(data: App, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(App.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift b/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift index e6287eab..1d07aad3 100644 --- a/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ErrorResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -27,7 +25,10 @@ public struct ErrorResponse: Codable { } else if let value = try? container.decode(ErrorSourceParameter.self) { self = .errorSourceParameter(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (ErrorSourcePointer, ErrorSourceParameter)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ErrorSourceParameter.swift b/Sources/OpenAPI/Generated/Entities/ErrorSourceParameter.swift index 0adfae84..d1087a8b 100644 --- a/Sources/OpenAPI/Generated/Entities/ErrorSourceParameter.swift +++ b/Sources/OpenAPI/Generated/Entities/ErrorSourceParameter.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ErrorSourcePointer.swift b/Sources/OpenAPI/Generated/Entities/ErrorSourcePointer.swift index db6cc59a..58f8d557 100644 --- a/Sources/OpenAPI/Generated/Entities/ErrorSourcePointer.swift +++ b/Sources/OpenAPI/Generated/Entities/ErrorSourcePointer.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ExternalBetaState.swift b/Sources/OpenAPI/Generated/Entities/ExternalBetaState.swift index d83f966b..855fbadc 100644 --- a/Sources/OpenAPI/Generated/Entities/ExternalBetaState.swift +++ b/Sources/OpenAPI/Generated/Entities/ExternalBetaState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/FileLocation.swift b/Sources/OpenAPI/Generated/Entities/FileLocation.swift index 39c33d8e..e841dd6e 100644 --- a/Sources/OpenAPI/Generated/Entities/FileLocation.swift +++ b/Sources/OpenAPI/Generated/Entities/FileLocation.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievement.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievement.swift new file mode 100644 index 00000000..85fd2612 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievement.swift @@ -0,0 +1,472 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievement: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public struct Attributes: Codable { + public var referenceName: String? + public var vendorIdentifier: String? + public var points: Int? + public var isShowBeforeEarned: Bool? + public var isRepeatable: Bool? + public var isArchived: Bool? + + public init(referenceName: String? = nil, vendorIdentifier: String? = nil, points: Int? = nil, isShowBeforeEarned: Bool? = nil, isRepeatable: Bool? = nil, isArchived: Bool? = nil) { + self.referenceName = referenceName + self.vendorIdentifier = vendorIdentifier + self.points = points + self.isShowBeforeEarned = isShowBeforeEarned + self.isRepeatable = isRepeatable + self.isArchived = isArchived + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + self.vendorIdentifier = try values.decodeIfPresent(String.self, forKey: "vendorIdentifier") + self.points = try values.decodeIfPresent(Int.self, forKey: "points") + self.isShowBeforeEarned = try values.decodeIfPresent(Bool.self, forKey: "showBeforeEarned") + self.isRepeatable = try values.decodeIfPresent(Bool.self, forKey: "repeatable") + self.isArchived = try values.decodeIfPresent(Bool.self, forKey: "archived") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + try values.encodeIfPresent(vendorIdentifier, forKey: "vendorIdentifier") + try values.encodeIfPresent(points, forKey: "points") + try values.encodeIfPresent(isShowBeforeEarned, forKey: "showBeforeEarned") + try values.encodeIfPresent(isRepeatable, forKey: "repeatable") + try values.encodeIfPresent(isArchived, forKey: "archived") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterGroup: GameCenterGroup? + public var groupAchievement: GroupAchievement? + public var localizations: Localizations? + public var releases: Releases? + + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterGroup: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GroupAchievement: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct Localizations: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct Releases: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementReleases + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterGroup: GameCenterGroup? = nil, groupAchievement: GroupAchievement? = nil, localizations: Localizations? = nil, releases: Releases? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterGroup = gameCenterGroup + self.groupAchievement = groupAchievement + self.localizations = localizations + self.releases = releases + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + self.groupAchievement = try values.decodeIfPresent(GroupAchievement.self, forKey: "groupAchievement") + self.localizations = try values.decodeIfPresent(Localizations.self, forKey: "localizations") + self.releases = try values.decodeIfPresent(Releases.self, forKey: "releases") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + try values.encodeIfPresent(groupAchievement, forKey: "groupAchievement") + try values.encodeIfPresent(localizations, forKey: "localizations") + try values.encodeIfPresent(releases, forKey: "releases") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementCreateRequest.swift new file mode 100644 index 00000000..9733f13c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementCreateRequest.swift @@ -0,0 +1,196 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public struct Attributes: Codable { + public var referenceName: String + public var vendorIdentifier: String + public var points: Int + public var isShowBeforeEarned: Bool + public var isRepeatable: Bool + + public init(referenceName: String, vendorIdentifier: String, points: Int, isShowBeforeEarned: Bool, isRepeatable: Bool) { + self.referenceName = referenceName + self.vendorIdentifier = vendorIdentifier + self.points = points + self.isShowBeforeEarned = isShowBeforeEarned + self.isRepeatable = isRepeatable + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decode(String.self, forKey: "referenceName") + self.vendorIdentifier = try values.decode(String.self, forKey: "vendorIdentifier") + self.points = try values.decode(Int.self, forKey: "points") + self.isShowBeforeEarned = try values.decode(Bool.self, forKey: "showBeforeEarned") + self.isRepeatable = try values.decode(Bool.self, forKey: "repeatable") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(referenceName, forKey: "referenceName") + try values.encode(vendorIdentifier, forKey: "vendorIdentifier") + try values.encode(points, forKey: "points") + try values.encode(isShowBeforeEarned, forKey: "showBeforeEarned") + try values.encode(isRepeatable, forKey: "repeatable") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterGroup: GameCenterGroup? + + public struct GameCenterDetail: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterGroup: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterGroup: GameCenterGroup? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterGroup = gameCenterGroup + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships? = nil) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageRequest.swift new file mode 100644 index 00000000..c8f75910 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementGroupAchievementLinkageRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageResponse.swift new file mode 100644 index 00000000..01a08223 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageResponse.swift @@ -0,0 +1,52 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementGroupAchievementLinkageResponse: Codable { + public var data: Data + public var links: DocumentLinks + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImage.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImage.swift new file mode 100644 index 00000000..492e368d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImage.swift @@ -0,0 +1,164 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementImage: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementImages + } + + public struct Attributes: Codable { + public var fileSize: Int? + public var fileName: String? + public var imageAsset: ImageAsset? + public var uploadOperations: [UploadOperation]? + public var assetDeliveryState: AppMediaAssetState? + + public init(fileSize: Int? = nil, fileName: String? = nil, imageAsset: ImageAsset? = nil, uploadOperations: [UploadOperation]? = nil, assetDeliveryState: AppMediaAssetState? = nil) { + self.fileSize = fileSize + self.fileName = fileName + self.imageAsset = imageAsset + self.uploadOperations = uploadOperations + self.assetDeliveryState = assetDeliveryState + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.fileSize = try values.decodeIfPresent(Int.self, forKey: "fileSize") + self.fileName = try values.decodeIfPresent(String.self, forKey: "fileName") + self.imageAsset = try values.decodeIfPresent(ImageAsset.self, forKey: "imageAsset") + self.uploadOperations = try values.decodeIfPresent([UploadOperation].self, forKey: "uploadOperations") + self.assetDeliveryState = try values.decodeIfPresent(AppMediaAssetState.self, forKey: "assetDeliveryState") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(fileSize, forKey: "fileSize") + try values.encodeIfPresent(fileName, forKey: "fileName") + try values.encodeIfPresent(imageAsset, forKey: "imageAsset") + try values.encodeIfPresent(uploadOperations, forKey: "uploadOperations") + try values.encodeIfPresent(assetDeliveryState, forKey: "assetDeliveryState") + } + } + + public struct Relationships: Codable { + public var gameCenterAchievementLocalization: GameCenterAchievementLocalization? + + public struct GameCenterAchievementLocalization: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterAchievementLocalization: GameCenterAchievementLocalization? = nil) { + self.gameCenterAchievementLocalization = gameCenterAchievementLocalization + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterAchievementLocalization = try values.decodeIfPresent(GameCenterAchievementLocalization.self, forKey: "gameCenterAchievementLocalization") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterAchievementLocalization, forKey: "gameCenterAchievementLocalization") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageCreateRequest.swift new file mode 100644 index 00000000..01f0cb79 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageCreateRequest.swift @@ -0,0 +1,136 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementImageCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementImages + } + + public struct Attributes: Codable { + public var fileSize: Int + public var fileName: String + + public init(fileSize: Int, fileName: String) { + self.fileSize = fileSize + self.fileName = fileName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.fileSize = try values.decode(Int.self, forKey: "fileSize") + self.fileName = try values.decode(String.self, forKey: "fileName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(fileSize, forKey: "fileSize") + try values.encode(fileName, forKey: "fileName") + } + } + + public struct Relationships: Codable { + public var gameCenterAchievementLocalization: GameCenterAchievementLocalization + + public struct GameCenterAchievementLocalization: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterAchievementLocalization: GameCenterAchievementLocalization) { + self.gameCenterAchievementLocalization = gameCenterAchievementLocalization + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterAchievementLocalization = try values.decode(GameCenterAchievementLocalization.self, forKey: "gameCenterAchievementLocalization") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterAchievementLocalization, forKey: "gameCenterAchievementLocalization") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageResponse.swift new file mode 100644 index 00000000..f04777f0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageResponse.swift @@ -0,0 +1,31 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementImageResponse: Codable { + /// GameCenterAchievementImage + public var data: GameCenterAchievementImage + public var included: [GameCenterAchievementLocalization]? + public var links: DocumentLinks + + public init(data: GameCenterAchievementImage, included: [GameCenterAchievementLocalization]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterAchievementImage.self, forKey: "data") + self.included = try values.decodeIfPresent([GameCenterAchievementLocalization].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageUpdateRequest.swift new file mode 100644 index 00000000..8c1df816 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementImageUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementImages + } + + public struct Attributes: Codable { + public var isUploaded: Bool? + + public init(isUploaded: Bool? = nil) { + self.isUploaded = isUploaded + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isUploaded = try values.decodeIfPresent(Bool.self, forKey: "uploaded") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isUploaded, forKey: "uploaded") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalization.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalization.swift new file mode 100644 index 00000000..80e6a9ef --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalization.swift @@ -0,0 +1,234 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementLocalization: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementLocalizations + } + + public struct Attributes: Codable { + public var locale: String? + public var name: String? + public var beforeEarnedDescription: String? + public var afterEarnedDescription: String? + + public init(locale: String? = nil, name: String? = nil, beforeEarnedDescription: String? = nil, afterEarnedDescription: String? = nil) { + self.locale = locale + self.name = name + self.beforeEarnedDescription = beforeEarnedDescription + self.afterEarnedDescription = afterEarnedDescription + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.locale = try values.decodeIfPresent(String.self, forKey: "locale") + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.beforeEarnedDescription = try values.decodeIfPresent(String.self, forKey: "beforeEarnedDescription") + self.afterEarnedDescription = try values.decodeIfPresent(String.self, forKey: "afterEarnedDescription") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(locale, forKey: "locale") + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(beforeEarnedDescription, forKey: "beforeEarnedDescription") + try values.encodeIfPresent(afterEarnedDescription, forKey: "afterEarnedDescription") + } + } + + public struct Relationships: Codable { + public var gameCenterAchievement: GameCenterAchievement? + public var gameCenterAchievementImage: GameCenterAchievementImage? + + public struct GameCenterAchievement: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterAchievementImage: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementImages + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterAchievement: GameCenterAchievement? = nil, gameCenterAchievementImage: GameCenterAchievementImage? = nil) { + self.gameCenterAchievement = gameCenterAchievement + self.gameCenterAchievementImage = gameCenterAchievementImage + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterAchievement = try values.decodeIfPresent(GameCenterAchievement.self, forKey: "gameCenterAchievement") + self.gameCenterAchievementImage = try values.decodeIfPresent(GameCenterAchievementImage.self, forKey: "gameCenterAchievementImage") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterAchievement, forKey: "gameCenterAchievement") + try values.encodeIfPresent(gameCenterAchievementImage, forKey: "gameCenterAchievementImage") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationCreateRequest.swift new file mode 100644 index 00000000..aab59eee --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationCreateRequest.swift @@ -0,0 +1,144 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementLocalizationCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementLocalizations + } + + public struct Attributes: Codable { + public var locale: String + public var name: String + public var beforeEarnedDescription: String + public var afterEarnedDescription: String + + public init(locale: String, name: String, beforeEarnedDescription: String, afterEarnedDescription: String) { + self.locale = locale + self.name = name + self.beforeEarnedDescription = beforeEarnedDescription + self.afterEarnedDescription = afterEarnedDescription + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.locale = try values.decode(String.self, forKey: "locale") + self.name = try values.decode(String.self, forKey: "name") + self.beforeEarnedDescription = try values.decode(String.self, forKey: "beforeEarnedDescription") + self.afterEarnedDescription = try values.decode(String.self, forKey: "afterEarnedDescription") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(locale, forKey: "locale") + try values.encode(name, forKey: "name") + try values.encode(beforeEarnedDescription, forKey: "beforeEarnedDescription") + try values.encode(afterEarnedDescription, forKey: "afterEarnedDescription") + } + } + + public struct Relationships: Codable { + public var gameCenterAchievement: GameCenterAchievement + + public struct GameCenterAchievement: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterAchievement: GameCenterAchievement) { + self.gameCenterAchievement = gameCenterAchievement + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterAchievement = try values.decode(GameCenterAchievement.self, forKey: "gameCenterAchievement") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterAchievement, forKey: "gameCenterAchievement") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationResponse.swift new file mode 100644 index 00000000..1d8c2963 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementLocalizationResponse: Codable { + /// GameCenterAchievementLocalization + public var data: GameCenterAchievementLocalization + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterAchievement(GameCenterAchievement) + case gameCenterAchievementImage(GameCenterAchievementImage) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else if let value = try? container.decode(GameCenterAchievementImage.self) { + self = .gameCenterAchievementImage(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterAchievement, GameCenterAchievementImage)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterAchievement(let value): try container.encode(value) + case .gameCenterAchievementImage(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterAchievementLocalization, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterAchievementLocalization.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationUpdateRequest.swift new file mode 100644 index 00000000..4856d7c2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationUpdateRequest.swift @@ -0,0 +1,78 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementLocalizationUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementLocalizations + } + + public struct Attributes: Codable { + public var name: String? + public var beforeEarnedDescription: String? + public var afterEarnedDescription: String? + + public init(name: String? = nil, beforeEarnedDescription: String? = nil, afterEarnedDescription: String? = nil) { + self.name = name + self.beforeEarnedDescription = beforeEarnedDescription + self.afterEarnedDescription = afterEarnedDescription + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.beforeEarnedDescription = try values.decodeIfPresent(String.self, forKey: "beforeEarnedDescription") + self.afterEarnedDescription = try values.decodeIfPresent(String.self, forKey: "afterEarnedDescription") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(beforeEarnedDescription, forKey: "beforeEarnedDescription") + try values.encodeIfPresent(afterEarnedDescription, forKey: "afterEarnedDescription") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationsResponse.swift new file mode 100644 index 00000000..ff86883e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationsResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementLocalizationsResponse: Codable { + public var data: [GameCenterAchievementLocalization] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterAchievement(GameCenterAchievement) + case gameCenterAchievementImage(GameCenterAchievementImage) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else if let value = try? container.decode(GameCenterAchievementImage.self) { + self = .gameCenterAchievementImage(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterAchievement, GameCenterAchievementImage)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterAchievement(let value): try container.encode(value) + case .gameCenterAchievementImage(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterAchievementLocalization], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterAchievementLocalization].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementRelease.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementRelease.swift new file mode 100644 index 00000000..e97743a3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementRelease.swift @@ -0,0 +1,222 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementRelease: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementReleases + } + + public struct Attributes: Codable { + public var isLive: Bool? + + public init(isLive: Bool? = nil) { + self.isLive = isLive + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isLive = try values.decodeIfPresent(Bool.self, forKey: "live") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isLive, forKey: "live") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterAchievement: GameCenterAchievement? + + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterAchievement: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterAchievement: GameCenterAchievement? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterAchievement = gameCenterAchievement + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterAchievement = try values.decodeIfPresent(GameCenterAchievement.self, forKey: "gameCenterAchievement") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterAchievement, forKey: "gameCenterAchievement") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseCreateRequest.swift new file mode 100644 index 00000000..1813151b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseCreateRequest.swift @@ -0,0 +1,158 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementReleaseCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementReleases + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail + public var gameCenterAchievement: GameCenterAchievement + + public struct GameCenterDetail: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public struct GameCenterAchievement: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail, gameCenterAchievement: GameCenterAchievement) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterAchievement = gameCenterAchievement + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decode(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterAchievement = try values.decode(GameCenterAchievement.self, forKey: "gameCenterAchievement") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterDetail, forKey: "gameCenterDetail") + try values.encode(gameCenterAchievement, forKey: "gameCenterAchievement") + } + } + + public init(type: `Type`, relationships: Relationships) { + self.type = type + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseResponse.swift new file mode 100644 index 00000000..b560d3ef --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementReleaseResponse: Codable { + /// GameCenterAchievementRelease + public var data: GameCenterAchievementRelease + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterAchievement(GameCenterAchievement) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterAchievement)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterAchievementRelease, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterAchievementRelease.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleasesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleasesResponse.swift new file mode 100644 index 00000000..200322de --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleasesResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementReleasesResponse: Codable { + public var data: [GameCenterAchievementRelease] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterAchievement(GameCenterAchievement) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterAchievement)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterAchievementRelease], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterAchievementRelease].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementResponse.swift new file mode 100644 index 00000000..35eb692f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementResponse.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementResponse: Codable { + /// GameCenterAchievement + public var data: GameCenterAchievement + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterGroup(GameCenterGroup) + case gameCenterAchievement(GameCenterAchievement) + case gameCenterAchievementLocalization(GameCenterAchievementLocalization) + case gameCenterAchievementRelease(GameCenterAchievementRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else if let value = try? container.decode(GameCenterAchievementLocalization.self) { + self = .gameCenterAchievementLocalization(value) + } else if let value = try? container.decode(GameCenterAchievementRelease.self) { + self = .gameCenterAchievementRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterGroup, GameCenterAchievement, GameCenterAchievementLocalization, GameCenterAchievementRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + case .gameCenterAchievementLocalization(let value): try container.encode(value) + case .gameCenterAchievementRelease(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterAchievement, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterAchievement.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementUpdateRequest.swift new file mode 100644 index 00000000..582a0256 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementUpdateRequest.swift @@ -0,0 +1,86 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public struct Attributes: Codable { + public var referenceName: String? + public var points: Int? + public var isShowBeforeEarned: Bool? + public var isRepeatable: Bool? + public var isArchived: Bool? + + public init(referenceName: String? = nil, points: Int? = nil, isShowBeforeEarned: Bool? = nil, isRepeatable: Bool? = nil, isArchived: Bool? = nil) { + self.referenceName = referenceName + self.points = points + self.isShowBeforeEarned = isShowBeforeEarned + self.isRepeatable = isRepeatable + self.isArchived = isArchived + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + self.points = try values.decodeIfPresent(Int.self, forKey: "points") + self.isShowBeforeEarned = try values.decodeIfPresent(Bool.self, forKey: "showBeforeEarned") + self.isRepeatable = try values.decodeIfPresent(Bool.self, forKey: "repeatable") + self.isArchived = try values.decodeIfPresent(Bool.self, forKey: "archived") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + try values.encodeIfPresent(points, forKey: "points") + try values.encodeIfPresent(isShowBeforeEarned, forKey: "showBeforeEarned") + try values.encodeIfPresent(isRepeatable, forKey: "repeatable") + try values.encodeIfPresent(isArchived, forKey: "archived") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAchievementsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementsResponse.swift new file mode 100644 index 00000000..3f2027fa --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementsResponse.swift @@ -0,0 +1,73 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAchievementsResponse: Codable { + public var data: [GameCenterAchievement] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterGroup(GameCenterGroup) + case gameCenterAchievement(GameCenterAchievement) + case gameCenterAchievementLocalization(GameCenterAchievementLocalization) + case gameCenterAchievementRelease(GameCenterAchievementRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else if let value = try? container.decode(GameCenterAchievementLocalization.self) { + self = .gameCenterAchievementLocalization(value) + } else if let value = try? container.decode(GameCenterAchievementRelease.self) { + self = .gameCenterAchievementRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterGroup, GameCenterAchievement, GameCenterAchievementLocalization, GameCenterAchievementRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + case .gameCenterAchievementLocalization(let value): try container.encode(value) + case .gameCenterAchievementRelease(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterAchievement], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterAchievement].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersion.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersion.swift new file mode 100644 index 00000000..094952f7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersion.swift @@ -0,0 +1,226 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersion: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public struct Attributes: Codable { + public var isEnabled: Bool? + + public init(isEnabled: Bool? = nil) { + self.isEnabled = isEnabled + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isEnabled = try values.decodeIfPresent(Bool.self, forKey: "enabled") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isEnabled, forKey: "enabled") + } + } + + public struct Relationships: Codable { + public var compatibilityVersions: CompatibilityVersions? + public var appStoreVersion: AppStoreVersion? + + public struct CompatibilityVersions: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct AppStoreVersion: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(compatibilityVersions: CompatibilityVersions? = nil, appStoreVersion: AppStoreVersion? = nil) { + self.compatibilityVersions = compatibilityVersions + self.appStoreVersion = appStoreVersion + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.compatibilityVersions = try values.decodeIfPresent(CompatibilityVersions.self, forKey: "compatibilityVersions") + self.appStoreVersion = try values.decodeIfPresent(AppStoreVersion.self, forKey: "appStoreVersion") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(compatibilityVersions, forKey: "compatibilityVersions") + try values.encodeIfPresent(appStoreVersion, forKey: "appStoreVersion") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesRequest.swift new file mode 100644 index 00000000..54055be9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersionCompatibilityVersionsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesResponse.swift new file mode 100644 index 00000000..071085a5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersionCompatibilityVersionsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCreateRequest.swift new file mode 100644 index 00000000..9c23da88 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCreateRequest.swift @@ -0,0 +1,110 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersionCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public struct Relationships: Codable { + public var appStoreVersion: AppStoreVersion + + public struct AppStoreVersion: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case appStoreVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(appStoreVersion: AppStoreVersion) { + self.appStoreVersion = appStoreVersion + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.appStoreVersion = try values.decode(AppStoreVersion.self, forKey: "appStoreVersion") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(appStoreVersion, forKey: "appStoreVersion") + } + } + + public init(type: `Type`, relationships: Relationships) { + self.type = type + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionResponse.swift new file mode 100644 index 00000000..c01ee25e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersionResponse: Codable { + /// GameCenterAppVersion + public var data: GameCenterAppVersion + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterAppVersion(GameCenterAppVersion) + case appStoreVersion(AppStoreVersion) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterAppVersion.self) { + self = .gameCenterAppVersion(value) + } else if let value = try? container.decode(AppStoreVersion.self) { + self = .appStoreVersion(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterAppVersion, AppStoreVersion)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterAppVersion(let value): try container.encode(value) + case .appStoreVersion(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterAppVersion, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterAppVersion.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionUpdateRequest.swift new file mode 100644 index 00000000..c433fcc6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersionUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public struct Attributes: Codable { + public var isEnabled: Bool? + + public init(isEnabled: Bool? = nil) { + self.isEnabled = isEnabled + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isEnabled = try values.decodeIfPresent(Bool.self, forKey: "enabled") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isEnabled, forKey: "enabled") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionsResponse.swift new file mode 100644 index 00000000..ad8708f7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionsResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterAppVersionsResponse: Codable { + public var data: [GameCenterAppVersion] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterAppVersion(GameCenterAppVersion) + case appStoreVersion(AppStoreVersion) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterAppVersion.self) { + self = .gameCenterAppVersion(value) + } else if let value = try? container.decode(AppStoreVersion.self) { + self = .appStoreVersion(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterAppVersion, AppStoreVersion)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterAppVersion(let value): try container.encode(value) + case .appStoreVersion(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterAppVersion], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterAppVersion].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetail.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetail.swift new file mode 100644 index 00000000..1c572cdd --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetail.swift @@ -0,0 +1,920 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetail: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public struct Attributes: Codable { + public var isArcadeEnabled: Bool? + public var isChallengeEnabled: Bool? + + public init(isArcadeEnabled: Bool? = nil, isChallengeEnabled: Bool? = nil) { + self.isArcadeEnabled = isArcadeEnabled + self.isChallengeEnabled = isChallengeEnabled + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isArcadeEnabled = try values.decodeIfPresent(Bool.self, forKey: "arcadeEnabled") + self.isChallengeEnabled = try values.decodeIfPresent(Bool.self, forKey: "challengeEnabled") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isArcadeEnabled, forKey: "arcadeEnabled") + try values.encodeIfPresent(isChallengeEnabled, forKey: "challengeEnabled") + } + } + + public struct Relationships: Codable { + public var app: App? + public var gameCenterAppVersions: GameCenterAppVersions? + public var gameCenterGroup: GameCenterGroup? + public var gameCenterLeaderboards: GameCenterLeaderboards? + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets? + public var gameCenterAchievements: GameCenterAchievements? + public var defaultLeaderboard: DefaultLeaderboard? + public var defaultGroupLeaderboard: DefaultGroupLeaderboard? + public var achievementReleases: AchievementReleases? + public var leaderboardReleases: LeaderboardReleases? + public var leaderboardSetReleases: LeaderboardSetReleases? + + public struct App: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case apps + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterAppVersions: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAppVersions + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterGroup: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboards: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSets: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterAchievements: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct DefaultLeaderboard: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct DefaultGroupLeaderboard: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct AchievementReleases: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievementReleases + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct LeaderboardReleases: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardReleases + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct LeaderboardSetReleases: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetReleases + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(app: App? = nil, gameCenterAppVersions: GameCenterAppVersions? = nil, gameCenterGroup: GameCenterGroup? = nil, gameCenterLeaderboards: GameCenterLeaderboards? = nil, gameCenterLeaderboardSets: GameCenterLeaderboardSets? = nil, gameCenterAchievements: GameCenterAchievements? = nil, defaultLeaderboard: DefaultLeaderboard? = nil, defaultGroupLeaderboard: DefaultGroupLeaderboard? = nil, achievementReleases: AchievementReleases? = nil, leaderboardReleases: LeaderboardReleases? = nil, leaderboardSetReleases: LeaderboardSetReleases? = nil) { + self.app = app + self.gameCenterAppVersions = gameCenterAppVersions + self.gameCenterGroup = gameCenterGroup + self.gameCenterLeaderboards = gameCenterLeaderboards + self.gameCenterLeaderboardSets = gameCenterLeaderboardSets + self.gameCenterAchievements = gameCenterAchievements + self.defaultLeaderboard = defaultLeaderboard + self.defaultGroupLeaderboard = defaultGroupLeaderboard + self.achievementReleases = achievementReleases + self.leaderboardReleases = leaderboardReleases + self.leaderboardSetReleases = leaderboardSetReleases + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.app = try values.decodeIfPresent(App.self, forKey: "app") + self.gameCenterAppVersions = try values.decodeIfPresent(GameCenterAppVersions.self, forKey: "gameCenterAppVersions") + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + self.gameCenterLeaderboards = try values.decodeIfPresent(GameCenterLeaderboards.self, forKey: "gameCenterLeaderboards") + self.gameCenterLeaderboardSets = try values.decodeIfPresent(GameCenterLeaderboardSets.self, forKey: "gameCenterLeaderboardSets") + self.gameCenterAchievements = try values.decodeIfPresent(GameCenterAchievements.self, forKey: "gameCenterAchievements") + self.defaultLeaderboard = try values.decodeIfPresent(DefaultLeaderboard.self, forKey: "defaultLeaderboard") + self.defaultGroupLeaderboard = try values.decodeIfPresent(DefaultGroupLeaderboard.self, forKey: "defaultGroupLeaderboard") + self.achievementReleases = try values.decodeIfPresent(AchievementReleases.self, forKey: "achievementReleases") + self.leaderboardReleases = try values.decodeIfPresent(LeaderboardReleases.self, forKey: "leaderboardReleases") + self.leaderboardSetReleases = try values.decodeIfPresent(LeaderboardSetReleases.self, forKey: "leaderboardSetReleases") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(app, forKey: "app") + try values.encodeIfPresent(gameCenterAppVersions, forKey: "gameCenterAppVersions") + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + try values.encodeIfPresent(gameCenterLeaderboards, forKey: "gameCenterLeaderboards") + try values.encodeIfPresent(gameCenterLeaderboardSets, forKey: "gameCenterLeaderboardSets") + try values.encodeIfPresent(gameCenterAchievements, forKey: "gameCenterAchievements") + try values.encodeIfPresent(defaultLeaderboard, forKey: "defaultLeaderboard") + try values.encodeIfPresent(defaultGroupLeaderboard, forKey: "defaultGroupLeaderboard") + try values.encodeIfPresent(achievementReleases, forKey: "achievementReleases") + try values.encodeIfPresent(leaderboardReleases, forKey: "leaderboardReleases") + try values.encodeIfPresent(leaderboardSetReleases, forKey: "leaderboardSetReleases") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailCreateRequest.swift new file mode 100644 index 00000000..6ef9f039 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailCreateRequest.swift @@ -0,0 +1,132 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes? + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public struct Attributes: Codable { + public var isChallengeEnabled: Bool? + + public init(isChallengeEnabled: Bool? = nil) { + self.isChallengeEnabled = isChallengeEnabled + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isChallengeEnabled = try values.decodeIfPresent(Bool.self, forKey: "challengeEnabled") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isChallengeEnabled, forKey: "challengeEnabled") + } + } + + public struct Relationships: Codable { + public var app: App + + public struct App: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case apps + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(app: App) { + self.app = app + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.app = try values.decode(App.self, forKey: "app") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(app, forKey: "app") + } + } + + public init(type: `Type`, attributes: Attributes? = nil, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesRequest.swift new file mode 100644 index 00000000..1504f669 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailGameCenterAchievementsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesResponse.swift new file mode 100644 index 00000000..dc680c19 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailGameCenterAchievementsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest.swift new file mode 100644 index 00000000..8e65b73a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse.swift new file mode 100644 index 00000000..ec2af2cd --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesRequest.swift new file mode 100644 index 00000000..55d9771a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailGameCenterLeaderboardsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesResponse.swift new file mode 100644 index 00000000..fac98fa2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailGameCenterLeaderboardsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailResponse.swift new file mode 100644 index 00000000..83f354c3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailResponse.swift @@ -0,0 +1,86 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailResponse: Codable { + /// GameCenterDetail + public var data: GameCenterDetail + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case app(App) + case gameCenterAppVersion(GameCenterAppVersion) + case gameCenterGroup(GameCenterGroup) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterAchievement(GameCenterAchievement) + case gameCenterAchievementRelease(GameCenterAchievementRelease) + case gameCenterLeaderboardRelease(GameCenterLeaderboardRelease) + case gameCenterLeaderboardSetRelease(GameCenterLeaderboardSetRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(App.self) { + self = .app(value) + } else if let value = try? container.decode(GameCenterAppVersion.self) { + self = .gameCenterAppVersion(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else if let value = try? container.decode(GameCenterAchievementRelease.self) { + self = .gameCenterAchievementRelease(value) + } else if let value = try? container.decode(GameCenterLeaderboardRelease.self) { + self = .gameCenterLeaderboardRelease(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetRelease.self) { + self = .gameCenterLeaderboardSetRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, GameCenterAppVersion, GameCenterGroup, GameCenterLeaderboard, GameCenterLeaderboardSet, GameCenterAchievement, GameCenterAchievementRelease, GameCenterLeaderboardRelease, GameCenterLeaderboardSetRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .app(let value): try container.encode(value) + case .gameCenterAppVersion(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + case .gameCenterAchievementRelease(let value): try container.encode(value) + case .gameCenterLeaderboardRelease(let value): try container.encode(value) + case .gameCenterLeaderboardSetRelease(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterDetail, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterDetail.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailUpdateRequest.swift new file mode 100644 index 00000000..41bad235 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailUpdateRequest.swift @@ -0,0 +1,232 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public struct Attributes: Codable { + public var isChallengeEnabled: Bool? + + public init(isChallengeEnabled: Bool? = nil) { + self.isChallengeEnabled = isChallengeEnabled + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isChallengeEnabled = try values.decodeIfPresent(Bool.self, forKey: "challengeEnabled") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isChallengeEnabled, forKey: "challengeEnabled") + } + } + + public struct Relationships: Codable { + public var gameCenterGroup: GameCenterGroup? + public var defaultLeaderboard: DefaultLeaderboard? + public var defaultGroupLeaderboard: DefaultGroupLeaderboard? + + public struct GameCenterGroup: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct DefaultLeaderboard: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct DefaultGroupLeaderboard: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterGroup: GameCenterGroup? = nil, defaultLeaderboard: DefaultLeaderboard? = nil, defaultGroupLeaderboard: DefaultGroupLeaderboard? = nil) { + self.gameCenterGroup = gameCenterGroup + self.defaultLeaderboard = defaultLeaderboard + self.defaultGroupLeaderboard = defaultGroupLeaderboard + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + self.defaultLeaderboard = try values.decodeIfPresent(DefaultLeaderboard.self, forKey: "defaultLeaderboard") + self.defaultGroupLeaderboard = try values.decodeIfPresent(DefaultGroupLeaderboard.self, forKey: "defaultGroupLeaderboard") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + try values.encodeIfPresent(defaultLeaderboard, forKey: "defaultLeaderboard") + try values.encodeIfPresent(defaultGroupLeaderboard, forKey: "defaultGroupLeaderboard") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterDetailsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterDetailsResponse.swift new file mode 100644 index 00000000..d7794409 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailsResponse.swift @@ -0,0 +1,89 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterDetailsResponse: Codable { + public var data: [GameCenterDetail] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case app(App) + case gameCenterAppVersion(GameCenterAppVersion) + case gameCenterGroup(GameCenterGroup) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterAchievement(GameCenterAchievement) + case gameCenterAchievementRelease(GameCenterAchievementRelease) + case gameCenterLeaderboardRelease(GameCenterLeaderboardRelease) + case gameCenterLeaderboardSetRelease(GameCenterLeaderboardSetRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(App.self) { + self = .app(value) + } else if let value = try? container.decode(GameCenterAppVersion.self) { + self = .gameCenterAppVersion(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else if let value = try? container.decode(GameCenterAchievementRelease.self) { + self = .gameCenterAchievementRelease(value) + } else if let value = try? container.decode(GameCenterLeaderboardRelease.self) { + self = .gameCenterLeaderboardRelease(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetRelease.self) { + self = .gameCenterLeaderboardSetRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, GameCenterAppVersion, GameCenterGroup, GameCenterLeaderboard, GameCenterLeaderboardSet, GameCenterAchievement, GameCenterAchievementRelease, GameCenterLeaderboardRelease, GameCenterLeaderboardSetRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .app(let value): try container.encode(value) + case .gameCenterAppVersion(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + case .gameCenterAchievementRelease(let value): try container.encode(value) + case .gameCenterLeaderboardRelease(let value): try container.encode(value) + case .gameCenterLeaderboardSetRelease(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterDetail], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterDetail].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersion.swift b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersion.swift index 5447e1d8..46277192 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersion.swift @@ -1,16 +1,14 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct GameCenterEnabledVersion: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case gameCenterEnabledVersions @@ -208,12 +206,11 @@ public struct GameCenterEnabledVersion: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { self.type = type self.id = id self.attributes = attributes self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -222,7 +219,6 @@ public struct GameCenterEnabledVersion: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -231,6 +227,5 @@ public struct GameCenterEnabledVersion: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift index 92aa2953..19ab0929 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift @@ -1,10 +1,9 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct GameCenterEnabledVersionCompatibleVersionsLinkagesRequest: Codable { public var data: [Datum] diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift index 4071e05b..653149aa 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift @@ -1,10 +1,9 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct GameCenterEnabledVersionCompatibleVersionsLinkagesResponse: Codable { public var data: [Datum] public var links: PagedDocumentLinks diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionsResponse.swift index f11a945e..56243449 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionsResponse.swift @@ -1,10 +1,9 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct GameCenterEnabledVersionsResponse: Codable { public var data: [GameCenterEnabledVersion] public var included: [IncludedItem]? @@ -22,7 +21,10 @@ public struct GameCenterEnabledVersionsResponse: Codable { } else if let value = try? container.decode(App.self) { self = .app(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterEnabledVersion, App)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift new file mode 100644 index 00000000..bef9023b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift @@ -0,0 +1,386 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroup: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public struct Attributes: Codable { + public var referenceName: String? + + public init(referenceName: String? = nil) { + self.referenceName = referenceName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + } + } + + public struct Relationships: Codable { + public var gameCenterDetails: GameCenterDetails? + public var gameCenterLeaderboards: GameCenterLeaderboards? + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets? + public var gameCenterAchievements: GameCenterAchievements? + + public struct GameCenterDetails: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboards: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSets: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterAchievements: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetails: GameCenterDetails? = nil, gameCenterLeaderboards: GameCenterLeaderboards? = nil, gameCenterLeaderboardSets: GameCenterLeaderboardSets? = nil, gameCenterAchievements: GameCenterAchievements? = nil) { + self.gameCenterDetails = gameCenterDetails + self.gameCenterLeaderboards = gameCenterLeaderboards + self.gameCenterLeaderboardSets = gameCenterLeaderboardSets + self.gameCenterAchievements = gameCenterAchievements + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetails = try values.decodeIfPresent(GameCenterDetails.self, forKey: "gameCenterDetails") + self.gameCenterLeaderboards = try values.decodeIfPresent(GameCenterLeaderboards.self, forKey: "gameCenterLeaderboards") + self.gameCenterLeaderboardSets = try values.decodeIfPresent(GameCenterLeaderboardSets.self, forKey: "gameCenterLeaderboardSets") + self.gameCenterAchievements = try values.decodeIfPresent(GameCenterAchievements.self, forKey: "gameCenterAchievements") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetails, forKey: "gameCenterDetails") + try values.encodeIfPresent(gameCenterLeaderboards, forKey: "gameCenterLeaderboards") + try values.encodeIfPresent(gameCenterLeaderboardSets, forKey: "gameCenterLeaderboardSets") + try values.encodeIfPresent(gameCenterAchievements, forKey: "gameCenterAchievements") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupCreateRequest.swift new file mode 100644 index 00000000..f3626a9f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupCreateRequest.swift @@ -0,0 +1,66 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public struct Attributes: Codable { + public var referenceName: String? + + public init(referenceName: String? = nil) { + self.referenceName = referenceName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + } + } + + public init(type: `Type`, attributes: Attributes? = nil) { + self.type = type + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesRequest.swift new file mode 100644 index 00000000..0a31c55c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupGameCenterAchievementsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesResponse.swift new file mode 100644 index 00000000..2bc05983 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupGameCenterAchievementsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterAchievements + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest.swift new file mode 100644 index 00000000..d9c50d69 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse.swift new file mode 100644 index 00000000..abb473bb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesRequest.swift new file mode 100644 index 00000000..3fed23a8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupGameCenterLeaderboardsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesResponse.swift new file mode 100644 index 00000000..06d4418c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupGameCenterLeaderboardsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupResponse.swift new file mode 100644 index 00000000..f97805c9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupResponse.swift @@ -0,0 +1,66 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupResponse: Codable { + /// GameCenterGroup + public var data: GameCenterGroup + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterAchievement(GameCenterAchievement) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterLeaderboard, GameCenterLeaderboardSet, GameCenterAchievement)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterGroup, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterGroup.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupUpdateRequest.swift new file mode 100644 index 00000000..dfafc280 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public struct Attributes: Codable { + public var referenceName: String? + + public init(referenceName: String? = nil) { + self.referenceName = referenceName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroupsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroupsResponse.swift new file mode 100644 index 00000000..a00f7b1c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupsResponse.swift @@ -0,0 +1,69 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterGroupsResponse: Codable { + public var data: [GameCenterGroup] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterAchievement(GameCenterAchievement) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterAchievement.self) { + self = .gameCenterAchievement(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterLeaderboard, GameCenterLeaderboardSet, GameCenterAchievement)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterAchievement(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterGroup], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterGroup].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboard.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboard.swift new file mode 100644 index 00000000..614db62e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboard.swift @@ -0,0 +1,580 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboard: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public struct Attributes: Codable { + public var defaultFormatter: GameCenterLeaderboardFormatter? + public var referenceName: String? + public var vendorIdentifier: String? + public var submissionType: SubmissionType? + public var scoreSortType: ScoreSortType? + public var scoreRangeStart: String? + public var scoreRangeEnd: String? + public var recurrenceStartDate: Date? + public var recurrenceDuration: String? + public var recurrenceRule: String? + public var isArchived: Bool? + + public enum SubmissionType: String, Codable, CaseIterable { + case bestScore = "BEST_SCORE" + case mostRecentScore = "MOST_RECENT_SCORE" + } + + public enum ScoreSortType: String, Codable, CaseIterable { + case asc = "ASC" + case desc = "DESC" + } + + public init(defaultFormatter: GameCenterLeaderboardFormatter? = nil, referenceName: String? = nil, vendorIdentifier: String? = nil, submissionType: SubmissionType? = nil, scoreSortType: ScoreSortType? = nil, scoreRangeStart: String? = nil, scoreRangeEnd: String? = nil, recurrenceStartDate: Date? = nil, recurrenceDuration: String? = nil, recurrenceRule: String? = nil, isArchived: Bool? = nil) { + self.defaultFormatter = defaultFormatter + self.referenceName = referenceName + self.vendorIdentifier = vendorIdentifier + self.submissionType = submissionType + self.scoreSortType = scoreSortType + self.scoreRangeStart = scoreRangeStart + self.scoreRangeEnd = scoreRangeEnd + self.recurrenceStartDate = recurrenceStartDate + self.recurrenceDuration = recurrenceDuration + self.recurrenceRule = recurrenceRule + self.isArchived = isArchived + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.defaultFormatter = try values.decodeIfPresent(GameCenterLeaderboardFormatter.self, forKey: "defaultFormatter") + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + self.vendorIdentifier = try values.decodeIfPresent(String.self, forKey: "vendorIdentifier") + self.submissionType = try values.decodeIfPresent(SubmissionType.self, forKey: "submissionType") + self.scoreSortType = try values.decodeIfPresent(ScoreSortType.self, forKey: "scoreSortType") + self.scoreRangeStart = try values.decodeIfPresent(String.self, forKey: "scoreRangeStart") + self.scoreRangeEnd = try values.decodeIfPresent(String.self, forKey: "scoreRangeEnd") + self.recurrenceStartDate = try values.decodeIfPresent(Date.self, forKey: "recurrenceStartDate") + self.recurrenceDuration = try values.decodeIfPresent(String.self, forKey: "recurrenceDuration") + self.recurrenceRule = try values.decodeIfPresent(String.self, forKey: "recurrenceRule") + self.isArchived = try values.decodeIfPresent(Bool.self, forKey: "archived") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(defaultFormatter, forKey: "defaultFormatter") + try values.encodeIfPresent(referenceName, forKey: "referenceName") + try values.encodeIfPresent(vendorIdentifier, forKey: "vendorIdentifier") + try values.encodeIfPresent(submissionType, forKey: "submissionType") + try values.encodeIfPresent(scoreSortType, forKey: "scoreSortType") + try values.encodeIfPresent(scoreRangeStart, forKey: "scoreRangeStart") + try values.encodeIfPresent(scoreRangeEnd, forKey: "scoreRangeEnd") + try values.encodeIfPresent(recurrenceStartDate, forKey: "recurrenceStartDate") + try values.encodeIfPresent(recurrenceDuration, forKey: "recurrenceDuration") + try values.encodeIfPresent(recurrenceRule, forKey: "recurrenceRule") + try values.encodeIfPresent(isArchived, forKey: "archived") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterGroup: GameCenterGroup? + public var groupLeaderboard: GroupLeaderboard? + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets? + public var localizations: Localizations? + public var releases: Releases? + + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterGroup: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GroupLeaderboard: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSets: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct Localizations: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct Releases: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardReleases + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterGroup: GameCenterGroup? = nil, groupLeaderboard: GroupLeaderboard? = nil, gameCenterLeaderboardSets: GameCenterLeaderboardSets? = nil, localizations: Localizations? = nil, releases: Releases? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterGroup = gameCenterGroup + self.groupLeaderboard = groupLeaderboard + self.gameCenterLeaderboardSets = gameCenterLeaderboardSets + self.localizations = localizations + self.releases = releases + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + self.groupLeaderboard = try values.decodeIfPresent(GroupLeaderboard.self, forKey: "groupLeaderboard") + self.gameCenterLeaderboardSets = try values.decodeIfPresent(GameCenterLeaderboardSets.self, forKey: "gameCenterLeaderboardSets") + self.localizations = try values.decodeIfPresent(Localizations.self, forKey: "localizations") + self.releases = try values.decodeIfPresent(Releases.self, forKey: "releases") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + try values.encodeIfPresent(groupLeaderboard, forKey: "groupLeaderboard") + try values.encodeIfPresent(gameCenterLeaderboardSets, forKey: "gameCenterLeaderboardSets") + try values.encodeIfPresent(localizations, forKey: "localizations") + try values.encodeIfPresent(releases, forKey: "releases") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardCreateRequest.swift new file mode 100644 index 00000000..21f84695 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardCreateRequest.swift @@ -0,0 +1,274 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public struct Attributes: Codable { + public var defaultFormatter: GameCenterLeaderboardFormatter + public var referenceName: String + public var vendorIdentifier: String + public var submissionType: SubmissionType + public var scoreSortType: ScoreSortType + public var scoreRangeStart: String? + public var scoreRangeEnd: String? + public var recurrenceStartDate: Date? + public var recurrenceDuration: String? + public var recurrenceRule: String? + + public enum SubmissionType: String, Codable, CaseIterable { + case bestScore = "BEST_SCORE" + case mostRecentScore = "MOST_RECENT_SCORE" + } + + public enum ScoreSortType: String, Codable, CaseIterable { + case asc = "ASC" + case desc = "DESC" + } + + public init(defaultFormatter: GameCenterLeaderboardFormatter, referenceName: String, vendorIdentifier: String, submissionType: SubmissionType, scoreSortType: ScoreSortType, scoreRangeStart: String? = nil, scoreRangeEnd: String? = nil, recurrenceStartDate: Date? = nil, recurrenceDuration: String? = nil, recurrenceRule: String? = nil) { + self.defaultFormatter = defaultFormatter + self.referenceName = referenceName + self.vendorIdentifier = vendorIdentifier + self.submissionType = submissionType + self.scoreSortType = scoreSortType + self.scoreRangeStart = scoreRangeStart + self.scoreRangeEnd = scoreRangeEnd + self.recurrenceStartDate = recurrenceStartDate + self.recurrenceDuration = recurrenceDuration + self.recurrenceRule = recurrenceRule + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.defaultFormatter = try values.decode(GameCenterLeaderboardFormatter.self, forKey: "defaultFormatter") + self.referenceName = try values.decode(String.self, forKey: "referenceName") + self.vendorIdentifier = try values.decode(String.self, forKey: "vendorIdentifier") + self.submissionType = try values.decode(SubmissionType.self, forKey: "submissionType") + self.scoreSortType = try values.decode(ScoreSortType.self, forKey: "scoreSortType") + self.scoreRangeStart = try values.decodeIfPresent(String.self, forKey: "scoreRangeStart") + self.scoreRangeEnd = try values.decodeIfPresent(String.self, forKey: "scoreRangeEnd") + self.recurrenceStartDate = try values.decodeIfPresent(Date.self, forKey: "recurrenceStartDate") + self.recurrenceDuration = try values.decodeIfPresent(String.self, forKey: "recurrenceDuration") + self.recurrenceRule = try values.decodeIfPresent(String.self, forKey: "recurrenceRule") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(defaultFormatter, forKey: "defaultFormatter") + try values.encode(referenceName, forKey: "referenceName") + try values.encode(vendorIdentifier, forKey: "vendorIdentifier") + try values.encode(submissionType, forKey: "submissionType") + try values.encode(scoreSortType, forKey: "scoreSortType") + try values.encodeIfPresent(scoreRangeStart, forKey: "scoreRangeStart") + try values.encodeIfPresent(scoreRangeEnd, forKey: "scoreRangeEnd") + try values.encodeIfPresent(recurrenceStartDate, forKey: "recurrenceStartDate") + try values.encodeIfPresent(recurrenceDuration, forKey: "recurrenceDuration") + try values.encodeIfPresent(recurrenceRule, forKey: "recurrenceRule") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterGroup: GameCenterGroup? + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets? + + public struct GameCenterDetail: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterGroup: Codable { + public var data: Data? + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSets: Codable { + public var data: [Datum]? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]? = nil) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterGroup: GameCenterGroup? = nil, gameCenterLeaderboardSets: GameCenterLeaderboardSets? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterGroup = gameCenterGroup + self.gameCenterLeaderboardSets = gameCenterLeaderboardSets + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + self.gameCenterLeaderboardSets = try values.decodeIfPresent(GameCenterLeaderboardSets.self, forKey: "gameCenterLeaderboardSets") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + try values.encodeIfPresent(gameCenterLeaderboardSets, forKey: "gameCenterLeaderboardSets") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships? = nil) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardFormatter.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardFormatter.swift new file mode 100644 index 00000000..9a795dfc --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardFormatter.swift @@ -0,0 +1,25 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public enum GameCenterLeaderboardFormatter: String, Codable, CaseIterable { + case integer = "INTEGER" + case decimalPoint1Place = "DECIMAL_POINT_1_PLACE" + case decimalPoint2Place = "DECIMAL_POINT_2_PLACE" + case decimalPoint3Place = "DECIMAL_POINT_3_PLACE" + case elapsedTimeMillisecond = "ELAPSED_TIME_MILLISECOND" + case elapsedTimeMinute = "ELAPSED_TIME_MINUTE" + case elapsedTimeSecond = "ELAPSED_TIME_SECOND" + case moneyPoundDecimal = "MONEY_POUND_DECIMAL" + case moneyPound = "MONEY_POUND" + case moneyDollarDecimal = "MONEY_DOLLAR_DECIMAL" + case moneyDollar = "MONEY_DOLLAR" + case moneyEuroDecimal = "MONEY_EURO_DECIMAL" + case moneyEuro = "MONEY_EURO" + case moneyFrancDecimal = "MONEY_FRANC_DECIMAL" + case moneyFranc = "MONEY_FRANC" + case moneyKronerDecimal = "MONEY_KRONER_DECIMAL" + case moneyKroner = "MONEY_KRONER" + case moneyYen = "MONEY_YEN" +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageRequest.swift new file mode 100644 index 00000000..94b79948 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardGroupLeaderboardLinkageRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageResponse.swift new file mode 100644 index 00000000..40a955b1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageResponse.swift @@ -0,0 +1,52 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardGroupLeaderboardLinkageResponse: Codable { + public var data: Data + public var links: DocumentLinks + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImage.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImage.swift new file mode 100644 index 00000000..b4884ddc --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImage.swift @@ -0,0 +1,164 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardImage: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardImages + } + + public struct Attributes: Codable { + public var fileSize: Int? + public var fileName: String? + public var imageAsset: ImageAsset? + public var uploadOperations: [UploadOperation]? + public var assetDeliveryState: AppMediaAssetState? + + public init(fileSize: Int? = nil, fileName: String? = nil, imageAsset: ImageAsset? = nil, uploadOperations: [UploadOperation]? = nil, assetDeliveryState: AppMediaAssetState? = nil) { + self.fileSize = fileSize + self.fileName = fileName + self.imageAsset = imageAsset + self.uploadOperations = uploadOperations + self.assetDeliveryState = assetDeliveryState + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.fileSize = try values.decodeIfPresent(Int.self, forKey: "fileSize") + self.fileName = try values.decodeIfPresent(String.self, forKey: "fileName") + self.imageAsset = try values.decodeIfPresent(ImageAsset.self, forKey: "imageAsset") + self.uploadOperations = try values.decodeIfPresent([UploadOperation].self, forKey: "uploadOperations") + self.assetDeliveryState = try values.decodeIfPresent(AppMediaAssetState.self, forKey: "assetDeliveryState") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(fileSize, forKey: "fileSize") + try values.encodeIfPresent(fileName, forKey: "fileName") + try values.encodeIfPresent(imageAsset, forKey: "imageAsset") + try values.encodeIfPresent(uploadOperations, forKey: "uploadOperations") + try values.encodeIfPresent(assetDeliveryState, forKey: "assetDeliveryState") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardLocalization: GameCenterLeaderboardLocalization? + + public struct GameCenterLeaderboardLocalization: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardLocalization: GameCenterLeaderboardLocalization? = nil) { + self.gameCenterLeaderboardLocalization = gameCenterLeaderboardLocalization + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardLocalization = try values.decodeIfPresent(GameCenterLeaderboardLocalization.self, forKey: "gameCenterLeaderboardLocalization") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterLeaderboardLocalization, forKey: "gameCenterLeaderboardLocalization") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageCreateRequest.swift new file mode 100644 index 00000000..d68df309 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageCreateRequest.swift @@ -0,0 +1,136 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardImageCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardImages + } + + public struct Attributes: Codable { + public var fileSize: Int + public var fileName: String + + public init(fileSize: Int, fileName: String) { + self.fileSize = fileSize + self.fileName = fileName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.fileSize = try values.decode(Int.self, forKey: "fileSize") + self.fileName = try values.decode(String.self, forKey: "fileName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(fileSize, forKey: "fileSize") + try values.encode(fileName, forKey: "fileName") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardLocalization: GameCenterLeaderboardLocalization + + public struct GameCenterLeaderboardLocalization: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardLocalization: GameCenterLeaderboardLocalization) { + self.gameCenterLeaderboardLocalization = gameCenterLeaderboardLocalization + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardLocalization = try values.decode(GameCenterLeaderboardLocalization.self, forKey: "gameCenterLeaderboardLocalization") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterLeaderboardLocalization, forKey: "gameCenterLeaderboardLocalization") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageResponse.swift new file mode 100644 index 00000000..5dec6615 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageResponse.swift @@ -0,0 +1,31 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardImageResponse: Codable { + /// GameCenterLeaderboardImage + public var data: GameCenterLeaderboardImage + public var included: [GameCenterLeaderboardLocalization]? + public var links: DocumentLinks + + public init(data: GameCenterLeaderboardImage, included: [GameCenterLeaderboardLocalization]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardImage.self, forKey: "data") + self.included = try values.decodeIfPresent([GameCenterLeaderboardLocalization].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageUpdateRequest.swift new file mode 100644 index 00000000..d1308673 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardImageUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardImages + } + + public struct Attributes: Codable { + public var isUploaded: Bool? + + public init(isUploaded: Bool? = nil) { + self.isUploaded = isUploaded + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isUploaded = try values.decodeIfPresent(Bool.self, forKey: "uploaded") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isUploaded, forKey: "uploaded") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalization.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalization.swift new file mode 100644 index 00000000..210cc895 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalization.swift @@ -0,0 +1,238 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardLocalization: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalizations + } + + public struct Attributes: Codable { + public var locale: String? + public var name: String? + public var formatterOverride: GameCenterLeaderboardFormatter? + public var formatterSuffix: String? + public var formatterSuffixSingular: String? + + public init(locale: String? = nil, name: String? = nil, formatterOverride: GameCenterLeaderboardFormatter? = nil, formatterSuffix: String? = nil, formatterSuffixSingular: String? = nil) { + self.locale = locale + self.name = name + self.formatterOverride = formatterOverride + self.formatterSuffix = formatterSuffix + self.formatterSuffixSingular = formatterSuffixSingular + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.locale = try values.decodeIfPresent(String.self, forKey: "locale") + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.formatterOverride = try values.decodeIfPresent(GameCenterLeaderboardFormatter.self, forKey: "formatterOverride") + self.formatterSuffix = try values.decodeIfPresent(String.self, forKey: "formatterSuffix") + self.formatterSuffixSingular = try values.decodeIfPresent(String.self, forKey: "formatterSuffixSingular") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(locale, forKey: "locale") + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(formatterOverride, forKey: "formatterOverride") + try values.encodeIfPresent(formatterSuffix, forKey: "formatterSuffix") + try values.encodeIfPresent(formatterSuffixSingular, forKey: "formatterSuffixSingular") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboard: GameCenterLeaderboard? + public var gameCenterLeaderboardImage: GameCenterLeaderboardImage? + + public struct GameCenterLeaderboard: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardImage: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardImages + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterLeaderboard: GameCenterLeaderboard? = nil, gameCenterLeaderboardImage: GameCenterLeaderboardImage? = nil) { + self.gameCenterLeaderboard = gameCenterLeaderboard + self.gameCenterLeaderboardImage = gameCenterLeaderboardImage + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboard = try values.decodeIfPresent(GameCenterLeaderboard.self, forKey: "gameCenterLeaderboard") + self.gameCenterLeaderboardImage = try values.decodeIfPresent(GameCenterLeaderboardImage.self, forKey: "gameCenterLeaderboardImage") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterLeaderboard, forKey: "gameCenterLeaderboard") + try values.encodeIfPresent(gameCenterLeaderboardImage, forKey: "gameCenterLeaderboardImage") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationCreateRequest.swift new file mode 100644 index 00000000..8fd98398 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationCreateRequest.swift @@ -0,0 +1,148 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardLocalizationCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalizations + } + + public struct Attributes: Codable { + public var locale: String + public var name: String + public var formatterOverride: GameCenterLeaderboardFormatter? + public var formatterSuffix: String? + public var formatterSuffixSingular: String? + + public init(locale: String, name: String, formatterOverride: GameCenterLeaderboardFormatter? = nil, formatterSuffix: String? = nil, formatterSuffixSingular: String? = nil) { + self.locale = locale + self.name = name + self.formatterOverride = formatterOverride + self.formatterSuffix = formatterSuffix + self.formatterSuffixSingular = formatterSuffixSingular + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.locale = try values.decode(String.self, forKey: "locale") + self.name = try values.decode(String.self, forKey: "name") + self.formatterOverride = try values.decodeIfPresent(GameCenterLeaderboardFormatter.self, forKey: "formatterOverride") + self.formatterSuffix = try values.decodeIfPresent(String.self, forKey: "formatterSuffix") + self.formatterSuffixSingular = try values.decodeIfPresent(String.self, forKey: "formatterSuffixSingular") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(locale, forKey: "locale") + try values.encode(name, forKey: "name") + try values.encodeIfPresent(formatterOverride, forKey: "formatterOverride") + try values.encodeIfPresent(formatterSuffix, forKey: "formatterSuffix") + try values.encodeIfPresent(formatterSuffixSingular, forKey: "formatterSuffixSingular") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboard: GameCenterLeaderboard + + public struct GameCenterLeaderboard: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterLeaderboard: GameCenterLeaderboard) { + self.gameCenterLeaderboard = gameCenterLeaderboard + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboard = try values.decode(GameCenterLeaderboard.self, forKey: "gameCenterLeaderboard") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterLeaderboard, forKey: "gameCenterLeaderboard") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationResponse.swift new file mode 100644 index 00000000..75b53192 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardLocalizationResponse: Codable { + /// GameCenterLeaderboardLocalization + public var data: GameCenterLeaderboardLocalization + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardImage(GameCenterLeaderboardImage) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardImage.self) { + self = .gameCenterLeaderboardImage(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterLeaderboard, GameCenterLeaderboardImage)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardImage(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboardLocalization, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardLocalization.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationUpdateRequest.swift new file mode 100644 index 00000000..d9a959cc --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationUpdateRequest.swift @@ -0,0 +1,82 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardLocalizationUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalizations + } + + public struct Attributes: Codable { + public var name: String? + public var formatterOverride: GameCenterLeaderboardFormatter? + public var formatterSuffix: String? + public var formatterSuffixSingular: String? + + public init(name: String? = nil, formatterOverride: GameCenterLeaderboardFormatter? = nil, formatterSuffix: String? = nil, formatterSuffixSingular: String? = nil) { + self.name = name + self.formatterOverride = formatterOverride + self.formatterSuffix = formatterSuffix + self.formatterSuffixSingular = formatterSuffixSingular + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.formatterOverride = try values.decodeIfPresent(GameCenterLeaderboardFormatter.self, forKey: "formatterOverride") + self.formatterSuffix = try values.decodeIfPresent(String.self, forKey: "formatterSuffix") + self.formatterSuffixSingular = try values.decodeIfPresent(String.self, forKey: "formatterSuffixSingular") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(formatterOverride, forKey: "formatterOverride") + try values.encodeIfPresent(formatterSuffix, forKey: "formatterSuffix") + try values.encodeIfPresent(formatterSuffixSingular, forKey: "formatterSuffixSingular") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationsResponse.swift new file mode 100644 index 00000000..5e7f0466 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationsResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardLocalizationsResponse: Codable { + public var data: [GameCenterLeaderboardLocalization] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardImage(GameCenterLeaderboardImage) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardImage.self) { + self = .gameCenterLeaderboardImage(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterLeaderboard, GameCenterLeaderboardImage)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardImage(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboardLocalization], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboardLocalization].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardRelease.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardRelease.swift new file mode 100644 index 00000000..39b0cc1a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardRelease.swift @@ -0,0 +1,222 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardRelease: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardReleases + } + + public struct Attributes: Codable { + public var isLive: Bool? + + public init(isLive: Bool? = nil) { + self.isLive = isLive + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isLive = try values.decodeIfPresent(Bool.self, forKey: "live") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isLive, forKey: "live") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterLeaderboard: GameCenterLeaderboard? + + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboard: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterLeaderboard: GameCenterLeaderboard? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterLeaderboard = gameCenterLeaderboard + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterLeaderboard = try values.decodeIfPresent(GameCenterLeaderboard.self, forKey: "gameCenterLeaderboard") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterLeaderboard, forKey: "gameCenterLeaderboard") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseCreateRequest.swift new file mode 100644 index 00000000..f197d354 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseCreateRequest.swift @@ -0,0 +1,158 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardReleaseCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardReleases + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail + public var gameCenterLeaderboard: GameCenterLeaderboard + + public struct GameCenterDetail: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public struct GameCenterLeaderboard: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail, gameCenterLeaderboard: GameCenterLeaderboard) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterLeaderboard = gameCenterLeaderboard + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decode(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterLeaderboard = try values.decode(GameCenterLeaderboard.self, forKey: "gameCenterLeaderboard") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterDetail, forKey: "gameCenterDetail") + try values.encode(gameCenterLeaderboard, forKey: "gameCenterLeaderboard") + } + } + + public init(type: `Type`, relationships: Relationships) { + self.type = type + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseResponse.swift new file mode 100644 index 00000000..d58db832 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardReleaseResponse: Codable { + /// GameCenterLeaderboardRelease + public var data: GameCenterLeaderboardRelease + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterLeaderboard(GameCenterLeaderboard) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterLeaderboard)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboardRelease, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardRelease.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleasesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleasesResponse.swift new file mode 100644 index 00000000..6d8e95eb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleasesResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardReleasesResponse: Codable { + public var data: [GameCenterLeaderboardRelease] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterLeaderboard(GameCenterLeaderboard) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterLeaderboard)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboardRelease], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboardRelease].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardResponse.swift new file mode 100644 index 00000000..a0cb107c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardResponse.swift @@ -0,0 +1,74 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardResponse: Codable { + /// GameCenterLeaderboard + public var data: GameCenterLeaderboard + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterGroup(GameCenterGroup) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboardLocalization(GameCenterLeaderboardLocalization) + case gameCenterLeaderboardRelease(GameCenterLeaderboardRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboardLocalization.self) { + self = .gameCenterLeaderboardLocalization(value) + } else if let value = try? container.decode(GameCenterLeaderboardRelease.self) { + self = .gameCenterLeaderboardRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterGroup, GameCenterLeaderboard, GameCenterLeaderboardSet, GameCenterLeaderboardLocalization, GameCenterLeaderboardRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboardLocalization(let value): try container.encode(value) + case .gameCenterLeaderboardRelease(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboard, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboard.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSet.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSet.swift new file mode 100644 index 00000000..398e62a7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSet.swift @@ -0,0 +1,534 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSet: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public struct Attributes: Codable { + public var referenceName: String? + public var vendorIdentifier: String? + + public init(referenceName: String? = nil, vendorIdentifier: String? = nil) { + self.referenceName = referenceName + self.vendorIdentifier = vendorIdentifier + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + self.vendorIdentifier = try values.decodeIfPresent(String.self, forKey: "vendorIdentifier") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + try values.encodeIfPresent(vendorIdentifier, forKey: "vendorIdentifier") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterGroup: GameCenterGroup? + public var groupLeaderboardSet: GroupLeaderboardSet? + public var localizations: Localizations? + public var gameCenterLeaderboards: GameCenterLeaderboards? + public var releases: Releases? + + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterGroup: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterGroups + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GroupLeaderboardSet: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct Localizations: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboards: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct Releases: Codable { + public var links: Links? + public var meta: PagingInformation? + public var data: [Datum]? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetReleases + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, meta: PagingInformation? = nil, data: [Datum]? = nil) { + self.links = links + self.meta = meta + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + self.data = try values.decodeIfPresent([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterGroup: GameCenterGroup? = nil, groupLeaderboardSet: GroupLeaderboardSet? = nil, localizations: Localizations? = nil, gameCenterLeaderboards: GameCenterLeaderboards? = nil, releases: Releases? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterGroup = gameCenterGroup + self.groupLeaderboardSet = groupLeaderboardSet + self.localizations = localizations + self.gameCenterLeaderboards = gameCenterLeaderboards + self.releases = releases + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterGroup = try values.decodeIfPresent(GameCenterGroup.self, forKey: "gameCenterGroup") + self.groupLeaderboardSet = try values.decodeIfPresent(GroupLeaderboardSet.self, forKey: "groupLeaderboardSet") + self.localizations = try values.decodeIfPresent(Localizations.self, forKey: "localizations") + self.gameCenterLeaderboards = try values.decodeIfPresent(GameCenterLeaderboards.self, forKey: "gameCenterLeaderboards") + self.releases = try values.decodeIfPresent(Releases.self, forKey: "releases") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterGroup, forKey: "gameCenterGroup") + try values.encodeIfPresent(groupLeaderboardSet, forKey: "groupLeaderboardSet") + try values.encodeIfPresent(localizations, forKey: "localizations") + try values.encodeIfPresent(gameCenterLeaderboards, forKey: "gameCenterLeaderboards") + try values.encodeIfPresent(releases, forKey: "releases") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetCreateRequest.swift new file mode 100644 index 00000000..fba60da6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetCreateRequest.swift @@ -0,0 +1,136 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public struct Attributes: Codable { + public var referenceName: String + public var vendorIdentifier: String + + public init(referenceName: String, vendorIdentifier: String) { + self.referenceName = referenceName + self.vendorIdentifier = vendorIdentifier + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decode(String.self, forKey: "referenceName") + self.vendorIdentifier = try values.decode(String.self, forKey: "vendorIdentifier") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(referenceName, forKey: "referenceName") + try values.encode(vendorIdentifier, forKey: "vendorIdentifier") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboards: GameCenterLeaderboards + + public struct GameCenterLeaderboards: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterLeaderboards: GameCenterLeaderboards) { + self.gameCenterLeaderboards = gameCenterLeaderboards + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboards = try values.decode(GameCenterLeaderboards.self, forKey: "gameCenterLeaderboards") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterLeaderboards, forKey: "gameCenterLeaderboards") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest.swift new file mode 100644 index 00000000..09fc3676 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest: Codable { + public var data: [Datum] + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum]) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse.swift new file mode 100644 index 00000000..695b38f9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse.swift @@ -0,0 +1,56 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse: Codable { + public var data: [Datum] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public struct Datum: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: [Datum], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([Datum].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest.swift new file mode 100644 index 00000000..9c3fe601 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest.swift @@ -0,0 +1,48 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse.swift new file mode 100644 index 00000000..f04819b0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse.swift @@ -0,0 +1,52 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse: Codable { + public var data: Data + public var links: DocumentLinks + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImage.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImage.swift new file mode 100644 index 00000000..fca6ddb3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImage.swift @@ -0,0 +1,164 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetImage: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetImages + } + + public struct Attributes: Codable { + public var fileSize: Int? + public var fileName: String? + public var imageAsset: ImageAsset? + public var uploadOperations: [UploadOperation]? + public var assetDeliveryState: AppMediaAssetState? + + public init(fileSize: Int? = nil, fileName: String? = nil, imageAsset: ImageAsset? = nil, uploadOperations: [UploadOperation]? = nil, assetDeliveryState: AppMediaAssetState? = nil) { + self.fileSize = fileSize + self.fileName = fileName + self.imageAsset = imageAsset + self.uploadOperations = uploadOperations + self.assetDeliveryState = assetDeliveryState + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.fileSize = try values.decodeIfPresent(Int.self, forKey: "fileSize") + self.fileName = try values.decodeIfPresent(String.self, forKey: "fileName") + self.imageAsset = try values.decodeIfPresent(ImageAsset.self, forKey: "imageAsset") + self.uploadOperations = try values.decodeIfPresent([UploadOperation].self, forKey: "uploadOperations") + self.assetDeliveryState = try values.decodeIfPresent(AppMediaAssetState.self, forKey: "assetDeliveryState") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(fileSize, forKey: "fileSize") + try values.encodeIfPresent(fileName, forKey: "fileName") + try values.encodeIfPresent(imageAsset, forKey: "imageAsset") + try values.encodeIfPresent(uploadOperations, forKey: "uploadOperations") + try values.encodeIfPresent(assetDeliveryState, forKey: "assetDeliveryState") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardSetLocalization: GameCenterLeaderboardSetLocalization? + + public struct GameCenterLeaderboardSetLocalization: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardSetLocalization: GameCenterLeaderboardSetLocalization? = nil) { + self.gameCenterLeaderboardSetLocalization = gameCenterLeaderboardSetLocalization + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardSetLocalization = try values.decodeIfPresent(GameCenterLeaderboardSetLocalization.self, forKey: "gameCenterLeaderboardSetLocalization") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterLeaderboardSetLocalization, forKey: "gameCenterLeaderboardSetLocalization") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageCreateRequest.swift new file mode 100644 index 00000000..c5b7079d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageCreateRequest.swift @@ -0,0 +1,136 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetImageCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetImages + } + + public struct Attributes: Codable { + public var fileSize: Int + public var fileName: String + + public init(fileSize: Int, fileName: String) { + self.fileSize = fileSize + self.fileName = fileName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.fileSize = try values.decode(Int.self, forKey: "fileSize") + self.fileName = try values.decode(String.self, forKey: "fileName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(fileSize, forKey: "fileSize") + try values.encode(fileName, forKey: "fileName") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardSetLocalization: GameCenterLeaderboardSetLocalization + + public struct GameCenterLeaderboardSetLocalization: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalizations + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardSetLocalization: GameCenterLeaderboardSetLocalization) { + self.gameCenterLeaderboardSetLocalization = gameCenterLeaderboardSetLocalization + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardSetLocalization = try values.decode(GameCenterLeaderboardSetLocalization.self, forKey: "gameCenterLeaderboardSetLocalization") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterLeaderboardSetLocalization, forKey: "gameCenterLeaderboardSetLocalization") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageResponse.swift new file mode 100644 index 00000000..53753777 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageResponse.swift @@ -0,0 +1,31 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetImageResponse: Codable { + /// GameCenterLeaderboardSetImage + public var data: GameCenterLeaderboardSetImage + public var included: [GameCenterLeaderboardSetLocalization]? + public var links: DocumentLinks + + public init(data: GameCenterLeaderboardSetImage, included: [GameCenterLeaderboardSetLocalization]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardSetImage.self, forKey: "data") + self.included = try values.decodeIfPresent([GameCenterLeaderboardSetLocalization].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageUpdateRequest.swift new file mode 100644 index 00000000..c465ba56 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetImageUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetImages + } + + public struct Attributes: Codable { + public var isUploaded: Bool? + + public init(isUploaded: Bool? = nil) { + self.isUploaded = isUploaded + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isUploaded = try values.decodeIfPresent(Bool.self, forKey: "uploaded") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isUploaded, forKey: "uploaded") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalization.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalization.swift new file mode 100644 index 00000000..52f354d9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalization.swift @@ -0,0 +1,226 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetLocalization: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalizations + } + + public struct Attributes: Codable { + public var locale: String? + public var name: String? + + public init(locale: String? = nil, name: String? = nil) { + self.locale = locale + self.name = name + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.locale = try values.decodeIfPresent(String.self, forKey: "locale") + self.name = try values.decodeIfPresent(String.self, forKey: "name") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(locale, forKey: "locale") + try values.encodeIfPresent(name, forKey: "name") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet? + public var gameCenterLeaderboardSetImage: GameCenterLeaderboardSetImage? + + public struct GameCenterLeaderboardSet: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSetImage: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetImages + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardSet: GameCenterLeaderboardSet? = nil, gameCenterLeaderboardSetImage: GameCenterLeaderboardSetImage? = nil) { + self.gameCenterLeaderboardSet = gameCenterLeaderboardSet + self.gameCenterLeaderboardSetImage = gameCenterLeaderboardSetImage + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardSet = try values.decodeIfPresent(GameCenterLeaderboardSet.self, forKey: "gameCenterLeaderboardSet") + self.gameCenterLeaderboardSetImage = try values.decodeIfPresent(GameCenterLeaderboardSetImage.self, forKey: "gameCenterLeaderboardSetImage") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterLeaderboardSet, forKey: "gameCenterLeaderboardSet") + try values.encodeIfPresent(gameCenterLeaderboardSetImage, forKey: "gameCenterLeaderboardSetImage") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationCreateRequest.swift new file mode 100644 index 00000000..7be20620 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationCreateRequest.swift @@ -0,0 +1,136 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetLocalizationCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalizations + } + + public struct Attributes: Codable { + public var locale: String + public var name: String + + public init(locale: String, name: String) { + self.locale = locale + self.name = name + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.locale = try values.decode(String.self, forKey: "locale") + self.name = try values.decode(String.self, forKey: "name") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(locale, forKey: "locale") + try values.encode(name, forKey: "name") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet + + public struct GameCenterLeaderboardSet: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardSet: GameCenterLeaderboardSet) { + self.gameCenterLeaderboardSet = gameCenterLeaderboardSet + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardSet = try values.decode(GameCenterLeaderboardSet.self, forKey: "gameCenterLeaderboardSet") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterLeaderboardSet, forKey: "gameCenterLeaderboardSet") + } + } + + public init(type: `Type`, attributes: Attributes, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decode(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationResponse.swift new file mode 100644 index 00000000..5b9d955e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetLocalizationResponse: Codable { + /// GameCenterLeaderboardSetLocalization + public var data: GameCenterLeaderboardSetLocalization + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboardSetImage(GameCenterLeaderboardSetImage) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetImage.self) { + self = .gameCenterLeaderboardSetImage(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterLeaderboardSet, GameCenterLeaderboardSetImage)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboardSetImage(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboardSetLocalization, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardSetLocalization.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationUpdateRequest.swift new file mode 100644 index 00000000..5b2c0d14 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetLocalizationUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalizations + } + + public struct Attributes: Codable { + public var name: String? + + public init(name: String? = nil) { + self.name = name + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationsResponse.swift new file mode 100644 index 00000000..bb1dbac3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationsResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetLocalizationsResponse: Codable { + public var data: [GameCenterLeaderboardSetLocalization] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboardSetImage(GameCenterLeaderboardSetImage) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetImage.self) { + self = .gameCenterLeaderboardSetImage(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterLeaderboardSet, GameCenterLeaderboardSetImage)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboardSetImage(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboardSetLocalization], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboardSetLocalization].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalization.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalization.swift new file mode 100644 index 00000000..8ec4c132 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalization.swift @@ -0,0 +1,226 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetMemberLocalization: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetMemberLocalizations + } + + public struct Attributes: Codable { + public var name: String? + public var locale: String? + + public init(name: String? = nil, locale: String? = nil) { + self.name = name + self.locale = locale + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.locale = try values.decodeIfPresent(String.self, forKey: "locale") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(locale, forKey: "locale") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet? + public var gameCenterLeaderboard: GameCenterLeaderboard? + + public struct GameCenterLeaderboardSet: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboard: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardSet: GameCenterLeaderboardSet? = nil, gameCenterLeaderboard: GameCenterLeaderboard? = nil) { + self.gameCenterLeaderboardSet = gameCenterLeaderboardSet + self.gameCenterLeaderboard = gameCenterLeaderboard + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardSet = try values.decodeIfPresent(GameCenterLeaderboardSet.self, forKey: "gameCenterLeaderboardSet") + self.gameCenterLeaderboard = try values.decodeIfPresent(GameCenterLeaderboard.self, forKey: "gameCenterLeaderboard") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterLeaderboardSet, forKey: "gameCenterLeaderboardSet") + try values.encodeIfPresent(gameCenterLeaderboard, forKey: "gameCenterLeaderboard") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationCreateRequest.swift new file mode 100644 index 00000000..2546f30a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationCreateRequest.swift @@ -0,0 +1,184 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetMemberLocalizationCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var attributes: Attributes? + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetMemberLocalizations + } + + public struct Attributes: Codable { + public var name: String? + public var locale: String? + + public init(name: String? = nil, locale: String? = nil) { + self.name = name + self.locale = locale + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + self.locale = try values.decodeIfPresent(String.self, forKey: "locale") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + try values.encodeIfPresent(locale, forKey: "locale") + } + } + + public struct Relationships: Codable { + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet + public var gameCenterLeaderboard: GameCenterLeaderboard + + public struct GameCenterLeaderboardSet: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public struct GameCenterLeaderboard: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterLeaderboardSet: GameCenterLeaderboardSet, gameCenterLeaderboard: GameCenterLeaderboard) { + self.gameCenterLeaderboardSet = gameCenterLeaderboardSet + self.gameCenterLeaderboard = gameCenterLeaderboard + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterLeaderboardSet = try values.decode(GameCenterLeaderboardSet.self, forKey: "gameCenterLeaderboardSet") + self.gameCenterLeaderboard = try values.decode(GameCenterLeaderboard.self, forKey: "gameCenterLeaderboard") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterLeaderboardSet, forKey: "gameCenterLeaderboardSet") + try values.encode(gameCenterLeaderboard, forKey: "gameCenterLeaderboard") + } + } + + public init(type: `Type`, attributes: Attributes? = nil, relationships: Relationships) { + self.type = type + self.attributes = attributes + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationResponse.swift new file mode 100644 index 00000000..7a61a803 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetMemberLocalizationResponse: Codable { + /// GameCenterLeaderboardSetMemberLocalization + public var data: GameCenterLeaderboardSetMemberLocalization + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboard(GameCenterLeaderboard) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterLeaderboardSet, GameCenterLeaderboard)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboardSetMemberLocalization, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardSetMemberLocalization.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationUpdateRequest.swift new file mode 100644 index 00000000..6ac25271 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetMemberLocalizationUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetMemberLocalizations + } + + public struct Attributes: Codable { + public var name: String? + + public init(name: String? = nil) { + self.name = name + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.name = try values.decodeIfPresent(String.self, forKey: "name") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(name, forKey: "name") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationsResponse.swift new file mode 100644 index 00000000..bb6c1c13 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationsResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetMemberLocalizationsResponse: Codable { + public var data: [GameCenterLeaderboardSetMemberLocalization] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboard(GameCenterLeaderboard) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterLeaderboardSet, GameCenterLeaderboard)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboardSetMemberLocalization], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboardSetMemberLocalization].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetRelease.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetRelease.swift new file mode 100644 index 00000000..5a908218 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetRelease.swift @@ -0,0 +1,222 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetRelease: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetReleases + } + + public struct Attributes: Codable { + public var isLive: Bool? + + public init(isLive: Bool? = nil) { + self.isLive = isLive + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isLive = try values.decodeIfPresent(Bool.self, forKey: "live") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isLive, forKey: "live") + } + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail? + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet? + + public struct GameCenterDetail: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSet: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail? = nil, gameCenterLeaderboardSet: GameCenterLeaderboardSet? = nil) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterLeaderboardSet = gameCenterLeaderboardSet + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decodeIfPresent(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterLeaderboardSet = try values.decodeIfPresent(GameCenterLeaderboardSet.self, forKey: "gameCenterLeaderboardSet") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(gameCenterDetail, forKey: "gameCenterDetail") + try values.encodeIfPresent(gameCenterLeaderboardSet, forKey: "gameCenterLeaderboardSet") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseCreateRequest.swift new file mode 100644 index 00000000..c9db19f6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseCreateRequest.swift @@ -0,0 +1,158 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetReleaseCreateRequest: Codable { + public var data: Data + + public struct Data: Codable { + public var type: `Type` + public var relationships: Relationships + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSetReleases + } + + public struct Relationships: Codable { + public var gameCenterDetail: GameCenterDetail + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet + + public struct GameCenterDetail: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterDetails + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public struct GameCenterLeaderboardSet: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } + } + + public init(gameCenterDetail: GameCenterDetail, gameCenterLeaderboardSet: GameCenterLeaderboardSet) { + self.gameCenterDetail = gameCenterDetail + self.gameCenterLeaderboardSet = gameCenterLeaderboardSet + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.gameCenterDetail = try values.decode(GameCenterDetail.self, forKey: "gameCenterDetail") + self.gameCenterLeaderboardSet = try values.decode(GameCenterLeaderboardSet.self, forKey: "gameCenterLeaderboardSet") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(gameCenterDetail, forKey: "gameCenterDetail") + try values.encode(gameCenterLeaderboardSet, forKey: "gameCenterLeaderboardSet") + } + } + + public init(type: `Type`, relationships: Relationships) { + self.type = type + self.relationships = relationships + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.relationships = try values.decode(Relationships.self, forKey: "relationships") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(relationships, forKey: "relationships") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseResponse.swift new file mode 100644 index 00000000..cd192177 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetReleaseResponse: Codable { + /// GameCenterLeaderboardSetRelease + public var data: GameCenterLeaderboardSetRelease + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterLeaderboardSet)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboardSetRelease, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardSetRelease.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleasesResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleasesResponse.swift new file mode 100644 index 00000000..acd81cea --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleasesResponse.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetReleasesResponse: Codable { + public var data: [GameCenterLeaderboardSetRelease] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterLeaderboardSet)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboardSetRelease], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboardSetRelease].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetResponse.swift new file mode 100644 index 00000000..dba58f68 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetResponse.swift @@ -0,0 +1,74 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetResponse: Codable { + /// GameCenterLeaderboardSet + public var data: GameCenterLeaderboardSet + public var included: [IncludedItem]? + public var links: DocumentLinks + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterGroup(GameCenterGroup) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboardSetLocalization(GameCenterLeaderboardSetLocalization) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSetRelease(GameCenterLeaderboardSetRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetLocalization.self) { + self = .gameCenterLeaderboardSetLocalization(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetRelease.self) { + self = .gameCenterLeaderboardSetRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterGroup, GameCenterLeaderboardSet, GameCenterLeaderboardSetLocalization, GameCenterLeaderboard, GameCenterLeaderboardSetRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboardSetLocalization(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSetRelease(let value): try container.encode(value) + } + } + } + + public init(data: GameCenterLeaderboardSet, included: [IncludedItem]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(GameCenterLeaderboardSet.self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetUpdateRequest.swift new file mode 100644 index 00000000..821885fa --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetUpdateRequest.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboardSets + } + + public struct Attributes: Codable { + public var referenceName: String? + + public init(referenceName: String? = nil) { + self.referenceName = referenceName + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(referenceName, forKey: "referenceName") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetsResponse.swift new file mode 100644 index 00000000..882e1015 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetsResponse.swift @@ -0,0 +1,77 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardSetsResponse: Codable { + public var data: [GameCenterLeaderboardSet] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterGroup(GameCenterGroup) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboardSetLocalization(GameCenterLeaderboardSetLocalization) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSetRelease(GameCenterLeaderboardSetRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetLocalization.self) { + self = .gameCenterLeaderboardSetLocalization(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSetRelease.self) { + self = .gameCenterLeaderboardSetRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterGroup, GameCenterLeaderboardSet, GameCenterLeaderboardSetLocalization, GameCenterLeaderboard, GameCenterLeaderboardSetRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboardSetLocalization(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSetRelease(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboardSet], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboardSet].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardUpdateRequest.swift new file mode 100644 index 00000000..cb1dd293 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardUpdateRequest.swift @@ -0,0 +1,116 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case gameCenterLeaderboards + } + + public struct Attributes: Codable { + public var defaultFormatter: GameCenterLeaderboardFormatter? + public var referenceName: String? + public var submissionType: SubmissionType? + public var scoreSortType: ScoreSortType? + public var scoreRangeStart: String? + public var scoreRangeEnd: String? + public var recurrenceStartDate: Date? + public var recurrenceDuration: String? + public var recurrenceRule: String? + public var isArchived: Bool? + + public enum SubmissionType: String, Codable, CaseIterable { + case bestScore = "BEST_SCORE" + case mostRecentScore = "MOST_RECENT_SCORE" + } + + public enum ScoreSortType: String, Codable, CaseIterable { + case asc = "ASC" + case desc = "DESC" + } + + public init(defaultFormatter: GameCenterLeaderboardFormatter? = nil, referenceName: String? = nil, submissionType: SubmissionType? = nil, scoreSortType: ScoreSortType? = nil, scoreRangeStart: String? = nil, scoreRangeEnd: String? = nil, recurrenceStartDate: Date? = nil, recurrenceDuration: String? = nil, recurrenceRule: String? = nil, isArchived: Bool? = nil) { + self.defaultFormatter = defaultFormatter + self.referenceName = referenceName + self.submissionType = submissionType + self.scoreSortType = scoreSortType + self.scoreRangeStart = scoreRangeStart + self.scoreRangeEnd = scoreRangeEnd + self.recurrenceStartDate = recurrenceStartDate + self.recurrenceDuration = recurrenceDuration + self.recurrenceRule = recurrenceRule + self.isArchived = isArchived + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.defaultFormatter = try values.decodeIfPresent(GameCenterLeaderboardFormatter.self, forKey: "defaultFormatter") + self.referenceName = try values.decodeIfPresent(String.self, forKey: "referenceName") + self.submissionType = try values.decodeIfPresent(SubmissionType.self, forKey: "submissionType") + self.scoreSortType = try values.decodeIfPresent(ScoreSortType.self, forKey: "scoreSortType") + self.scoreRangeStart = try values.decodeIfPresent(String.self, forKey: "scoreRangeStart") + self.scoreRangeEnd = try values.decodeIfPresent(String.self, forKey: "scoreRangeEnd") + self.recurrenceStartDate = try values.decodeIfPresent(Date.self, forKey: "recurrenceStartDate") + self.recurrenceDuration = try values.decodeIfPresent(String.self, forKey: "recurrenceDuration") + self.recurrenceRule = try values.decodeIfPresent(String.self, forKey: "recurrenceRule") + self.isArchived = try values.decodeIfPresent(Bool.self, forKey: "archived") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(defaultFormatter, forKey: "defaultFormatter") + try values.encodeIfPresent(referenceName, forKey: "referenceName") + try values.encodeIfPresent(submissionType, forKey: "submissionType") + try values.encodeIfPresent(scoreSortType, forKey: "scoreSortType") + try values.encodeIfPresent(scoreRangeStart, forKey: "scoreRangeStart") + try values.encodeIfPresent(scoreRangeEnd, forKey: "scoreRangeEnd") + try values.encodeIfPresent(recurrenceStartDate, forKey: "recurrenceStartDate") + try values.encodeIfPresent(recurrenceDuration, forKey: "recurrenceDuration") + try values.encodeIfPresent(recurrenceRule, forKey: "recurrenceRule") + try values.encodeIfPresent(isArchived, forKey: "archived") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardsResponse.swift b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardsResponse.swift new file mode 100644 index 00000000..622f54e8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardsResponse.swift @@ -0,0 +1,77 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct GameCenterLeaderboardsResponse: Codable { + public var data: [GameCenterLeaderboard] + public var included: [IncludedItem]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public enum IncludedItem: Codable { + case gameCenterDetail(GameCenterDetail) + case gameCenterGroup(GameCenterGroup) + case gameCenterLeaderboard(GameCenterLeaderboard) + case gameCenterLeaderboardSet(GameCenterLeaderboardSet) + case gameCenterLeaderboardLocalization(GameCenterLeaderboardLocalization) + case gameCenterLeaderboardRelease(GameCenterLeaderboardRelease) + + public init(from decoder: Decoder) throws { + let container = try decoder.singleValueContainer() + if let value = try? container.decode(GameCenterDetail.self) { + self = .gameCenterDetail(value) + } else if let value = try? container.decode(GameCenterGroup.self) { + self = .gameCenterGroup(value) + } else if let value = try? container.decode(GameCenterLeaderboard.self) { + self = .gameCenterLeaderboard(value) + } else if let value = try? container.decode(GameCenterLeaderboardSet.self) { + self = .gameCenterLeaderboardSet(value) + } else if let value = try? container.decode(GameCenterLeaderboardLocalization.self) { + self = .gameCenterLeaderboardLocalization(value) + } else if let value = try? container.decode(GameCenterLeaderboardRelease.self) { + self = .gameCenterLeaderboardRelease(value) + } else { + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (GameCenterDetail, GameCenterGroup, GameCenterLeaderboard, GameCenterLeaderboardSet, GameCenterLeaderboardLocalization, GameCenterLeaderboardRelease)." + ) + } + } + + public func encode(to encoder: Encoder) throws { + var container = encoder.singleValueContainer() + switch self { + case .gameCenterDetail(let value): try container.encode(value) + case .gameCenterGroup(let value): try container.encode(value) + case .gameCenterLeaderboard(let value): try container.encode(value) + case .gameCenterLeaderboardSet(let value): try container.encode(value) + case .gameCenterLeaderboardLocalization(let value): try container.encode(value) + case .gameCenterLeaderboardRelease(let value): try container.encode(value) + } + } + } + + public init(data: [GameCenterLeaderboard], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([GameCenterLeaderboard].self, forKey: "data") + self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/HTTPHeader.swift b/Sources/OpenAPI/Generated/Entities/HTTPHeader.swift index f4d10e6e..f50d7dd7 100644 --- a/Sources/OpenAPI/Generated/Entities/HTTPHeader.swift +++ b/Sources/OpenAPI/Generated/Entities/HTTPHeader.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/IconAssetType.swift b/Sources/OpenAPI/Generated/Entities/IconAssetType.swift index 1810c07e..20616929 100644 --- a/Sources/OpenAPI/Generated/Entities/IconAssetType.swift +++ b/Sources/OpenAPI/Generated/Entities/IconAssetType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ImageAsset.swift b/Sources/OpenAPI/Generated/Entities/ImageAsset.swift index 62c62d19..f4d9027b 100644 --- a/Sources/OpenAPI/Generated/Entities/ImageAsset.swift +++ b/Sources/OpenAPI/Generated/Entities/ImageAsset.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift index 736fda78..8fc82e37 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift @@ -1,16 +1,15 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct InAppPurchase: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchases @@ -168,7 +167,7 @@ public struct InAppPurchase: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -182,7 +181,7 @@ public struct InAppPurchase: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -191,6 +190,6 @@ public struct InAppPurchase: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshot.swift index 65541777..8c411304 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchaseAppStoreReviewScreenshots @@ -150,7 +148,7 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct InAppPurchaseAppStoreReviewScreenshot: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift index 395a7d4b..2e3cdf08 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotResponse.swift index 39a18085..a4d11b3c 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift index c4f2b434..7e2e2763 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshotUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift index 62751dc9..f9067119 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct InAppPurchaseAvailability: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchaseAvailabilities @@ -126,7 +124,7 @@ public struct InAppPurchaseAvailability: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -140,7 +138,7 @@ public struct InAppPurchaseAvailability: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -149,6 +147,6 @@ public struct InAppPurchaseAvailability: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityCreateRequest.swift index e1e9f30c..419509e5 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityResponse.swift index accc1a4b..4ea675f4 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailabilityResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift index 5f6f98a8..22974cbf 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct InAppPurchaseContent: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchaseContents @@ -134,7 +132,7 @@ public struct InAppPurchaseContent: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -148,7 +146,7 @@ public struct InAppPurchaseContent: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -157,6 +155,6 @@ public struct InAppPurchaseContent: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseContentResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseContentResponse.swift index 2b036012..f5db6069 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseContentResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseContentResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift index 6fe3adff..868b5b42 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct InAppPurchaseLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchaseLocalizations @@ -141,7 +139,7 @@ public struct InAppPurchaseLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -155,7 +153,7 @@ public struct InAppPurchaseLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -164,6 +162,6 @@ public struct InAppPurchaseLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationCreateRequest.swift index 8c7f93f4..a7fa08e5 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationResponse.swift index 3b7bbdf5..9e489bb5 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationUpdateRequest.swift index 625ce04b..ca97d6c3 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationsResponse.swift index 488f1e96..9450cef1 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift index 6ab056ab..3ffaa578 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,6 @@ public struct InAppPurchasePrice: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case inAppPurchasePrices @@ -204,12 +201,11 @@ public struct InAppPurchasePrice: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { self.type = type self.id = id self.attributes = attributes self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -218,7 +214,6 @@ public struct InAppPurchasePrice: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -227,6 +222,5 @@ public struct InAppPurchasePrice: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceInlineCreate.swift index fe055fa4..33984439 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift index fe60a4a1..74c36892 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,6 @@ public struct InAppPurchasePricePoint: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case inAppPurchasePricePoints @@ -131,12 +128,11 @@ public struct InAppPurchasePricePoint: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil) { self.type = type self.id = id self.attributes = attributes self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -145,7 +141,6 @@ public struct InAppPurchasePricePoint: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -154,6 +149,5 @@ public struct InAppPurchasePricePoint: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePointsResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePointsResponse.swift index 11e4e4a4..119aac95 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePointsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePointsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift index 5f9e3242..ea8b6cde 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct InAppPurchasePriceSchedule: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchasePriceSchedules @@ -333,7 +331,7 @@ public struct InAppPurchasePriceSchedule: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.relationships = relationships @@ -345,7 +343,7 @@ public struct InAppPurchasePriceSchedule: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -353,6 +351,6 @@ public struct InAppPurchasePriceSchedule: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleCreateRequest.swift index e61cbd18..0a10e6e2 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -204,7 +202,10 @@ public struct InAppPurchasePriceScheduleCreateRequest: Codable { } else if let value = try? container.decode(TerritoryInlineCreate.self) { self = .territoryInlineCreate(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchasePriceInlineCreate, TerritoryInlineCreate)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleResponse.swift index c86193fa..cdc2547d 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceScheduleResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct InAppPurchasePriceScheduleResponse: Codable { } else if let value = try? container.decode(InAppPurchasePrice.self) { self = .inAppPurchasePrice(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchaseV2, Territory, InAppPurchasePrice)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricesResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricesResponse.swift index d109c8f6..3fe17569 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct InAppPurchasePricesResponse: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchasePricePoint, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift index 99114a5a..c86fe981 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift @@ -1,12 +1,13 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct InAppPurchaseResponse: Codable { /// InAppPurchase + /// + /// - warning: Deprecated. public var data: InAppPurchase public var included: [App]? public var links: DocumentLinks diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseState.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseState.swift index 465abd75..3558ce45 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseState.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift index 9603c569..266ba5b9 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct InAppPurchaseSubmission: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case inAppPurchaseSubmissions @@ -103,11 +100,10 @@ public struct InAppPurchaseSubmission: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil) { self.type = type self.id = id self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -115,7 +111,6 @@ public struct InAppPurchaseSubmission: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -123,6 +118,5 @@ public struct InAppPurchaseSubmission: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionCreateRequest.swift index 4fed1dd2..e3288a4b 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionResponse.swift index d0692cf5..84ef8ed8 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmissionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseType.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseType.swift index 776d7125..6f8be090 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseType.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift index f7230335..92c12a78 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case inAppPurchases @@ -24,6 +22,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { public var reviewNote: String? public var isFamilySharable: Bool? public var isContentHosting: Bool? + /// - warning: Deprecated. public var isAvailableInAllTerritories: Bool? public init(name: String? = nil, productID: String? = nil, inAppPurchaseType: InAppPurchaseType? = nil, state: InAppPurchaseState? = nil, reviewNote: String? = nil, isFamilySharable: Bool? = nil, isContentHosting: Bool? = nil, isAvailableInAllTerritories: Bool? = nil) { @@ -602,7 +601,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -616,7 +615,7 @@ public struct InAppPurchaseV2: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -625,6 +624,6 @@ public struct InAppPurchaseV2: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2CreateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2CreateRequest.swift index ab8813fe..7559ffaf 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2CreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2CreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -23,6 +21,7 @@ public struct InAppPurchaseV2CreateRequest: Codable { public var inAppPurchaseType: InAppPurchaseType public var reviewNote: String? public var isFamilySharable: Bool? + /// - warning: Deprecated. public var isAvailableInAllTerritories: Bool? public init(name: String, productID: String, inAppPurchaseType: InAppPurchaseType, reviewNote: String? = nil, isFamilySharable: Bool? = nil, isAvailableInAllTerritories: Bool? = nil) { diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift index 597d3ecb..1d442981 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -37,7 +35,10 @@ public struct InAppPurchaseV2Response: Codable { } else if let value = try? container.decode(InAppPurchaseAvailability.self) { self = .inAppPurchaseAvailability(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchaseLocalization, InAppPurchasePricePoint, InAppPurchaseContent, InAppPurchaseAppStoreReviewScreenshot, PromotedPurchase, InAppPurchasePriceSchedule, InAppPurchaseAvailability)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift index a0ca36fe..36560a8a 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -21,6 +19,7 @@ public struct InAppPurchaseV2UpdateRequest: Codable { public var name: String? public var reviewNote: String? public var isFamilySharable: Bool? + /// - warning: Deprecated. public var isAvailableInAllTerritories: Bool? public init(name: String? = nil, reviewNote: String? = nil, isFamilySharable: Bool? = nil, isAvailableInAllTerritories: Bool? = nil) { diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasesResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasesResponse.swift index 27a554ae..988ec425 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasesResponse.swift @@ -1,10 +1,9 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation +@available(*, deprecated, message: "Deprecated") public struct InAppPurchasesResponse: Codable { public var data: [InAppPurchase] public var included: [App]? diff --git a/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift index cf1c7e25..9cb5c719 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasesV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -37,7 +35,10 @@ public struct InAppPurchasesV2Response: Codable { } else if let value = try? container.decode(InAppPurchaseAvailability.self) { self = .inAppPurchaseAvailability(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchaseLocalization, InAppPurchasePricePoint, InAppPurchaseContent, InAppPurchaseAppStoreReviewScreenshot, PromotedPurchase, InAppPurchasePriceSchedule, InAppPurchaseAvailability)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/InternalBetaState.swift b/Sources/OpenAPI/Generated/Entities/InternalBetaState.swift index 1d291eb1..d3b1eab2 100644 --- a/Sources/OpenAPI/Generated/Entities/InternalBetaState.swift +++ b/Sources/OpenAPI/Generated/Entities/InternalBetaState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/KidsAgeBand.swift b/Sources/OpenAPI/Generated/Entities/KidsAgeBand.swift index f92166c5..7181bf79 100644 --- a/Sources/OpenAPI/Generated/Entities/KidsAgeBand.swift +++ b/Sources/OpenAPI/Generated/Entities/KidsAgeBand.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/MetricCategory.swift b/Sources/OpenAPI/Generated/Entities/MetricCategory.swift index c635d807..b77575f3 100644 --- a/Sources/OpenAPI/Generated/Entities/MetricCategory.swift +++ b/Sources/OpenAPI/Generated/Entities/MetricCategory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift b/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift index 25573c41..0f99265b 100644 --- a/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift +++ b/Sources/OpenAPI/Generated/Entities/MetricsInsight.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PagedDocumentLinks.swift b/Sources/OpenAPI/Generated/Entities/PagedDocumentLinks.swift index f55644f3..926954cb 100644 --- a/Sources/OpenAPI/Generated/Entities/PagedDocumentLinks.swift +++ b/Sources/OpenAPI/Generated/Entities/PagedDocumentLinks.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PagingInformation.swift b/Sources/OpenAPI/Generated/Entities/PagingInformation.swift index 7de6cfbc..5d75b0ec 100644 --- a/Sources/OpenAPI/Generated/Entities/PagingInformation.swift +++ b/Sources/OpenAPI/Generated/Entities/PagingInformation.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift b/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift index 2473e956..9717bbf3 100644 --- a/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift +++ b/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct PerfPowerMetric: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case perfPowerMetrics @@ -55,11 +52,10 @@ public struct PerfPowerMetric: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -67,7 +63,6 @@ public struct PerfPowerMetric: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -75,6 +70,5 @@ public struct PerfPowerMetric: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/PhasedReleaseState.swift b/Sources/OpenAPI/Generated/Entities/PhasedReleaseState.swift index 80868992..b2d8fd43 100644 --- a/Sources/OpenAPI/Generated/Entities/PhasedReleaseState.swift +++ b/Sources/OpenAPI/Generated/Entities/PhasedReleaseState.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/Platform.swift b/Sources/OpenAPI/Generated/Entities/Platform.swift index 8a2a6496..3c92100a 100644 --- a/Sources/OpenAPI/Generated/Entities/Platform.swift +++ b/Sources/OpenAPI/Generated/Entities/Platform.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,5 +7,4 @@ public enum Platform: String, Codable, CaseIterable { case ios = "IOS" case macOs = "MAC_OS" case tvOs = "TV_OS" - case visionOs = "VISION_OS" // VisionOS manually added since version 3.0 of Apple's OpenAPI spec fails to include it. Reported in FB13208526 27/9/2023. } diff --git a/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift index 12b200b7..11ebc127 100644 --- a/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift @@ -1,12 +1,10 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct PreReleaseVersionsResponse: Codable { - public var data: [PreReleaseVersion] + public var data: [PrereleaseVersion] public var included: [IncludedItem]? public var links: PagedDocumentLinks public var meta: PagingInformation? @@ -22,7 +20,10 @@ public struct PreReleaseVersionsResponse: Codable { } else if let value = try? container.decode(App.self) { self = .app(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Build, App)." + ) } } @@ -35,7 +36,7 @@ public struct PreReleaseVersionsResponse: Codable { } } - public init(data: [PreReleaseVersion], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + public init(data: [PrereleaseVersion], included: [IncludedItem]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { self.data = data self.included = included self.links = links @@ -44,7 +45,7 @@ public struct PreReleaseVersionsResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode([PreReleaseVersion].self, forKey: "data") + self.data = try values.decode([PrereleaseVersion].self, forKey: "data") self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") diff --git a/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsWithoutIncludesResponse.swift new file mode 100644 index 00000000..9cff5f16 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct PreReleaseVersionsWithoutIncludesResponse: Codable { + public var data: [App] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [App], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([App].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift b/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift index 4f8d8ca3..b5045020 100644 --- a/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift @@ -1,16 +1,14 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation -public struct PreReleaseVersion: Codable, Identifiable { +public struct PrereleaseVersion: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case preReleaseVersions @@ -204,7 +202,7 @@ public struct PreReleaseVersion: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -218,7 +216,7 @@ public struct PreReleaseVersion: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -227,6 +225,6 @@ public struct PreReleaseVersion: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift index 971c5c92..81250109 100644 --- a/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift @@ -1,13 +1,11 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation -public struct PreReleaseVersionResponse: Codable { - /// PreReleaseVersion - public var data: PreReleaseVersion +public struct PrereleaseVersionResponse: Codable { + /// PrereleaseVersion + public var data: PrereleaseVersion public var included: [IncludedItem]? public var links: DocumentLinks @@ -22,7 +20,10 @@ public struct PreReleaseVersionResponse: Codable { } else if let value = try? container.decode(App.self) { self = .app(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Build, App)." + ) } } @@ -35,7 +36,7 @@ public struct PreReleaseVersionResponse: Codable { } } - public init(data: PreReleaseVersion, included: [IncludedItem]? = nil, links: DocumentLinks) { + public init(data: PrereleaseVersion, included: [IncludedItem]? = nil, links: DocumentLinks) { self.data = data self.included = included self.links = links @@ -43,7 +44,7 @@ public struct PreReleaseVersionResponse: Codable { public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.data = try values.decode(PreReleaseVersion.self, forKey: "data") + self.data = try values.decode(PrereleaseVersion.self, forKey: "data") self.included = try values.decodeIfPresent([IncludedItem].self, forKey: "included") self.links = try values.decode(DocumentLinks.self, forKey: "links") } diff --git a/Sources/OpenAPI/Generated/Entities/PrereleaseVersionWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionWithoutIncludesResponse.swift new file mode 100644 index 00000000..d1a3a999 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct PrereleaseVersionWithoutIncludesResponse: Codable { + /// Build + public var data: Build + public var links: DocumentLinks + + public init(data: Build, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Build.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/PreviewType.swift b/Sources/OpenAPI/Generated/Entities/PreviewType.swift index 41c513c3..9cde99e8 100644 --- a/Sources/OpenAPI/Generated/Entities/PreviewType.swift +++ b/Sources/OpenAPI/Generated/Entities/PreviewType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/Profile.swift b/Sources/OpenAPI/Generated/Entities/Profile.swift index 598036d1..6952f124 100644 --- a/Sources/OpenAPI/Generated/Entities/Profile.swift +++ b/Sources/OpenAPI/Generated/Entities/Profile.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct Profile: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case profiles @@ -328,7 +326,7 @@ public struct Profile: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -342,7 +340,7 @@ public struct Profile: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -351,6 +349,6 @@ public struct Profile: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ProfileCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/ProfileCreateRequest.swift index 160fe4c1..fc660641 100644 --- a/Sources/OpenAPI/Generated/Entities/ProfileCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ProfileCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ProfileResponse.swift b/Sources/OpenAPI/Generated/Entities/ProfileResponse.swift index f61baf24..7e511d10 100644 --- a/Sources/OpenAPI/Generated/Entities/ProfileResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ProfileResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct ProfileResponse: Codable { } else if let value = try? container.decode(Certificate.self) { self = .certificate(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (BundleID, Device, Certificate)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ProfilesResponse.swift b/Sources/OpenAPI/Generated/Entities/ProfilesResponse.swift index 881a55c8..613b2619 100644 --- a/Sources/OpenAPI/Generated/Entities/ProfilesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ProfilesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct ProfilesResponse: Codable { } else if let value = try? container.decode(Certificate.self) { self = .certificate(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (BundleID, Device, Certificate)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ProfilesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/ProfilesWithoutIncludesResponse.swift new file mode 100644 index 00000000..4be5e9f7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/ProfilesWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct ProfilesWithoutIncludesResponse: Codable { + public var data: [BundleID] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [BundleID], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([BundleID].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchase.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchase.swift index 958af668..2ea6d947 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchase.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct PromotedPurchase: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case promotedPurchases @@ -289,7 +287,7 @@ public struct PromotedPurchase: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -303,7 +301,7 @@ public struct PromotedPurchase: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -312,6 +310,6 @@ public struct PromotedPurchase: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseCreateRequest.swift index dc3c47dc..fde7b364 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift index b7213352..c8ccd142 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct PromotedPurchaseImage: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case promotedPurchaseImages @@ -160,7 +158,7 @@ public struct PromotedPurchaseImage: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -174,7 +172,7 @@ public struct PromotedPurchaseImage: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -183,6 +181,6 @@ public struct PromotedPurchaseImage: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageCreateRequest.swift index 66acde1c..04407968 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageResponse.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageResponse.swift index fc34a647..6e7fd04a 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageUpdateRequest.swift index c1b27b59..6a4dedaa 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImageUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImagesResponse.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImagesResponse.swift index becb533e..6a941df9 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseResponse.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseResponse.swift index 2724fb88..705175ad 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct PromotedPurchaseResponse: Codable { } else if let value = try? container.decode(PromotedPurchaseImage.self) { self = .promotedPurchaseImage(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchaseV2, Subscription, PromotedPurchaseImage)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseUpdateRequest.swift index 95b1ebb5..280b6b33 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/PromotedPurchasesResponse.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchasesResponse.swift index bea301f6..f09502d3 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchasesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchasesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct PromotedPurchasesResponse: Codable { } else if let value = try? container.decode(PromotedPurchaseImage.self) { self = .promotedPurchaseImage(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (InAppPurchaseV2, Subscription, PromotedPurchaseImage)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift b/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift index 66698678..7ed13880 100644 --- a/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift +++ b/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift @@ -1,24 +1,22 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct ResourceLinks: Codable { - public var this: String + public var this: String? - public init(this: String) { + public init(this: String? = nil) { self.this = this } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) - self.this = try values.decode(String.self, forKey: "self") + self.this = try values.decodeIfPresent(String.self, forKey: "self") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) - try values.encode(this, forKey: "self") + try values.encodeIfPresent(this, forKey: "self") } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift index 6c32b988..c0b5705c 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct ReviewSubmission: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case reviewSubmissions @@ -440,7 +438,7 @@ public struct ReviewSubmission: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -454,7 +452,7 @@ public struct ReviewSubmission: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -463,6 +461,6 @@ public struct ReviewSubmission: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionCreateRequest.swift index 6a66f750..a7ff589f 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift index 54327432..ce40c4b7 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct ReviewSubmissionItem: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case reviewSubmissionItems @@ -426,7 +424,7 @@ public struct ReviewSubmissionItem: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -440,7 +438,7 @@ public struct ReviewSubmissionItem: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -449,6 +447,6 @@ public struct ReviewSubmissionItem: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift index 95a436c6..e8688ea0 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift index 07759212..729a48e0 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -31,7 +29,10 @@ public struct ReviewSubmissionItemResponse: Codable { } else if let value = try? container.decode(AppEvent.self) { self = .appEvent(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppCustomProductPageVersion, AppStoreVersionExperiment, AppStoreVersionExperimentV2, AppEvent)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemUpdateRequest.swift index ef94497c..02d087e7 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift index 4cbdbe4c..7f6e7f58 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItemsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -31,7 +29,10 @@ public struct ReviewSubmissionItemsResponse: Codable { } else if let value = try? container.decode(AppEvent.self) { self = .appEvent(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (AppStoreVersion, AppCustomProductPageVersion, AppStoreVersionExperiment, AppStoreVersionExperimentV2, AppEvent)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift index ce83a0e2..91dae3c0 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct ReviewSubmissionResponse: Codable { } else if let value = try? container.decode(Actor.self) { self = .actor(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, ReviewSubmissionItem, AppStoreVersion, Actor)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionUpdateRequest.swift index 29d0d7de..04dfcc0b 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift index 4904ed9e..652ca3b1 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct ReviewSubmissionsResponse: Codable { } else if let value = try? container.decode(Actor.self) { self = .actor(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (App, ReviewSubmissionItem, AppStoreVersion, Actor)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift index b15f0964..913eb502 100644 --- a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct RoutingAppCoverage: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case routingAppCoverages @@ -138,7 +136,7 @@ public struct RoutingAppCoverage: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -152,7 +150,7 @@ public struct RoutingAppCoverage: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -161,6 +159,6 @@ public struct RoutingAppCoverage: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageCreateRequest.swift index a69540e9..47c25d83 100644 --- a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageResponse.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageResponse.swift index 53b2ad00..6ebe640b 100644 --- a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageUpdateRequest.swift index cee559d0..c24481e1 100644 --- a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageWithoutIncludesResponse.swift new file mode 100644 index 00000000..e52810e8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageWithoutIncludesResponse.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct RoutingAppCoverageWithoutIncludesResponse: Codable { + /// AppStoreVersion + public var data: AppStoreVersion + public var links: DocumentLinks + + public init(data: AppStoreVersion, links: DocumentLinks) { + self.data = data + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(AppStoreVersion.self, forKey: "data") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2.swift b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2.swift index 0d6fa2e9..3633833f 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct SandboxTesterV2: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case sandboxTesters @@ -65,7 +63,7 @@ public struct SandboxTesterV2: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -77,7 +75,7 @@ public struct SandboxTesterV2: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -85,6 +83,6 @@ public struct SandboxTesterV2: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2Response.swift b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2Response.swift index 651870d3..d26a90c5 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2UpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2UpdateRequest.swift index 92ad28ab..856296de 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2UpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2UpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift index d7065e38..4ee5091e 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct SandboxTestersClearPurchaseHistoryRequestV2: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case sandboxTestersClearPurchaseHistoryRequest } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest.swift index 9b123d84..2e98780e 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2Response.swift b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2Response.swift index f83c9377..2557f797 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SandboxTestersV2Response.swift b/Sources/OpenAPI/Generated/Entities/SandboxTestersV2Response.swift index 5d938f22..75f56ca7 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTestersV2Response.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTestersV2Response.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift b/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift index 9c885df5..979bbf27 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct ScmGitReference: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case scmGitReferences @@ -134,7 +132,7 @@ public struct ScmGitReference: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -148,7 +146,7 @@ public struct ScmGitReference: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -157,6 +155,6 @@ public struct ScmGitReference: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ScmGitReferenceResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmGitReferenceResponse.swift index 2e725e49..eca2f45a 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmGitReferenceResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmGitReferenceResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmGitReferencesResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmGitReferencesResponse.swift index 5f28db91..f29278c8 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmGitReferencesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmGitReferencesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmProvider.swift b/Sources/OpenAPI/Generated/Entities/ScmProvider.swift index 62052e54..85de25dc 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmProvider.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmProvider.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct ScmProvider: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case scmProviders @@ -37,7 +35,7 @@ public struct ScmProvider: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -49,7 +47,7 @@ public struct ScmProvider: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -57,6 +55,6 @@ public struct ScmProvider: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ScmProviderResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmProviderResponse.swift index 0e4f4a58..21309b99 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmProviderResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmProviderResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmProviderType.swift b/Sources/OpenAPI/Generated/Entities/ScmProviderType.swift index 90abc035..9e2817eb 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmProviderType.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmProviderType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmProvidersResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmProvidersResponse.swift index 7ab698e0..7ef7df4a 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmProvidersResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmProvidersResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift b/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift index 73d4c9d9..85834fe8 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct ScmPullRequest: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case scmPullRequests @@ -162,7 +160,7 @@ public struct ScmPullRequest: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -176,7 +174,7 @@ public struct ScmPullRequest: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -185,6 +183,6 @@ public struct ScmPullRequest: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ScmPullRequestResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmPullRequestResponse.swift index b2146769..672dbdc9 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmPullRequestResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmPullRequestResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmPullRequestsResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmPullRequestsResponse.swift index c0159730..1e8cfe95 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmPullRequestsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmPullRequestsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/ScmRepositoriesResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmRepositoriesResponse.swift index 5330fef7..a64a574d 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmRepositoriesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmRepositoriesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct ScmRepositoriesResponse: Codable { } else if let value = try? container.decode(ScmGitReference.self) { self = .scmGitReference(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (ScmProvider, ScmGitReference)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ScmRepository.swift b/Sources/OpenAPI/Generated/Entities/ScmRepository.swift index ba63cf3d..34b7d2f3 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmRepository.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmRepository.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct ScmRepository: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case scmRepositories @@ -212,7 +210,7 @@ public struct ScmRepository: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -226,7 +224,7 @@ public struct ScmRepository: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -235,6 +233,6 @@ public struct ScmRepository: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/ScmRepositoryResponse.swift b/Sources/OpenAPI/Generated/Entities/ScmRepositoryResponse.swift index d01d8f9c..2dc9aef1 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmRepositoryResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmRepositoryResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct ScmRepositoryResponse: Codable { } else if let value = try? container.decode(ScmGitReference.self) { self = .scmGitReference(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (ScmProvider, ScmGitReference)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/ScreenshotDisplayType.swift b/Sources/OpenAPI/Generated/Entities/ScreenshotDisplayType.swift index 785c619d..aad50281 100644 --- a/Sources/OpenAPI/Generated/Entities/ScreenshotDisplayType.swift +++ b/Sources/OpenAPI/Generated/Entities/ScreenshotDisplayType.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/Subscription.swift b/Sources/OpenAPI/Generated/Entities/Subscription.swift index d044b893..0732dce7 100644 --- a/Sources/OpenAPI/Generated/Entities/Subscription.swift +++ b/Sources/OpenAPI/Generated/Entities/Subscription.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct Subscription: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptions @@ -24,6 +22,7 @@ public struct Subscription: Codable, Identifiable { public var subscriptionPeriod: SubscriptionPeriod? public var reviewNote: String? public var groupLevel: Int? + /// - warning: Deprecated. public var isAvailableInAllTerritories: Bool? public enum State: String, Codable, CaseIterable { @@ -784,7 +783,7 @@ public struct Subscription: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -798,7 +797,7 @@ public struct Subscription: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -807,6 +806,6 @@ public struct Subscription: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshot.swift index e18f66ba..76697f5a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionAppStoreReviewScreenshots @@ -150,7 +148,7 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct SubscriptionAppStoreReviewScreenshot: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotCreateRequest.swift index b2c0f977..9d119b3f 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotResponse.swift index e3d456f1..90673d71 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift index 8ec1c820..8bee9d7c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshotUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift index e0df7588..5ac52f3f 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionAvailability: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionAvailabilities @@ -200,7 +198,7 @@ public struct SubscriptionAvailability: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct SubscriptionAvailability: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct SubscriptionAvailability: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityCreateRequest.swift index 3495e1e1..0537c7a4 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityResponse.swift index 0a965946..84363013 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailabilityResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionAvailabilityResponse: Codable { } else if let value = try? container.decode(Territory.self) { self = .territory(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, Territory)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift index d4f31a83..9e7c0a04 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -24,6 +22,7 @@ public struct SubscriptionCreateRequest: Codable { public var subscriptionPeriod: SubscriptionPeriod? public var reviewNote: String? public var groupLevel: Int? + /// - warning: Deprecated. public var isAvailableInAllTerritories: Bool? public enum SubscriptionPeriod: String, Codable, CaseIterable { diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionCustomerEligibility.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionCustomerEligibility.swift index 246d4eee..3db18ea5 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionCustomerEligibility.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionCustomerEligibility.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift index 35958c50..0f7918b9 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,7 @@ public struct SubscriptionGracePeriod: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionGracePeriods @@ -50,7 +48,7 @@ public struct SubscriptionGracePeriod: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -62,7 +60,7 @@ public struct SubscriptionGracePeriod: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -70,6 +68,6 @@ public struct SubscriptionGracePeriod: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodDuration.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodDuration.swift index 0d0c4828..29feb480 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodDuration.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodDuration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodResponse.swift index 04c205a4..b646005a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodUpdateRequest.swift index 6108dfa0..153121e4 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriodUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift index 11c780e9..ab8878c1 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionGroup: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionGroups @@ -204,7 +202,7 @@ public struct SubscriptionGroup: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -218,7 +216,7 @@ public struct SubscriptionGroup: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -227,6 +225,6 @@ public struct SubscriptionGroup: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupCreateRequest.swift index 2d327302..44c8823d 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift index c46cd530..487cdae2 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionGroupLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionGroupLocalizations @@ -141,7 +139,7 @@ public struct SubscriptionGroupLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -155,7 +153,7 @@ public struct SubscriptionGroupLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -164,6 +162,6 @@ public struct SubscriptionGroupLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationCreateRequest.swift index 6e87ea43..6de9d299 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationResponse.swift index e71ca5e2..10443893 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationUpdateRequest.swift index 392eb821..69a3f200 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationsResponse.swift index 5cc728b4..98d42d55 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupResponse.swift index 707003ab..e43563d2 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionGroupResponse: Codable { } else if let value = try? container.decode(SubscriptionGroupLocalization.self) { self = .subscriptionGroupLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, SubscriptionGroupLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift index 08dcf997..5a5a8504 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct SubscriptionGroupSubmission: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case subscriptionGroupSubmissions } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionCreateRequest.swift index 725c46a9..7e46f35a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionResponse.swift index 3b11c1c4..96d54511 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmissionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupUpdateRequest.swift index 304f0548..7f430235 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupsResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupsResponse.swift index 5258ec8b..75dbaf88 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionGroupsResponse: Codable { } else if let value = try? container.decode(SubscriptionGroupLocalization.self) { self = .subscriptionGroupLocalization(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, SubscriptionGroupLocalization)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift index 65c84d09..bf83afba 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionIntroductoryOffer: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionIntroductoryOffers @@ -286,7 +284,7 @@ public struct SubscriptionIntroductoryOffer: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -300,7 +298,7 @@ public struct SubscriptionIntroductoryOffer: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -309,6 +307,6 @@ public struct SubscriptionIntroductoryOffer: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferCreateRequest.swift index 6a217869..bb15cbd3 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferInlineCreate.swift index fd0948af..91ae28e7 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferResponse.swift index 9b6e9fd4..7d2922f5 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct SubscriptionIntroductoryOfferResponse: Codable { } else if let value = try? container.decode(SubscriptionPricePoint.self) { self = .subscriptionPricePoint(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, Territory, SubscriptionPricePoint)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferUpdateRequest.swift index b923beb1..3c5bb596 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOfferUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesRequest.swift index 1b0ea15c..bff5b6a9 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesResponse.swift index 701430c3..d651b040 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersResponse.swift index c7635b06..d420c6a4 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffersResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,7 +23,10 @@ public struct SubscriptionIntroductoryOffersResponse: Codable { } else if let value = try? container.decode(SubscriptionPricePoint.self) { self = .subscriptionPricePoint(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, Territory, SubscriptionPricePoint)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift index 291ec254..32943a58 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionLocalization: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionLocalizations @@ -141,7 +139,7 @@ public struct SubscriptionLocalization: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -155,7 +153,7 @@ public struct SubscriptionLocalization: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -164,6 +162,6 @@ public struct SubscriptionLocalization: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationCreateRequest.swift index 4810dec9..13ae3b7c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationResponse.swift index 2290f1e6..19c9ecac 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationUpdateRequest.swift index 0491f3aa..32fa3996 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationsResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationsResponse.swift index 6cb25409..12bb9d23 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalizationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift index dcc59309..b5be6284 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionOfferCode: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionOfferCodes @@ -384,7 +382,7 @@ public struct SubscriptionOfferCode: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -398,7 +396,7 @@ public struct SubscriptionOfferCode: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -407,6 +405,6 @@ public struct SubscriptionOfferCode: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCreateRequest.swift index 81188784..841fbf96 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift index 2e23544f..5748d497 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionOfferCodeCustomCode: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionOfferCodeCustomCodes @@ -138,7 +136,7 @@ public struct SubscriptionOfferCodeCustomCode: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -152,7 +150,7 @@ public struct SubscriptionOfferCodeCustomCode: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -161,6 +159,6 @@ public struct SubscriptionOfferCodeCustomCode: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeCreateRequest.swift index 9ab2606d..47958164 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeResponse.swift index 523b84e2..50b27134 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeUpdateRequest.swift index f43241b4..8935f857 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodeUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodesResponse.swift index bb3b3af0..ce2c456d 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCodesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift index ac209927..2b1269ca 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionOfferCodeOneTimeUseCodes @@ -134,7 +132,7 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -148,7 +146,7 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -157,6 +155,6 @@ public struct SubscriptionOfferCodeOneTimeUseCode: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift index c6d9b0ac..ec70da9f 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeResponse.swift index ef83835d..8c067d08 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift index dbb67224..c44ea2cd 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift index d963f733..d04f5db4 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift @@ -1,36 +1,30 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation public struct SubscriptionOfferCodeOneTimeUseCodeValue: Codable, Identifiable { public var type: `Type` public var id: String - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case subscriptionOfferCodeOneTimeUseCodeValues } - public init(type: `Type`, id: String, links: ResourceLinks) { + public init(type: `Type`, id: String) { self.type = type self.id = id - self.links = links } public init(from decoder: Decoder) throws { let values = try decoder.container(keyedBy: StringCodingKey.self) self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { var values = encoder.container(keyedBy: StringCodingKey.self) try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodesResponse.swift index 42112ccb..5b837772 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift index 74a70b3f..83c0d401 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct SubscriptionOfferCodePrice: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case subscriptionOfferCodePrices @@ -177,11 +174,10 @@ public struct SubscriptionOfferCodePrice: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil) { self.type = type self.id = id self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -189,7 +185,6 @@ public struct SubscriptionOfferCodePrice: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -197,6 +192,5 @@ public struct SubscriptionOfferCodePrice: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePriceInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePriceInlineCreate.swift index c4bc9c89..3068020f 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePriceInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePriceInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePricesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePricesResponse.swift index 8cf70d50..a331b2b5 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePricesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePricesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionOfferCodePricesResponse: Codable { } else if let value = try? container.decode(SubscriptionPricePoint.self) { self = .subscriptionPricePoint(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Territory, SubscriptionPricePoint)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeResponse.swift index 10100c78..779c4027 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct SubscriptionOfferCodeResponse: Codable { } else if let value = try? container.decode(SubscriptionOfferCodePrice.self) { self = .subscriptionOfferCodePrice(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, SubscriptionOfferCodeOneTimeUseCode, SubscriptionOfferCodeCustomCode, SubscriptionOfferCodePrice)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeUpdateRequest.swift index 3e1b1bf3..30520272 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodesResponse.swift index 4218c5e1..7b0fef92 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -28,7 +26,10 @@ public struct SubscriptionOfferCodesResponse: Codable { } else if let value = try? container.decode(SubscriptionOfferCodePrice.self) { self = .subscriptionOfferCodePrice(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, SubscriptionOfferCodeOneTimeUseCode, SubscriptionOfferCodeCustomCode, SubscriptionOfferCodePrice)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferDuration.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferDuration.swift index e25ee023..1a1970ee 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferDuration.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferDuration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferEligibility.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferEligibility.swift index 2d7abb7d..f81c839f 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferEligibility.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferEligibility.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferMode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferMode.swift index 62f672fd..b8f239de 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferMode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferMode.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift index 8be759f7..ac172109 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionPrice: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionPrices @@ -200,7 +198,7 @@ public struct SubscriptionPrice: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -214,7 +212,7 @@ public struct SubscriptionPrice: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -223,6 +221,6 @@ public struct SubscriptionPrice: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPriceCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPriceCreateRequest.swift index c6bf8266..573dc0a5 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPriceCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPriceCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPriceInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPriceInlineCreate.swift index b60e42ae..1249a07c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPriceInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPriceInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift index 2021409e..6337a8c4 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionPricePoint: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionPricePoints @@ -130,7 +128,7 @@ public struct SubscriptionPricePoint: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -144,7 +142,7 @@ public struct SubscriptionPricePoint: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -153,6 +151,6 @@ public struct SubscriptionPricePoint: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointInlineCreate.swift index f293e1fd..1311978f 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointResponse.swift index a7a23e37..bb7c424c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointsResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointsResponse.swift index 91da2547..ec78f872 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePointsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPriceResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPriceResponse.swift index 47ac8ec0..ae834ec6 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPriceResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPriceResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionPriceResponse: Codable { } else if let value = try? container.decode(SubscriptionPricePoint.self) { self = .subscriptionPricePoint(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Territory, SubscriptionPricePoint)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesRequest.swift index 115b8d37..3adee719 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesResponse.swift index 4c63c4a0..67af3383 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricesLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPricesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricesResponse.swift index a5f19d01..507615d8 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionPricesResponse: Codable { } else if let value = try? container.decode(SubscriptionPricePoint.self) { self = .subscriptionPricePoint(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Territory, SubscriptionPricePoint)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift index d5f754b3..55da04fd 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct SubscriptionPromotionalOffer: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case subscriptionPromotionalOffers @@ -216,7 +214,7 @@ public struct SubscriptionPromotionalOffer: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -230,7 +228,7 @@ public struct SubscriptionPromotionalOffer: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -239,6 +237,6 @@ public struct SubscriptionPromotionalOffer: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferCreateRequest.swift index 02e71d6f..51bdf08d 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferInlineCreate.swift index b209983f..bc720987 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift index 1cb067e9..3e8a572a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct SubscriptionPromotionalOfferPrice: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case subscriptionPromotionalOfferPrices @@ -177,11 +174,10 @@ public struct SubscriptionPromotionalOfferPrice: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil) { self.type = type self.id = id self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -189,7 +185,6 @@ public struct SubscriptionPromotionalOfferPrice: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -197,6 +192,5 @@ public struct SubscriptionPromotionalOfferPrice: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPriceInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPriceInlineCreate.swift index a0806ff4..3150cf90 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPriceInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPriceInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPricesResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPricesResponse.swift index e4d34317..59f016cf 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPricesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPricesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionPromotionalOfferPricesResponse: Codable { } else if let value = try? container.decode(SubscriptionPricePoint.self) { self = .subscriptionPricePoint(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Territory, SubscriptionPricePoint)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferResponse.swift index 7cbe3787..ebdb9de9 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionPromotionalOfferResponse: Codable { } else if let value = try? container.decode(SubscriptionPromotionalOfferPrice.self) { self = .subscriptionPromotionalOfferPrice(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, SubscriptionPromotionalOfferPrice)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferUpdateRequest.swift index 4f53ac98..ed72073e 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffersResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffersResponse.swift index c60060e7..ed1a15ab 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffersResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffersResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -22,7 +20,10 @@ public struct SubscriptionPromotionalOffersResponse: Codable { } else if let value = try? container.decode(SubscriptionPromotionalOfferPrice.self) { self = .subscriptionPromotionalOfferPrice(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (Subscription, SubscriptionPromotionalOfferPrice)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift index c7c4d9f6..c58d0e7c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -43,7 +41,10 @@ public struct SubscriptionResponse: Codable { } else if let value = try? container.decode(SubscriptionAvailability.self) { self = .subscriptionAvailability(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (SubscriptionLocalization, SubscriptionAppStoreReviewScreenshot, SubscriptionGroup, SubscriptionIntroductoryOffer, SubscriptionPromotionalOffer, SubscriptionOfferCode, SubscriptionPrice, PromotedPurchase, SubscriptionAvailability)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionStatusURLVersion.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionStatusURLVersion.swift index d564153e..5fdaf90a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionStatusURLVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionStatusURLVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift index 2658f18b..e058f5ef 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct SubscriptionSubmission: Codable, Identifiable { public var type: `Type` public var id: String public var relationships: Relationships? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case subscriptionSubmissions @@ -103,11 +100,10 @@ public struct SubscriptionSubmission: Codable, Identifiable { } } - public init(type: `Type`, id: String, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, relationships: Relationships? = nil) { self.type = type self.id = id self.relationships = relationships - self.links = links } public init(from decoder: Decoder) throws { @@ -115,7 +111,6 @@ public struct SubscriptionSubmission: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -123,6 +118,5 @@ public struct SubscriptionSubmission: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionCreateRequest.swift index b4539402..5edbac69 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionResponse.swift index 8d59d104..2ffcd228 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmissionResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift index 11d31a1d..85483d9d 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -25,6 +23,7 @@ public struct SubscriptionUpdateRequest: Codable { public var subscriptionPeriod: SubscriptionPeriod? public var reviewNote: String? public var groupLevel: Int? + /// - warning: Deprecated. public var isAvailableInAllTerritories: Bool? public enum SubscriptionPeriod: String, Codable, CaseIterable { @@ -262,7 +261,10 @@ public struct SubscriptionUpdateRequest: Codable { } else if let value = try? container.decode(SubscriptionIntroductoryOfferInlineCreate.self) { self = .subscriptionIntroductoryOfferInlineCreate(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (SubscriptionPromotionalOfferInlineCreate, SubscriptionPriceInlineCreate, SubscriptionIntroductoryOfferInlineCreate)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift index aaecac25..ce6dc0e7 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -43,7 +41,10 @@ public struct SubscriptionsResponse: Codable { } else if let value = try? container.decode(SubscriptionAvailability.self) { self = .subscriptionAvailability(value) } else { - throw DecodingError.dataCorruptedError(in: container, debugDescription: "Failed to intialize `oneOf`") + throw DecodingError.dataCorruptedError( + in: container, + debugDescription: "Data could not be decoded as any of the expected types (SubscriptionLocalization, SubscriptionAppStoreReviewScreenshot, SubscriptionGroup, SubscriptionIntroductoryOffer, SubscriptionPromotionalOffer, SubscriptionOfferCode, SubscriptionPrice, PromotedPurchase, SubscriptionAvailability)." + ) } } diff --git a/Sources/OpenAPI/Generated/Entities/TerritoriesResponse.swift b/Sources/OpenAPI/Generated/Entities/TerritoriesResponse.swift index 7909159c..82c3231d 100644 --- a/Sources/OpenAPI/Generated/Entities/TerritoriesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/TerritoriesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift new file mode 100644 index 00000000..7ae27a3e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct TerritoriesWithoutIncludesResponse: Codable { + public var data: [EndUserLicenseAgreement] + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [EndUserLicenseAgreement], links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([EndUserLicenseAgreement].self, forKey: "data") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/Territory.swift b/Sources/OpenAPI/Generated/Entities/Territory.swift index 7fdabbfa..2e99e82c 100644 --- a/Sources/OpenAPI/Generated/Entities/Territory.swift +++ b/Sources/OpenAPI/Generated/Entities/Territory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -9,7 +7,6 @@ public struct Territory: Codable, Identifiable { public var type: `Type` public var id: String public var attributes: Attributes? - public var links: ResourceLinks public enum `Type`: String, Codable, CaseIterable { case territories @@ -33,11 +30,10 @@ public struct Territory: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil) { self.type = type self.id = id self.attributes = attributes - self.links = links } public init(from decoder: Decoder) throws { @@ -45,7 +41,6 @@ public struct Territory: Codable, Identifiable { self.type = try values.decode(`Type`.self, forKey: "type") self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") - self.links = try values.decode(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -53,6 +48,5 @@ public struct Territory: Codable, Identifiable { try values.encode(type, forKey: "type") try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") - try values.encode(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilitiesResponse.swift b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilitiesResponse.swift new file mode 100644 index 00000000..c237b9ca --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilitiesResponse.swift @@ -0,0 +1,34 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct TerritoryAvailabilitiesResponse: Codable { + public var data: [TerritoryAvailability] + public var included: [Territory]? + public var links: PagedDocumentLinks + public var meta: PagingInformation? + + public init(data: [TerritoryAvailability], included: [Territory]? = nil, links: PagedDocumentLinks, meta: PagingInformation? = nil) { + self.data = data + self.included = included + self.links = links + self.meta = meta + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode([TerritoryAvailability].self, forKey: "data") + self.included = try values.decodeIfPresent([Territory].self, forKey: "included") + self.links = try values.decode(PagedDocumentLinks.self, forKey: "links") + self.meta = try values.decodeIfPresent(PagingInformation.self, forKey: "meta") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + try values.encodeIfPresent(meta, forKey: "meta") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryAvailability.swift b/Sources/OpenAPI/Generated/Entities/TerritoryAvailability.swift new file mode 100644 index 00000000..7577be72 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailability.swift @@ -0,0 +1,200 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct TerritoryAvailability: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + public var relationships: Relationships? + public var links: ResourceLinks? + + public enum `Type`: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public struct Attributes: Codable { + public var isAvailable: Bool? + public var releaseDate: String? + public var isPreOrderEnabled: Bool? + public var preOrderPublishDate: String? + public var contentStatuses: [ContentStatus]? + + public enum ContentStatus: String, Codable, CaseIterable { + case available = "AVAILABLE" + case availableForPreorderOnDate = "AVAILABLE_FOR_PREORDER_ON_DATE" + case processingToNotAvailable = "PROCESSING_TO_NOT_AVAILABLE" + case processingToAvailable = "PROCESSING_TO_AVAILABLE" + case processingToPreOrder = "PROCESSING_TO_PRE_ORDER" + case availableForSaleUnreleasedApp = "AVAILABLE_FOR_SALE_UNRELEASED_APP" + case preorderOnUnreleasedApp = "PREORDER_ON_UNRELEASED_APP" + case availableForPreorder = "AVAILABLE_FOR_PREORDER" + case missingRating = "MISSING_RATING" + case cannotSellRestrictedRating = "CANNOT_SELL_RESTRICTED_RATING" + case brazilRequiredTaxID = "BRAZIL_REQUIRED_TAX_ID" + case missingGrn = "MISSING_GRN" + case unverifiedGrn = "UNVERIFIED_GRN" + case cannotSellSeventeenPlusApps = "CANNOT_SELL_SEVENTEEN_PLUS_APPS" + case cannotSellSexuallyExplicit = "CANNOT_SELL_SEXUALLY_EXPLICIT" + case cannotSellNonIosGames = "CANNOT_SELL_NON_IOS_GAMES" + case cannotSellSeventeenPlusGames = "CANNOT_SELL_SEVENTEEN_PLUS_GAMES" + case cannotSellFrequentIntenseGambling = "CANNOT_SELL_FREQUENT_INTENSE_GAMBLING" + case cannotSellCasino = "CANNOT_SELL_CASINO" + case cannotSellCasinoWithoutGrac = "CANNOT_SELL_CASINO_WITHOUT_GRAC" + case cannotSellCasinoWithoutAgeVerification = "CANNOT_SELL_CASINO_WITHOUT_AGE_VERIFICATION" + case cannotSellFrequentIntenseAlcoholTobaccoDrugs = "CANNOT_SELL_FREQUENT_INTENSE_ALCOHOL_TOBACCO_DRUGS" + case cannotSellFrequentIntenseViolence = "CANNOT_SELL_FREQUENT_INTENSE_VIOLENCE" + case cannotSellFrequentIntenseSexualContentNudity = "CANNOT_SELL_FREQUENT_INTENSE_SEXUAL_CONTENT_NUDITY" + case cannotSellInfrequentMildAlcoholTobaccoDrugs = "CANNOT_SELL_INFREQUENT_MILD_ALCOHOL_TOBACCO_DRUGS" + case cannotSellInfrequentMildSexualContentNudity = "CANNOT_SELL_INFREQUENT_MILD_SEXUAL_CONTENT_NUDITY" + case cannotSellAdultOnly = "CANNOT_SELL_ADULT_ONLY" + case cannotSellFrequentIntense = "CANNOT_SELL_FREQUENT_INTENSE" + case cannotSellFrequentIntenseWithoutGrac = "CANNOT_SELL_FREQUENT_INTENSE_WITHOUT_GRAC" + case cannotSellGamblingContests = "CANNOT_SELL_GAMBLING_CONTESTS" + case cannotSellGambling = "CANNOT_SELL_GAMBLING" + case cannotSellContests = "CANNOT_SELL_CONTESTS" + case cannotSell = "CANNOT_SELL" + } + + public init(isAvailable: Bool? = nil, releaseDate: String? = nil, isPreOrderEnabled: Bool? = nil, preOrderPublishDate: String? = nil, contentStatuses: [ContentStatus]? = nil) { + self.isAvailable = isAvailable + self.releaseDate = releaseDate + self.isPreOrderEnabled = isPreOrderEnabled + self.preOrderPublishDate = preOrderPublishDate + self.contentStatuses = contentStatuses + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isAvailable = try values.decodeIfPresent(Bool.self, forKey: "available") + self.releaseDate = try values.decodeIfPresent(String.self, forKey: "releaseDate") + self.isPreOrderEnabled = try values.decodeIfPresent(Bool.self, forKey: "preOrderEnabled") + self.preOrderPublishDate = try values.decodeIfPresent(String.self, forKey: "preOrderPublishDate") + self.contentStatuses = try values.decodeIfPresent([ContentStatus].self, forKey: "contentStatuses") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isAvailable, forKey: "available") + try values.encodeIfPresent(releaseDate, forKey: "releaseDate") + try values.encodeIfPresent(isPreOrderEnabled, forKey: "preOrderEnabled") + try values.encodeIfPresent(preOrderPublishDate, forKey: "preOrderPublishDate") + try values.encodeIfPresent(contentStatuses, forKey: "contentStatuses") + } + } + + public struct Relationships: Codable { + public var territory: Territory? + + public struct Territory: Codable { + public var links: Links? + public var data: Data? + + public struct Links: Codable { + public var this: String? + public var related: String? + + public init(this: String? = nil, related: String? = nil) { + self.this = this + self.related = related + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.this = try values.decodeIfPresent(String.self, forKey: "self") + self.related = try values.decodeIfPresent(String.self, forKey: "related") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(this, forKey: "self") + try values.encodeIfPresent(related, forKey: "related") + } + } + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + + public enum `Type`: String, Codable, CaseIterable { + case territories + } + + public init(type: `Type`, id: String) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + } + } + + public init(links: Links? = nil, data: Data? = nil) { + self.links = links + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.links = try values.decodeIfPresent(Links.self, forKey: "links") + self.data = try values.decodeIfPresent(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(links, forKey: "links") + try values.encodeIfPresent(data, forKey: "data") + } + } + + public init(territory: Territory? = nil) { + self.territory = territory + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.territory = try values.decodeIfPresent(Territory.self, forKey: "territory") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(territory, forKey: "territory") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { + self.type = type + self.id = id + self.attributes = attributes + self.relationships = relationships + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + try values.encodeIfPresent(relationships, forKey: "relationships") + try values.encodeIfPresent(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityInlineCreate.swift new file mode 100644 index 00000000..ff598c29 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityInlineCreate.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct TerritoryAvailabilityInlineCreate: Codable, Identifiable { + public var type: `Type` + public var id: String? + + public enum `Type`: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public init(type: `Type`, id: String? = nil) { + self.type = type + self.id = id + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decodeIfPresent(String.self, forKey: "id") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encodeIfPresent(id, forKey: "id") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityResponse.swift b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityResponse.swift new file mode 100644 index 00000000..1c94f947 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityResponse.swift @@ -0,0 +1,31 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct TerritoryAvailabilityResponse: Codable { + /// TerritoryAvailability + public var data: TerritoryAvailability + public var included: [Territory]? + public var links: DocumentLinks + + public init(data: TerritoryAvailability, included: [Territory]? = nil, links: DocumentLinks) { + self.data = data + self.included = included + self.links = links + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(TerritoryAvailability.self, forKey: "data") + self.included = try values.decodeIfPresent([Territory].self, forKey: "included") + self.links = try values.decode(DocumentLinks.self, forKey: "links") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + try values.encodeIfPresent(included, forKey: "included") + try values.encode(links, forKey: "links") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityUpdateRequest.swift new file mode 100644 index 00000000..b9cf76bf --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityUpdateRequest.swift @@ -0,0 +1,78 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation + +public struct TerritoryAvailabilityUpdateRequest: Codable { + public var data: Data + + public struct Data: Codable, Identifiable { + public var type: `Type` + public var id: String + public var attributes: Attributes? + + public enum `Type`: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public struct Attributes: Codable { + public var isAvailable: Bool? + public var releaseDate: String? + public var isPreOrderEnabled: Bool? + + public init(isAvailable: Bool? = nil, releaseDate: String? = nil, isPreOrderEnabled: Bool? = nil) { + self.isAvailable = isAvailable + self.releaseDate = releaseDate + self.isPreOrderEnabled = isPreOrderEnabled + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.isAvailable = try values.decodeIfPresent(Bool.self, forKey: "available") + self.releaseDate = try values.decodeIfPresent(String.self, forKey: "releaseDate") + self.isPreOrderEnabled = try values.decodeIfPresent(Bool.self, forKey: "preOrderEnabled") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encodeIfPresent(isAvailable, forKey: "available") + try values.encodeIfPresent(releaseDate, forKey: "releaseDate") + try values.encodeIfPresent(isPreOrderEnabled, forKey: "preOrderEnabled") + } + } + + public init(type: `Type`, id: String, attributes: Attributes? = nil) { + self.type = type + self.id = id + self.attributes = attributes + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.type = try values.decode(`Type`.self, forKey: "type") + self.id = try values.decode(String.self, forKey: "id") + self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(type, forKey: "type") + try values.encode(id, forKey: "id") + try values.encodeIfPresent(attributes, forKey: "attributes") + } + } + + public init(data: Data) { + self.data = data + } + + public init(from decoder: Decoder) throws { + let values = try decoder.container(keyedBy: StringCodingKey.self) + self.data = try values.decode(Data.self, forKey: "data") + } + + public func encode(to encoder: Encoder) throws { + var values = encoder.container(keyedBy: StringCodingKey.self) + try values.encode(data, forKey: "data") + } +} diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryCode.swift b/Sources/OpenAPI/Generated/Entities/TerritoryCode.swift index 4a5f41c9..3c7aa00b 100644 --- a/Sources/OpenAPI/Generated/Entities/TerritoryCode.swift +++ b/Sources/OpenAPI/Generated/Entities/TerritoryCode.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryInlineCreate.swift b/Sources/OpenAPI/Generated/Entities/TerritoryInlineCreate.swift index 401cc7f0..449a8b81 100644 --- a/Sources/OpenAPI/Generated/Entities/TerritoryInlineCreate.swift +++ b/Sources/OpenAPI/Generated/Entities/TerritoryInlineCreate.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/TerritoryResponse.swift b/Sources/OpenAPI/Generated/Entities/TerritoryResponse.swift index c445eb93..4e97fe8b 100644 --- a/Sources/OpenAPI/Generated/Entities/TerritoryResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/TerritoryResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UploadOperation.swift b/Sources/OpenAPI/Generated/Entities/UploadOperation.swift index fd34929a..8ed9ed6c 100644 --- a/Sources/OpenAPI/Generated/Entities/UploadOperation.swift +++ b/Sources/OpenAPI/Generated/Entities/UploadOperation.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/User.swift b/Sources/OpenAPI/Generated/Entities/User.swift index cc5393fb..bfb6747c 100644 --- a/Sources/OpenAPI/Generated/Entities/User.swift +++ b/Sources/OpenAPI/Generated/Entities/User.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct User: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case users @@ -146,7 +144,7 @@ public struct User: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -160,7 +158,7 @@ public struct User: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -169,6 +167,6 @@ public struct User: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/UserInvitation.swift b/Sources/OpenAPI/Generated/Entities/UserInvitation.swift index 4718656e..8a69622c 100644 --- a/Sources/OpenAPI/Generated/Entities/UserInvitation.swift +++ b/Sources/OpenAPI/Generated/Entities/UserInvitation.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation @@ -10,7 +8,7 @@ public struct UserInvitation: Codable, Identifiable { public var id: String public var attributes: Attributes? public var relationships: Relationships? - public var links: ResourceLinks + public var links: ResourceLinks? public enum `Type`: String, Codable, CaseIterable { case userInvitations @@ -150,7 +148,7 @@ public struct UserInvitation: Codable, Identifiable { } } - public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks) { + public init(type: `Type`, id: String, attributes: Attributes? = nil, relationships: Relationships? = nil, links: ResourceLinks? = nil) { self.type = type self.id = id self.attributes = attributes @@ -164,7 +162,7 @@ public struct UserInvitation: Codable, Identifiable { self.id = try values.decode(String.self, forKey: "id") self.attributes = try values.decodeIfPresent(Attributes.self, forKey: "attributes") self.relationships = try values.decodeIfPresent(Relationships.self, forKey: "relationships") - self.links = try values.decode(ResourceLinks.self, forKey: "links") + self.links = try values.decodeIfPresent(ResourceLinks.self, forKey: "links") } public func encode(to encoder: Encoder) throws { @@ -173,6 +171,6 @@ public struct UserInvitation: Codable, Identifiable { try values.encode(id, forKey: "id") try values.encodeIfPresent(attributes, forKey: "attributes") try values.encodeIfPresent(relationships, forKey: "relationships") - try values.encode(links, forKey: "links") + try values.encodeIfPresent(links, forKey: "links") } } diff --git a/Sources/OpenAPI/Generated/Entities/UserInvitationCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/UserInvitationCreateRequest.swift index 1bdc3a68..7b84803d 100644 --- a/Sources/OpenAPI/Generated/Entities/UserInvitationCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/UserInvitationCreateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserInvitationResponse.swift b/Sources/OpenAPI/Generated/Entities/UserInvitationResponse.swift index ab846d18..0fe40d6d 100644 --- a/Sources/OpenAPI/Generated/Entities/UserInvitationResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/UserInvitationResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserInvitationsResponse.swift b/Sources/OpenAPI/Generated/Entities/UserInvitationsResponse.swift index e39fa589..36d6b296 100644 --- a/Sources/OpenAPI/Generated/Entities/UserInvitationsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/UserInvitationsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserResponse.swift b/Sources/OpenAPI/Generated/Entities/UserResponse.swift index c4735718..524fc2ab 100644 --- a/Sources/OpenAPI/Generated/Entities/UserResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/UserResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserRole.swift b/Sources/OpenAPI/Generated/Entities/UserRole.swift index 00178c86..06157c6d 100644 --- a/Sources/OpenAPI/Generated/Entities/UserRole.swift +++ b/Sources/OpenAPI/Generated/Entities/UserRole.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/UserUpdateRequest.swift index 2888be7d..0930bf60 100644 --- a/Sources/OpenAPI/Generated/Entities/UserUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/UserUpdateRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesRequest.swift b/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesRequest.swift index 7be4c0cf..3f147772 100644 --- a/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesResponse.swift b/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesResponse.swift index b84df85d..8dba42ef 100644 --- a/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/UserVisibleAppsLinkagesResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/UsersResponse.swift b/Sources/OpenAPI/Generated/Entities/UsersResponse.swift index 7a33e823..aebab888 100644 --- a/Sources/OpenAPI/Generated/Entities/UsersResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/UsersResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift b/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift index 21471ee2..139d803c 100644 --- a/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift +++ b/Sources/OpenAPI/Generated/Entities/XcodeMetrics.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Paths/Paths+Extensions.swift b/Sources/OpenAPI/Generated/Extensions/APIEndpoint.swift similarity index 83% rename from Sources/OpenAPI/Generated/Paths/Paths+Extensions.swift rename to Sources/OpenAPI/Generated/Extensions/APIEndpoint.swift index bb1a4109..8044a8d4 100644 --- a/Sources/OpenAPI/Generated/Paths/Paths+Extensions.swift +++ b/Sources/OpenAPI/Generated/Extensions/APIEndpoint.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Entities/Entities+Extensions.swift b/Sources/OpenAPI/Generated/Extensions/StringCodingKey.swift similarity index 95% rename from Sources/OpenAPI/Generated/Entities/Entities+Extensions.swift rename to Sources/OpenAPI/Generated/Extensions/StringCodingKey.swift index 886192a8..1840813b 100644 --- a/Sources/OpenAPI/Generated/Entities/Entities+Extensions.swift +++ b/Sources/OpenAPI/Generated/Extensions/StringCodingKey.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1.swift b/Sources/OpenAPI/Generated/Paths/PathsV1.swift index 2b8ab7fd..ce122a95 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift index 0f433152..cc4ecfc2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Actors.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters) -> Request { - .get(path, query: parameters.asQuery) + Request(path: path, method: "GET", query: parameters.asQuery, id: "actors-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift index ff43d1bb..0b418b4b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ActorsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Actors { public let path: String public func get(fieldsActors: [FieldsActors]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsActors)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsActors), id: "actors-get_instance") } private func makeGetQuery(_ fieldsActors: [FieldsActors]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarations.swift index a0d82bea..e274f120 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarationsWithID.swift index 91aa9116..4985fafa 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AgeRatingDeclarationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AgeRatingDeclarations { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.AgeRatingDeclarationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "ageRatingDeclarations-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilities.swift index bd0fb77b..0652c649 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilities.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppAvailabilityCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appAvailabilities-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithID.swift index a334a27e..46a5e9b0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppAvailabilities { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appAvailabilities-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDAvailableTerritories.swift index 621062ac..382f5b3e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppAvailabilities.WithID { public let path: String public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories, limit), id: "appAvailabilities-availableTerritories-get_to_many_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationships.swift index 32df77fe..a5dd0185 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationshipsAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationshipsAvailableTerritories.swift index 957951d6..c8126ce6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationshipsAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppAvailabilitiesWithIDRelationshipsAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategories.swift index 2db9fdde..5cddec08 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCategories-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithID.swift index 2115235e..f23b71be 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCategories { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCategories-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift index 537a161f..a2ac55b0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppCategories.WithID { /// Path: `/v1/appCategories/{id}/parent` public let path: String - public func get(fieldsAppCategories: [FieldsAppCategories]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppCategories)) + public func get(fieldsAppCategories: [FieldsAppCategories]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppCategories), id: "appCategories-parent-get_to_one_related") } private func makeGetQuery(_ fieldsAppCategories: [FieldsAppCategories]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationships.swift index 90c51471..afd9c95d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsParent.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsParent.swift index c331825d..3cc3e2d6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsParent.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsParent.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsSubcategories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsSubcategories.swift index 8cb32530..0b96152c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsSubcategories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDRelationshipsSubcategories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift index 1de1ea0b..b53d37c3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppCategories.WithID { /// Path: `/v1/appCategories/{id}/subcategories` public let path: String - public func get(fieldsAppCategories: [FieldsAppCategories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppCategories, limit)) + public func get(fieldsAppCategories: [FieldsAppCategories]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppCategories, limit), id: "appCategories-subcategories-get_to_many_related") } private func makeGetQuery(_ fieldsAppCategories: [FieldsAppCategories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImages.swift index 0e825905..13412177 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppClipAdvancedExperienceImageCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appClipAdvancedExperienceImages-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImagesWithID.swift index 436321db..c851edde 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImagesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperienceImagesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipAdvancedExperienceImages { public let path: String public func get(fieldsAppClipAdvancedExperienceImages: [FieldsAppClipAdvancedExperienceImages]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppClipAdvancedExperienceImages)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppClipAdvancedExperienceImages), id: "appClipAdvancedExperienceImages-get_instance") } private func makeGetQuery(_ fieldsAppClipAdvancedExperienceImages: [FieldsAppClipAdvancedExperienceImages]?) -> [(String, String?)] { @@ -36,7 +34,7 @@ extension APIEndpoint.V1.AppClipAdvancedExperienceImages { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipAdvancedExperienceImageUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipAdvancedExperienceImages-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiences.swift index 3772aad6..d0400ebe 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppClipAdvancedExperienceCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appClipAdvancedExperiences-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiencesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiencesWithID.swift index 5a6741ba..5d82dc43 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiencesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAdvancedExperiencesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipAdvancedExperiences { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipAdvancedExperiences-get_instance") } public struct GetParameters { @@ -62,7 +60,7 @@ extension APIEndpoint.V1.AppClipAdvancedExperiences { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipAdvancedExperienceUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipAdvancedExperiences-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetails.swift index 132af73d..0a781654 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetails.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppClipAppStoreReviewDetailCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appClipAppStoreReviewDetails-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetailsWithID.swift index ed52cd5b..006a246e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipAppStoreReviewDetailsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipAppStoreReviewDetails { public let path: String public func get(fieldsAppClipAppStoreReviewDetails: [FieldsAppClipAppStoreReviewDetails]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppClipAppStoreReviewDetails, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppClipAppStoreReviewDetails, include), id: "appClipAppStoreReviewDetails-get_instance") } private func makeGetQuery(_ fieldsAppClipAppStoreReviewDetails: [FieldsAppClipAppStoreReviewDetails]?, _ include: [Include]?) -> [(String, String?)] { @@ -36,7 +34,7 @@ extension APIEndpoint.V1.AppClipAppStoreReviewDetails { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipAppStoreReviewDetailUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipAppStoreReviewDetails-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizations.swift index 06f5ea73..31ca8bf0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppClipDefaultExperienceLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appClipDefaultExperienceLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithID.swift index 15092c82..a6cb181d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipDefaultExperienceLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipDefaultExperienceLocalizations-get_instance") } public struct GetParameters { @@ -63,11 +61,11 @@ extension APIEndpoint.V1.AppClipDefaultExperienceLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipDefaultExperienceLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipDefaultExperienceLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appClipDefaultExperienceLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDAppClipHeaderImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDAppClipHeaderImage.swift index 625480fe..558d72d8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDAppClipHeaderImage.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDAppClipHeaderImage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipDefaultExperienceLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipDefaultExperienceLocalizations-appClipHeaderImage-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationships.swift index dfbccfec..6664e5b7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationshipsAppClipHeaderImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationshipsAppClipHeaderImage.swift index 584ccdd4..b6308c10 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationshipsAppClipHeaderImage.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperienceLocalizationsWithIDRelationshipsAppClipHeaderImage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiences.swift index 3f2e6f9b..b2a1fee2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppClipDefaultExperienceCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appClipDefaultExperiences-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift index 88768d04..227c6323 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipDefaultExperiences-get_instance") } public struct GetParameters { @@ -100,11 +98,11 @@ extension APIEndpoint.V1.AppClipDefaultExperiences { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipDefaultExperienceUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipDefaultExperiences-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appClipDefaultExperiences-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipAppStoreReviewDetail.swift index 6e2b1194..f96e2d0a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipAppStoreReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipDefaultExperiences-appClipAppStoreReviewDetail-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipDefaultExperienceLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipDefaultExperienceLocalizations.swift index 427cc0f9..c1140c97 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipDefaultExperienceLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDAppClipDefaultExperienceLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipDefaultExperiences-appClipDefaultExperienceLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationships.swift index 052ea76e..7f06aff5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipAppStoreReviewDetail.swift index 86bb4f05..77facd7d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipAppStoreReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipDefaultExperienceLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipDefaultExperienceLocalizations.swift index 26769f2b..a7f8100e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipDefaultExperienceLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsAppClipDefaultExperienceLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsReleaseWithAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsReleaseWithAppStoreVersion.swift index c2fc8adb..20887ec8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsReleaseWithAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDRelationshipsReleaseWithAppStoreVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID.Relationships { public let path: String public var get: Request { - .get(path) + Request(path: path, method: "GET", id: "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_relationship") } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipDefaultExperiences-releaseWithAppStoreVersion-update_to_one_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift index 919d95f1..a6520bb5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_related") } public struct GetParameters { @@ -38,6 +36,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -115,6 +114,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -134,6 +134,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImages.swift index ef30ccca..32b0868f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppClipHeaderImageCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appClipHeaderImages-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImagesWithID.swift index 40db3841..f4dd06ea 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImagesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipHeaderImagesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClipHeaderImages { public let path: String public func get(fieldsAppClipHeaderImages: [FieldsAppClipHeaderImages]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppClipHeaderImages, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppClipHeaderImages, include), id: "appClipHeaderImages-get_instance") } private func makeGetQuery(_ fieldsAppClipHeaderImages: [FieldsAppClipHeaderImages]?, _ include: [Include]?) -> [(String, String?)] { @@ -42,11 +40,11 @@ extension APIEndpoint.V1.AppClipHeaderImages { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppClipHeaderImageUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appClipHeaderImages-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appClipHeaderImages-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClips.swift index 60a7286f..66fdc875 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClips.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithID.swift index 00d3356a..7a51b296 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClips { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClips-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipAdvancedExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipAdvancedExperiences.swift index ba4475d2..ae800796 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipAdvancedExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipAdvancedExperiences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClips.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClips-appClipAdvancedExperiences-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift index 3f9c026b..d2934a66 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDAppClipDefaultExperiences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppClips.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appClips-appClipDefaultExperiences-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationships.swift index 8b20cf94..bb643b8e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipAdvancedExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipAdvancedExperiences.swift index d9386848..9145741a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipAdvancedExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipAdvancedExperiences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipDefaultExperiences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipDefaultExperiences.swift index 1b2bd1be..a3c02b54 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipDefaultExperiences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipsWithIDRelationshipsAppClipDefaultExperiences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizations.swift index 0daebf15..b863f478 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppCustomProductPageLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appCustomProductPageLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithID.swift index 0c9e4b34..969dd79e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPageLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPageLocalizations-get_instance") } public struct GetParameters { @@ -79,11 +77,11 @@ extension APIEndpoint.V1.AppCustomProductPageLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppCustomProductPageLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appCustomProductPageLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appCustomProductPageLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppPreviewSets.swift index d1a9a6c6..b3afebe8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPageLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPageLocalizations-appPreviewSets-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppScreenshotSets.swift index f9b7facc..0ee1780e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDAppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPageLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPageLocalizations-appScreenshotSets-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationships.swift index 9cac76b1..8d990545 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppPreviewSets.swift index 9011776f..d010e088 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppScreenshotSets.swift index dd7ce03a..7eafd776 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageLocalizationsWithIDRelationshipsAppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersions.swift index 437508c6..1f1367b2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppCustomProductPageVersionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appCustomProductPageVersions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithID.swift index f57614ae..d59cdba6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPageVersions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPageVersions-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDAppCustomProductPageLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDAppCustomProductPageLocalizations.swift index 1cd6a86f..ef7e7c4e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDAppCustomProductPageLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDAppCustomProductPageLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPageVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPageVersions-appCustomProductPageLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationships.swift index 99a3ed95..52064f46 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationshipsAppCustomProductPageLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationshipsAppCustomProductPageLocalizations.swift index 60295795..3b828c23 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationshipsAppCustomProductPageLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPageVersionsWithIDRelationshipsAppCustomProductPageLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPages.swift index 278d5b5f..bcc74b31 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppCustomProductPageCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appCustomProductPages-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithID.swift index 17d3b932..649817c7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPages { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPages-get_instance") } public struct GetParameters { @@ -65,11 +63,11 @@ extension APIEndpoint.V1.AppCustomProductPages { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppCustomProductPageUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appCustomProductPages-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appCustomProductPages-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDAppCustomProductPageVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDAppCustomProductPageVersions.swift index 9c96e744..5fa570c8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDAppCustomProductPageVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDAppCustomProductPageVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppCustomProductPages.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appCustomProductPages-appCustomProductPageVersions-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationships.swift index 20c12184..adf69556 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationshipsAppCustomProductPageVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationshipsAppCustomProductPageVersions.swift index e6ea75c6..94e1f887 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationshipsAppCustomProductPageVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCustomProductPagesWithIDRelationshipsAppCustomProductPageVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocuments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocuments.swift index 11f3a213..ef0c5a1b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocuments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocuments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppEncryptionDeclarationDocumentCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appEncryptionDeclarationDocuments-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocumentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocumentsWithID.swift index 7c13f5aa..050f23a5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocumentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationDocumentsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarationDocuments { public let path: String public func get(fieldsAppEncryptionDeclarationDocuments: [FieldsAppEncryptionDeclarationDocuments]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppEncryptionDeclarationDocuments)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppEncryptionDeclarationDocuments), id: "appEncryptionDeclarationDocuments-get_instance") } private func makeGetQuery(_ fieldsAppEncryptionDeclarationDocuments: [FieldsAppEncryptionDeclarationDocuments]?) -> [(String, String?)] { @@ -38,7 +36,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarationDocuments { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppEncryptionDeclarationDocumentUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appEncryptionDeclarationDocuments-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift index 6cd0e765..b3873477 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEncryptionDeclarations-get_collection") } public struct GetParameters { @@ -78,6 +76,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -97,6 +96,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift index 9b4cc4c9..12ad2ae9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEncryptionDeclarations-get_instance") } public struct GetParameters { @@ -68,6 +66,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -87,6 +86,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift index 78d9aaad..7ca85733 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { /// Path: `/v1/appEncryptionDeclarations/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "appEncryptionDeclarations-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDAppEncryptionDeclarationDocument.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDAppEncryptionDeclarationDocument.swift index 893fd8db..78ab9f00 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDAppEncryptionDeclarationDocument.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDAppEncryptionDeclarationDocument.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { public let path: String public func get(fieldsAppEncryptionDeclarationDocuments: [FieldsAppEncryptionDeclarationDocuments]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppEncryptionDeclarationDocuments)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppEncryptionDeclarationDocuments), id: "appEncryptionDeclarations-appEncryptionDeclarationDocument-get_to_one_related") } private func makeGetQuery(_ fieldsAppEncryptionDeclarationDocuments: [FieldsAppEncryptionDeclarationDocuments]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationships.swift index 39ace3ce..be8c30ae 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsApp.swift index 6b42f551..b2b7ded6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsAppEncryptionDeclarationDocument.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsAppEncryptionDeclarationDocument.swift index e96ff34d..99b0cbf6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsAppEncryptionDeclarationDocument.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsAppEncryptionDeclarationDocument.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift index 4dad1d46..26094b1a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDRelationshipsBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID.Relationships { @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.AppEncryptionDeclarationBuildsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appEncryptionDeclarations-builds-create_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizations.swift index 763c6b93..32cbbf82 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppEventLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appEventLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithID.swift index 4a7fba93..aed471e5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEventLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEventLocalizations-get_instance") } public struct GetParameters { @@ -90,11 +88,11 @@ extension APIEndpoint.V1.AppEventLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppEventLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appEventLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appEventLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventScreenshots.swift index 2467bca9..d7269008 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEventLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEventLocalizations-appEventScreenshots-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventVideoClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventVideoClips.swift index 028ecc91..d32bccf3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventVideoClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDAppEventVideoClips.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEventLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEventLocalizations-appEventVideoClips-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationships.swift index aa274da9..138eabc2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventScreenshots.swift index 5520626e..0c00618b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventVideoClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventVideoClips.swift index 0abd53a1..459191ec 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventVideoClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventLocalizationsWithIDRelationshipsAppEventVideoClips.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshots.swift index 77693178..6c063f6c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppEventScreenshotCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appEventScreenshots-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshotsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshotsWithID.swift index 1391ba15..91d240b5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshotsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventScreenshotsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEventScreenshots { public let path: String public func get(fieldsAppEventScreenshots: [FieldsAppEventScreenshots]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppEventScreenshots, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppEventScreenshots, include), id: "appEventScreenshots-get_instance") } private func makeGetQuery(_ fieldsAppEventScreenshots: [FieldsAppEventScreenshots]?, _ include: [Include]?) -> [(String, String?)] { @@ -43,11 +41,11 @@ extension APIEndpoint.V1.AppEventScreenshots { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppEventScreenshotUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appEventScreenshots-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appEventScreenshots-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClips.swift index d291c35b..b3ac3325 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClips.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppEventVideoClipCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appEventVideoClips-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClipsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClipsWithID.swift index 4f5d4ac1..7c8ae260 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClipsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventVideoClipsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEventVideoClips { public let path: String public func get(fieldsAppEventVideoClips: [FieldsAppEventVideoClips]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppEventVideoClips, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppEventVideoClips, include), id: "appEventVideoClips-get_instance") } private func makeGetQuery(_ fieldsAppEventVideoClips: [FieldsAppEventVideoClips]?, _ include: [Include]?) -> [(String, String?)] { @@ -44,11 +42,11 @@ extension APIEndpoint.V1.AppEventVideoClips { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppEventVideoClipUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appEventVideoClips-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appEventVideoClips-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEvents.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEvents.swift index 73fa16e3..49ad7f99 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEvents.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEvents.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppEventCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appEvents-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithID.swift index 3f3bf107..d6a52a0e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEvents { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEvents-get_instance") } public struct GetParameters { @@ -72,11 +70,11 @@ extension APIEndpoint.V1.AppEvents { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppEventUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appEvents-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appEvents-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDLocalizations.swift index ee89edab..d37e7dd2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppEvents.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appEvents-localizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationships.swift index 329afe65..9b2f73a4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationshipsLocalizations.swift index 0c97edc8..ed0332da 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationshipsLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEventsWithIDRelationshipsLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizations.swift index f015b005..fe577102 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppInfoLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appInfoLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizationsWithID.swift index b9b5a305..1783be17 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfoLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfoLocalizations { public let path: String public func get(fieldsAppInfoLocalizations: [FieldsAppInfoLocalizations]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppInfoLocalizations, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppInfoLocalizations, include), id: "appInfoLocalizations-get_instance") } private func makeGetQuery(_ fieldsAppInfoLocalizations: [FieldsAppInfoLocalizations]?, _ include: [Include]?) -> [(String, String?)] { @@ -41,11 +39,11 @@ extension APIEndpoint.V1.AppInfoLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppInfoLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appInfoLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appInfoLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfos.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfos.swift index 31921e58..c1854996 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfos.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfos.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithID.swift index 52bcdfec..701c5dec 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-get_instance") } public struct GetParameters { @@ -114,7 +112,7 @@ extension APIEndpoint.V1.AppInfos { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppInfoUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appInfos-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAgeRatingDeclaration.swift index beafaacb..39547a5d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAgeRatingDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAgeRatingDeclarations)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAgeRatingDeclarations), id: "appInfos-ageRatingDeclaration-get_to_one_related") } private func makeGetQuery(_ fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAppInfoLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAppInfoLocalizations.swift index 618ebe5e..2fac7322 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAppInfoLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDAppInfoLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-appInfoLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimaryCategory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimaryCategory.swift index 18cd3224..a33244f6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimaryCategory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimaryCategory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-primaryCategory-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryOne.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryOne.swift index 3aa679e5..1d4e9f97 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryOne.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryOne.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-primarySubcategoryOne-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryTwo.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryTwo.swift index c61f7be6..e96a0885 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryTwo.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDPrimarySubcategoryTwo.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-primarySubcategoryTwo-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationships.swift index 77014894..4b546c85 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAgeRatingDeclaration.swift index 755edfa1..3df45bd5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAgeRatingDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAppInfoLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAppInfoLocalizations.swift index c787849d..a0d0443c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAppInfoLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsAppInfoLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimaryCategory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimaryCategory.swift index b1e5bb10..dbdd0513 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimaryCategory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimaryCategory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryOne.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryOne.swift index 6fc406ed..12d7e359 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryOne.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryOne.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryTwo.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryTwo.swift index 5e6339df..3d56ec9d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryTwo.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsPrimarySubcategoryTwo.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondaryCategory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondaryCategory.swift index cbd9cace..95796bf2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondaryCategory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondaryCategory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryOne.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryOne.swift index e934832d..5021971d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryOne.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryOne.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryTwo.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryTwo.swift index 7d3417c6..f7cb2ab0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryTwo.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDRelationshipsSecondarySubcategoryTwo.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondaryCategory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondaryCategory.swift index 076eb38c..06c9c37e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondaryCategory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondaryCategory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-secondaryCategory-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryOne.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryOne.swift index 464292db..caa573c9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryOne.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryOne.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-secondarySubcategoryOne-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryTwo.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryTwo.swift index 523fb9fa..d53c688b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryTwo.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppInfosWithIDSecondarySubcategoryTwo.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppInfos.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appInfos-secondarySubcategoryTwo-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrders.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrders.swift index 58377704..3fa768ad 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrders.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrders.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppPreOrderCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appPreOrders-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrdersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrdersWithID.swift index f6427706..b7fa604a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrdersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreOrdersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPreOrders { public let path: String public func get(fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppPreOrders, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppPreOrders, include), id: "appPreOrders-get_instance") } private func makeGetQuery(_ fieldsAppPreOrders: [FieldsAppPreOrders]?, _ include: [Include]?) -> [(String, String?)] { @@ -37,11 +35,11 @@ extension APIEndpoint.V1.AppPreOrders { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppPreOrderUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appPreOrders-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appPreOrders-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSets.swift index 02959d3a..e722d3ff 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppPreviewSetCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appPreviewSets-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithID.swift index 589e2963..7250d9d1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPreviewSets { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPreviewSets-get_instance") } public struct GetParameters { @@ -72,7 +70,7 @@ extension APIEndpoint.V1.AppPreviewSets { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appPreviewSets-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDAppPreviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDAppPreviews.swift index ba7ac44b..1ffd2cae 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDAppPreviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDAppPreviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPreviewSets.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPreviewSets-appPreviews-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationships.swift index 6e842025..4c20f4fd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationshipsAppPreviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationshipsAppPreviews.swift index 64d565aa..a8f56263 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationshipsAppPreviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewSetsWithIDRelationshipsAppPreviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPreviewSets.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "appPreviewSets-appPreviews-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,7 +24,7 @@ extension APIEndpoint.V1.AppPreviewSets.WithID.Relationships { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppPreviewSetAppPreviewsLinkagesRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appPreviewSets-appPreviews-replace_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviews.swift index f7efa9dc..657831f9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppPreviewCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appPreviews-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewsWithID.swift index 6448f222..1b39be28 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPreviewsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPreviews { public let path: String public func get(fieldsAppPreviews: [FieldsAppPreviews]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppPreviews, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppPreviews, include), id: "appPreviews-get_instance") } private func makeGetQuery(_ fieldsAppPreviews: [FieldsAppPreviews]?, _ include: [Include]?) -> [(String, String?)] { @@ -45,11 +43,11 @@ extension APIEndpoint.V1.AppPreviews { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppPreviewUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appPreviews-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appPreviews-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePoints.swift index e74b9681..55351ff2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1 { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPricePoints-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithID.swift index 4df1608f..ac902008 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppPricePoints { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPricePoints-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationships.swift index b97ff93a..a8a6a1d1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationshipsTerritory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationshipsTerritory.swift index a487782a..c528de02 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationshipsTerritory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDRelationshipsTerritory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDTerritory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDTerritory.swift index d6d1e5bf..b4e18c2b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDTerritory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricePointsWithIDTerritory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppPricePoints.WithID { @available(*, deprecated, message: "Deprecated") public func get(fieldsTerritories: [FieldsTerritories]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories), id: "appPricePoints-territory-get_to_one_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedules.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedules.swift index d1589376..36dd4d15 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedules.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedules.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppPriceScheduleCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appPriceSchedules-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithID.swift index dd32cb03..b3dcade8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPriceSchedules { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPriceSchedules-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDAutomaticPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDAutomaticPrices.swift index da468144..67f19e6d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDAutomaticPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDAutomaticPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPriceSchedules.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPriceSchedules-automaticPrices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDBaseTerritory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDBaseTerritory.swift index 3b30dcae..1fd22a39 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDBaseTerritory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDBaseTerritory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPriceSchedules.WithID { public let path: String public func get(fieldsTerritories: [FieldsTerritories]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories), id: "appPriceSchedules-baseTerritory-get_to_one_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDManualPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDManualPrices.swift index ca766cdc..c0cf1298 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDManualPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDManualPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppPriceSchedules.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPriceSchedules-manualPrices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationships.swift index 209a3a22..13b17a99 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsAutomaticPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsAutomaticPrices.swift index c1d3eb4b..65e3f22e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsAutomaticPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsAutomaticPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsBaseTerritory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsBaseTerritory.swift index 7cb654a8..47139b1b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsBaseTerritory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsBaseTerritory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsManualPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsManualPrices.swift index eacb5848..70da80be 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsManualPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceSchedulesWithIDRelationshipsManualPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiers.swift index 420bff2b..e7dc4eca 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1 { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPriceTiers-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithID.swift index 6118e4c5..aaaa55d6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppPriceTiers { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPriceTiers-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDPricePoints.swift index 9c5bc7b5..4e2a77c3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppPriceTiers.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPriceTiers-pricePoints-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationships.swift index 6145b90c..925e2a03 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationshipsPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationshipsPricePoints.swift index 58eb317c..2c5f797c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationshipsPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPriceTiersWithIDRelationshipsPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPrices.swift index a4d8cc56..a2ddbabf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricesWithID.swift index ad84ac69..5c6af147 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppPricesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppPricesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppPrices { @available(*, deprecated, message: "Deprecated") public func get(fieldsAppPrices: [FieldsAppPrices]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppPrices, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppPrices, include), id: "appPrices-get_instance") } private func makeGetQuery(_ fieldsAppPrices: [FieldsAppPrices]?, _ include: [Include]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSets.swift index e9cfed74..ffbb6454 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppScreenshotSetCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appScreenshotSets-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithID.swift index 5d8a0fce..1957042a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppScreenshotSets { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appScreenshotSets-get_instance") } public struct GetParameters { @@ -71,7 +69,7 @@ extension APIEndpoint.V1.AppScreenshotSets { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appScreenshotSets-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDAppScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDAppScreenshots.swift index 52a80a65..a70af7a6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDAppScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDAppScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppScreenshotSets.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appScreenshotSets-appScreenshots-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationships.swift index ddfb2dce..6030a495 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationshipsAppScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationshipsAppScreenshots.swift index dc959d65..b2ef790c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationshipsAppScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotSetsWithIDRelationshipsAppScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppScreenshotSets.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "appScreenshotSets-appScreenshots-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,7 +24,7 @@ extension APIEndpoint.V1.AppScreenshotSets.WithID.Relationships { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppScreenshotSetAppScreenshotsLinkagesRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appScreenshotSets-appScreenshots-replace_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshots.swift index c81558d3..3c41890b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppScreenshotCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appScreenshots-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotsWithID.swift index f7e4f1d2..8bee7e17 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppScreenshotsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppScreenshots { public let path: String public func get(fieldsAppScreenshots: [FieldsAppScreenshots]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppScreenshots, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppScreenshots, include), id: "appScreenshots-get_instance") } private func makeGetQuery(_ fieldsAppScreenshots: [FieldsAppScreenshots]?, _ include: [Include]?) -> [(String, String?)] { @@ -44,11 +42,11 @@ extension APIEndpoint.V1.AppScreenshots { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppScreenshotUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appScreenshots-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appScreenshots-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachments.swift index e716773b..d59e25bd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreReviewAttachmentCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreReviewAttachments-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachmentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachmentsWithID.swift index 560337fb..3edfa2d4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachmentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewAttachmentsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreReviewAttachments { public let path: String public func get(fieldsAppStoreReviewAttachments: [FieldsAppStoreReviewAttachments]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppStoreReviewAttachments, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppStoreReviewAttachments, include), id: "appStoreReviewAttachments-get_instance") } private func makeGetQuery(_ fieldsAppStoreReviewAttachments: [FieldsAppStoreReviewAttachments]?, _ include: [Include]?) -> [(String, String?)] { @@ -41,11 +39,11 @@ extension APIEndpoint.V1.AppStoreReviewAttachments { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreReviewAttachmentUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreReviewAttachments-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreReviewAttachments-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetails.swift index f0f3eb46..8625acba 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetails.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreReviewDetailCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreReviewDetails-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithID.swift index c8028d7f..017ce070 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreReviewDetails { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreReviewDetails-get_instance") } public struct GetParameters { @@ -71,7 +69,7 @@ extension APIEndpoint.V1.AppStoreReviewDetails { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreReviewDetailUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreReviewDetails-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDAppStoreReviewAttachments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDAppStoreReviewAttachments.swift index 3fab940d..de22f7f8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDAppStoreReviewAttachments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDAppStoreReviewAttachments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreReviewDetails.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreReviewDetails-appStoreReviewAttachments-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationships.swift index 0b164ffb..7bc0cc2e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationshipsAppStoreReviewAttachments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationshipsAppStoreReviewAttachments.swift index 54f714ad..ed8e5cde 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationshipsAppStoreReviewAttachments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreReviewDetailsWithIDRelationshipsAppStoreReviewAttachments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizations.swift index dbdb0007..89d58a4a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentTreatmentLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionExperimentTreatmentLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithID.swift index 810b4173..52f4c0f3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatmentLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentTreatmentLocalizations-get_instance") } public struct GetParameters { @@ -78,7 +76,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatmentLocalizations { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionExperimentTreatmentLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppPreviewSets.swift index ff1625ea..04564691 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatmentLocalizations.WithID public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentTreatmentLocalizations-appPreviewSets-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppScreenshotSets.swift index 41095b45..71b313e5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDAppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatmentLocalizations.WithID public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentTreatmentLocalizations-appScreenshotSets-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationships.swift index 6f3a6fa5..131f6b5f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppPreviewSets.swift index fe8432e7..7992a227 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppScreenshotSets.swift index 03ae85af..346d0e1a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentLocalizationsWithIDRelationshipsAppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatments.swift index 6edcb5fd..68bc20fc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentTreatmentCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionExperimentTreatments-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift index 4d89192f..7a70b557 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatments { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentTreatments-get_instance") } public struct GetParameters { @@ -66,11 +64,11 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatments { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentTreatmentUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersionExperimentTreatments-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionExperimentTreatments-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift index 26cc1320..4e8160bc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDAppStoreVersionExperimentTreatmentLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionExperimentTreatments.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentTreatments-appStoreVersionExperimentTreatmentLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationships.swift index cb36680f..471a15cf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationshipsAppStoreVersionExperimentTreatmentLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationshipsAppStoreVersionExperimentTreatmentLocalizations.swift index 90717a8a..5c561b38 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationshipsAppStoreVersionExperimentTreatmentLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentTreatmentsWithIDRelationshipsAppStoreVersionExperimentTreatmentLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift index d3522d26..6604847b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperiments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1 { @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionExperiments-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift index 69d156af..7e8a83f5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperiments-get_instance") } public struct GetParameters { @@ -72,12 +70,12 @@ extension APIEndpoint.V1.AppStoreVersionExperiments { @available(*, deprecated, message: "Deprecated") public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersionExperiments-update_instance") } @available(*, deprecated, message: "Deprecated") public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionExperiments-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift index e212fbf1..1023ad6d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperiments-appStoreVersionExperimentTreatments-get_to_many_related") } public struct GetParameters { @@ -30,6 +28,7 @@ extension APIEndpoint.V1.AppStoreVersionExperiments.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationships.swift index 6aa7d189..c400b492 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift index a93087ae..bdcefd66 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizations.swift index 5cfc51f8..65ec4652 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithID.swift index fa59a8da..68b8fbac 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionLocalizations-get_instance") } public struct GetParameters { @@ -84,11 +82,11 @@ extension APIEndpoint.V1.AppStoreVersionLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersionLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppPreviewSets.swift index 66e366ea..14bd4622 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionLocalizations-appPreviewSets-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppScreenshotSets.swift index 81f510a5..fcb2b92a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDAppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersionLocalizations.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionLocalizations-appScreenshotSets-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationships.swift index ad03df0c..da3a5e6a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppPreviewSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppPreviewSets.swift index 42973239..4e1d5ee4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppPreviewSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppPreviewSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppScreenshotSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppScreenshotSets.swift index b285cb1f..7a6830b0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppScreenshotSets.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionLocalizationsWithIDRelationshipsAppScreenshotSets.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleases.swift index 616c57c2..0f55461f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionPhasedReleaseCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionPhasedReleases-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleasesWithID.swift index 76138b40..890f4757 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleasesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPhasedReleasesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.AppStoreVersionPhasedReleases { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionPhasedReleaseUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersionPhasedReleases-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionPhasedReleases-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPromotions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPromotions.swift index 6ae40b0a..accb8c59 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPromotions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionPromotions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionPromotionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionPromotions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionReleaseRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionReleaseRequests.swift index 1abaf062..c6759943 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionReleaseRequests.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionReleaseRequests.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionReleaseRequestCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionReleaseRequests-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissions.swift index 056f7c16..92f73115 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1 { @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionSubmissionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionSubmissions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissionsWithID.swift index b9ba10cf..64c3e576 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionSubmissionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersionSubmissions { @available(*, deprecated, message: "Deprecated") public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionSubmissions-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersions.swift index f248193f..e281d66d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift index 9ab4d9cd..6eb6b635 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-get_instance") } public struct GetParameters { @@ -75,6 +73,7 @@ extension APIEndpoint.V1.AppStoreVersions { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -242,11 +241,11 @@ extension APIEndpoint.V1.AppStoreVersions { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersions-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersions-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift index 42ad1325..c66f94f8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,8 +14,8 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public let path: String @available(*, deprecated, message: "Deprecated") - public func get(fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAgeRatingDeclarations)) + public func get(fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAgeRatingDeclarations), id: "appStoreVersions-ageRatingDeclaration-get_to_one_related") } private func makeGetQuery(_ fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift index 160a3ff7..7ec61f4c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppClipDefaultExperience.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-appClipDefaultExperience-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift index a2be2209..ce1df925 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-appStoreReviewDetail-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift index 23102842..9163fca9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperiments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-appStoreVersionExperiments-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift index 37ab6547..87bae20c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-appStoreVersionExperimentsV2-get_to_many_related") } public struct GetParameters { @@ -94,6 +92,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +112,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift index 32035983..e28cfa8b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/appStoreVersionLocalizations` public let path: String - public func get(fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppStoreVersionLocalizations, limit)) + public func get(fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppStoreVersionLocalizations, limit), id: "appStoreVersions-appStoreVersionLocalizations-get_to_many_related") } private func makeGetQuery(_ fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift index 80e7bd9d..e6134c72 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/appStoreVersionPhasedRelease` public let path: String - public func get(fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppStoreVersionPhasedReleases)) + public func get(fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppStoreVersionPhasedReleases), id: "appStoreVersions-appStoreVersionPhasedRelease-get_to_one_related") } private func makeGetQuery(_ fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift index 6d5098ef..95fcf240 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-appStoreVersionSubmission-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift index a33127c8..2d013777 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds), id: "appStoreVersions-build-get_to_one_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDCustomerReviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDCustomerReviews.swift index 44fd69de..94c38314 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDCustomerReviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDCustomerReviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersions-customerReviews-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationships.swift index e2894d8d..9dab33dd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAgeRatingDeclaration.swift index fe09221a..54c445f0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAgeRatingDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppClipDefaultExperience.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppClipDefaultExperience.swift index 5abd68f5..2a583f20 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppClipDefaultExperience.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppClipDefaultExperience.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.AppStoreVersions.WithID.Relationships { public let path: String public var get: Request { - .get(path) + Request(path: path, method: "GET", id: "appStoreVersions-appClipDefaultExperience-get_to_one_relationship") } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionAppClipDefaultExperienceLinkageRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersions-appClipDefaultExperience-update_to_one_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreReviewDetail.swift index 62bffa18..d6fd1e81 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperiments.swift index ebab36fb..9b5eecfd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperiments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperiments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift index c7cc1897..2ffd8c2b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionExperimentsV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionLocalizations.swift index f018b987..7d17e351 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionPhasedRelease.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionPhasedRelease.swift index 33e921ea..78eee9b1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionPhasedRelease.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionPhasedRelease.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionSubmission.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionSubmission.swift index 0845002b..90bedf2c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionSubmission.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsAppStoreVersionSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsBuild.swift index 2fdb7bd2..0b166393 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.AppStoreVersions.WithID.Relationships { public let path: String public var get: Request { - .get(path) + Request(path: path, method: "GET", id: "appStoreVersions-build-get_to_one_relationship") } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionBuildLinkageRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersions-build-update_to_one_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsCustomerReviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsCustomerReviews.swift index 5f616d58..a21b1ef4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsCustomerReviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsCustomerReviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsRoutingAppCoverage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsRoutingAppCoverage.swift index 47fdf4ab..8409e815 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsRoutingAppCoverage.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRelationshipsRoutingAppCoverage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift index 6a9201e2..407ddfcd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/routingAppCoverage` public let path: String - public func get(fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsRoutingAppCoverages)) + public func get(fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsRoutingAppCoverages), id: "appStoreVersions-routingAppCoverage-get_to_one_related") } private func makeGetQuery(_ fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift index 5c7e4a45..8f0d9e39 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-get_collection") } public struct GetParameters { @@ -33,6 +31,7 @@ extension APIEndpoint.V1 { public var limit: Int? public var include: [Include]? public var fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? public var fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? public var fieldsCiProducts: [FieldsCiProducts]? public var fieldsReviewSubmissions: [FieldsReviewSubmissions]? @@ -58,10 +57,12 @@ extension APIEndpoint.V1 { public var fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? public var fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? + public var fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? public var fieldsTerritories: [FieldsTerritories]? public var fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? public var limitAppClips: Int? public var limitAppCustomProductPages: Int? + public var limitAppEncryptionDeclarations: Int? public var limitAppEvents: Int? public var limitAppInfos: Int? public var limitAppStoreVersionExperimentsV2: Int? @@ -120,6 +121,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -139,6 +141,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -164,6 +167,7 @@ extension APIEndpoint.V1 { public enum Include: String, Codable, CaseIterable { case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appStoreVersionExperimentsV2 @@ -176,6 +180,7 @@ extension APIEndpoint.V1 { case builds case ciProduct case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -200,6 +205,22 @@ extension APIEndpoint.V1 { case notes } + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + public enum FieldsAppPriceSchedules: String, Codable, CaseIterable { case app case automaticPrices @@ -359,16 +380,30 @@ extension APIEndpoint.V1 { public enum FieldsAppPricePoints: String, Codable, CaseIterable { case app case customerPrice + case equalizations case priceTier case proceeds case territory } public enum FieldsInAppPurchases: String, Codable, CaseIterable { + case app + case appStoreReviewScreenshot case apps + case availableInAllTerritories + case content + case contentHosting + case familySharable + case iapPriceSchedule + case inAppPurchaseAvailability + case inAppPurchaseLocalizations case inAppPurchaseType + case name + case pricePoints case productID = "productId" + case promotedPurchase case referenceName + case reviewNote case state } @@ -466,6 +501,26 @@ extension APIEndpoint.V1 { case visible } + public enum FieldsAppEncryptionDeclarations: String, Codable, CaseIterable { + case app + case appDescription + case appEncryptionDeclarationDocument + case appEncryptionDeclarationState + case availableOnFrenchStore + case builds + case codeValue + case containsProprietaryCryptography + case containsThirdPartyCryptography + case createdDate + case documentName + case documentType + case documentURL = "documentUrl" + case exempt + case platform + case uploadedDate + case usesEncryption + } + public enum FieldsTerritories: String, Codable, CaseIterable { case currency } @@ -476,7 +531,7 @@ extension APIEndpoint.V1 { case platform } - public init(filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? = nil, filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? = nil, filterBundleID: [String]? = nil, filterName: [String]? = nil, filterSku: [String]? = nil, filterAppStoreVersions: [String]? = nil, filterID: [String]? = nil, isExistsGameCenterEnabledVersions: Bool? = nil, sort: [Sort]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { + public init(filterAppStoreVersionsAppStoreState: [FilterAppStoreVersionsAppStoreState]? = nil, filterAppStoreVersionsPlatform: [FilterAppStoreVersionsPlatform]? = nil, filterBundleID: [String]? = nil, filterName: [String]? = nil, filterSku: [String]? = nil, filterAppStoreVersions: [String]? = nil, filterID: [String]? = nil, isExistsGameCenterEnabledVersions: Bool? = nil, sort: [Sort]? = nil, fieldsApps: [FieldsApps]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEncryptionDeclarations: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { self.filterAppStoreVersionsAppStoreState = filterAppStoreVersionsAppStoreState self.filterAppStoreVersionsPlatform = filterAppStoreVersionsPlatform self.filterBundleID = filterBundleID @@ -490,6 +545,7 @@ extension APIEndpoint.V1 { self.limit = limit self.include = include self.fieldsBetaAppReviewDetails = fieldsBetaAppReviewDetails + self.fieldsGameCenterDetails = fieldsGameCenterDetails self.fieldsAppPriceSchedules = fieldsAppPriceSchedules self.fieldsCiProducts = fieldsCiProducts self.fieldsReviewSubmissions = fieldsReviewSubmissions @@ -515,10 +571,12 @@ extension APIEndpoint.V1 { self.fieldsEndUserLicenseAgreements = fieldsEndUserLicenseAgreements self.fieldsAppStoreVersions = fieldsAppStoreVersions self.fieldsAppCustomProductPages = fieldsAppCustomProductPages + self.fieldsAppEncryptionDeclarations = fieldsAppEncryptionDeclarations self.fieldsTerritories = fieldsTerritories self.fieldsPerfPowerMetrics = fieldsPerfPowerMetrics self.limitAppClips = limitAppClips self.limitAppCustomProductPages = limitAppCustomProductPages + self.limitAppEncryptionDeclarations = limitAppEncryptionDeclarations self.limitAppEvents = limitAppEvents self.limitAppInfos = limitAppInfos self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 @@ -552,6 +610,7 @@ extension APIEndpoint.V1 { encoder.encode(limit, forKey: "limit") encoder.encode(include, forKey: "include") encoder.encode(fieldsBetaAppReviewDetails, forKey: "fields[betaAppReviewDetails]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") encoder.encode(fieldsAppPriceSchedules, forKey: "fields[appPriceSchedules]") encoder.encode(fieldsCiProducts, forKey: "fields[ciProducts]") encoder.encode(fieldsReviewSubmissions, forKey: "fields[reviewSubmissions]") @@ -577,10 +636,12 @@ extension APIEndpoint.V1 { encoder.encode(fieldsEndUserLicenseAgreements, forKey: "fields[endUserLicenseAgreements]") encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") encoder.encode(fieldsAppCustomProductPages, forKey: "fields[appCustomProductPages]") + encoder.encode(fieldsAppEncryptionDeclarations, forKey: "fields[appEncryptionDeclarations]") encoder.encode(fieldsTerritories, forKey: "fields[territories]") encoder.encode(fieldsPerfPowerMetrics, forKey: "fields[perfPowerMetrics]") encoder.encode(limitAppClips, forKey: "limit[appClips]") encoder.encode(limitAppCustomProductPages, forKey: "limit[appCustomProductPages]") + encoder.encode(limitAppEncryptionDeclarations, forKey: "limit[appEncryptionDeclarations]") encoder.encode(limitAppEvents, forKey: "limit[appEvents]") encoder.encode(limitAppInfos, forKey: "limit[appInfos]") encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift index b3a0d4de..1691ad9c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,13 +14,14 @@ extension APIEndpoint.V1.Apps { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-get_instance") } public struct GetParameters { public var fieldsApps: [FieldsApps]? public var include: [Include]? public var fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? public var fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? public var fieldsCiProducts: [FieldsCiProducts]? public var fieldsReviewSubmissions: [FieldsReviewSubmissions]? @@ -48,10 +47,12 @@ extension APIEndpoint.V1.Apps { public var fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? public var fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? + public var fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? public var fieldsTerritories: [FieldsTerritories]? public var fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? public var limitAppClips: Int? public var limitAppCustomProductPages: Int? + public var limitAppEncryptionDeclarations: Int? public var limitAppEvents: Int? public var limitAppInfos: Int? public var limitAppStoreVersionExperimentsV2: Int? @@ -73,6 +74,7 @@ extension APIEndpoint.V1.Apps { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -92,6 +94,7 @@ extension APIEndpoint.V1.Apps { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -117,6 +120,7 @@ extension APIEndpoint.V1.Apps { public enum Include: String, Codable, CaseIterable { case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appStoreVersionExperimentsV2 @@ -129,6 +133,7 @@ extension APIEndpoint.V1.Apps { case builds case ciProduct case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -153,6 +158,22 @@ extension APIEndpoint.V1.Apps { case notes } + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + public enum FieldsAppPriceSchedules: String, Codable, CaseIterable { case app case automaticPrices @@ -312,16 +333,30 @@ extension APIEndpoint.V1.Apps { public enum FieldsAppPricePoints: String, Codable, CaseIterable { case app case customerPrice + case equalizations case priceTier case proceeds case territory } public enum FieldsInAppPurchases: String, Codable, CaseIterable { + case app + case appStoreReviewScreenshot case apps + case availableInAllTerritories + case content + case contentHosting + case familySharable + case iapPriceSchedule + case inAppPurchaseAvailability + case inAppPurchaseLocalizations case inAppPurchaseType + case name + case pricePoints case productID = "productId" + case promotedPurchase case referenceName + case reviewNote case state } @@ -419,6 +454,26 @@ extension APIEndpoint.V1.Apps { case visible } + public enum FieldsAppEncryptionDeclarations: String, Codable, CaseIterable { + case app + case appDescription + case appEncryptionDeclarationDocument + case appEncryptionDeclarationState + case availableOnFrenchStore + case builds + case codeValue + case containsProprietaryCryptography + case containsThirdPartyCryptography + case createdDate + case documentName + case documentType + case documentURL = "documentUrl" + case exempt + case platform + case uploadedDate + case usesEncryption + } + public enum FieldsTerritories: String, Codable, CaseIterable { case currency } @@ -429,10 +484,11 @@ extension APIEndpoint.V1.Apps { case platform } - public init(fieldsApps: [FieldsApps]? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { + public init(fieldsApps: [FieldsApps]? = nil, include: [Include]? = nil, fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsAppPriceSchedules: [FieldsAppPriceSchedules]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, fieldsCustomerReviews: [FieldsCustomerReviews]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, fieldsPerfPowerMetrics: [FieldsPerfPowerMetrics]? = nil, limitAppClips: Int? = nil, limitAppCustomProductPages: Int? = nil, limitAppEncryptionDeclarations: Int? = nil, limitAppEvents: Int? = nil, limitAppInfos: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, limitAppStoreVersions: Int? = nil, limitAvailableTerritories: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBetaGroups: Int? = nil, limitBuilds: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitInAppPurchases: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPreReleaseVersions: Int? = nil, limitPrices: Int? = nil, limitPromotedPurchases: Int? = nil, limitReviewSubmissions: Int? = nil, limitSubscriptionGroups: Int? = nil) { self.fieldsApps = fieldsApps self.include = include self.fieldsBetaAppReviewDetails = fieldsBetaAppReviewDetails + self.fieldsGameCenterDetails = fieldsGameCenterDetails self.fieldsAppPriceSchedules = fieldsAppPriceSchedules self.fieldsCiProducts = fieldsCiProducts self.fieldsReviewSubmissions = fieldsReviewSubmissions @@ -458,10 +514,12 @@ extension APIEndpoint.V1.Apps { self.fieldsEndUserLicenseAgreements = fieldsEndUserLicenseAgreements self.fieldsAppStoreVersions = fieldsAppStoreVersions self.fieldsAppCustomProductPages = fieldsAppCustomProductPages + self.fieldsAppEncryptionDeclarations = fieldsAppEncryptionDeclarations self.fieldsTerritories = fieldsTerritories self.fieldsPerfPowerMetrics = fieldsPerfPowerMetrics self.limitAppClips = limitAppClips self.limitAppCustomProductPages = limitAppCustomProductPages + self.limitAppEncryptionDeclarations = limitAppEncryptionDeclarations self.limitAppEvents = limitAppEvents self.limitAppInfos = limitAppInfos self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 @@ -485,6 +543,7 @@ extension APIEndpoint.V1.Apps { encoder.encode(fieldsApps, forKey: "fields[apps]") encoder.encode(include, forKey: "include") encoder.encode(fieldsBetaAppReviewDetails, forKey: "fields[betaAppReviewDetails]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") encoder.encode(fieldsAppPriceSchedules, forKey: "fields[appPriceSchedules]") encoder.encode(fieldsCiProducts, forKey: "fields[ciProducts]") encoder.encode(fieldsReviewSubmissions, forKey: "fields[reviewSubmissions]") @@ -510,10 +569,12 @@ extension APIEndpoint.V1.Apps { encoder.encode(fieldsEndUserLicenseAgreements, forKey: "fields[endUserLicenseAgreements]") encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") encoder.encode(fieldsAppCustomProductPages, forKey: "fields[appCustomProductPages]") + encoder.encode(fieldsAppEncryptionDeclarations, forKey: "fields[appEncryptionDeclarations]") encoder.encode(fieldsTerritories, forKey: "fields[territories]") encoder.encode(fieldsPerfPowerMetrics, forKey: "fields[perfPowerMetrics]") encoder.encode(limitAppClips, forKey: "limit[appClips]") encoder.encode(limitAppCustomProductPages, forKey: "limit[appCustomProductPages]") + encoder.encode(limitAppEncryptionDeclarations, forKey: "limit[appEncryptionDeclarations]") encoder.encode(limitAppEvents, forKey: "limit[appEvents]") encoder.encode(limitAppInfos, forKey: "limit[appInfos]") encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") @@ -535,7 +596,7 @@ extension APIEndpoint.V1.Apps { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "apps-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift index 44ca03f1..e3d30fc3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appAvailability-get_to_one_related") } public struct GetParameters { @@ -36,6 +34,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -55,6 +54,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift index 15159a9f..0be5e516 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appClips-get_to_many_related") } public struct GetParameters { @@ -39,6 +37,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +57,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift index 58c27485..d0f4b1c4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appCustomProductPages-get_to_many_related") } public struct GetParameters { @@ -49,6 +47,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -68,6 +67,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift new file mode 100644 index 00000000..89d5db5e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift @@ -0,0 +1,176 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID { + public var appEncryptionDeclarations: AppEncryptionDeclarations { + AppEncryptionDeclarations(path: path + "/appEncryptionDeclarations") + } + + public struct AppEncryptionDeclarations { + /// Path: `/v1/apps/{id}/appEncryptionDeclarations` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appEncryptionDeclarations-get_to_many_related") + } + + public struct GetParameters { + public var filterPlatform: [FilterPlatform]? + public var filterBuilds: [String]? + public var fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? + public var fieldsApps: [FieldsApps]? + public var fieldsAppEncryptionDeclarationDocuments: [FieldsAppEncryptionDeclarationDocuments]? + public var fieldsBuilds: [FieldsBuilds]? + public var limit: Int? + public var limitBuilds: Int? + public var include: [Include]? + + public enum FilterPlatform: String, Codable, CaseIterable { + case ios = "IOS" + case macOs = "MAC_OS" + case tvOs = "TV_OS" + } + + public enum FieldsAppEncryptionDeclarations: String, Codable, CaseIterable { + case app + case appDescription + case appEncryptionDeclarationDocument + case appEncryptionDeclarationState + case availableOnFrenchStore + case builds + case codeValue + case containsProprietaryCryptography + case containsThirdPartyCryptography + case createdDate + case documentName + case documentType + case documentURL = "documentUrl" + case exempt + case platform + case uploadedDate + case usesEncryption + } + + public enum FieldsApps: String, Codable, CaseIterable { + case appAvailability + case appClips + case appCustomProductPages + case appEncryptionDeclarations + case appEvents + case appInfos + case appPricePoints + case appPriceSchedule + case appStoreVersionExperimentsV2 + case appStoreVersions + case availableInNewTerritories + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case betaTesters + case builds + case bundleID = "bundleId" + case ciProduct + case contentRightsDeclaration + case customerReviews + case endUserLicenseAgreement + case gameCenterDetail + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case isOrEverWasMadeForKids + case name + case perfPowerMetrics + case preOrder + case preReleaseVersions + case pricePoints + case prices + case primaryLocale + case promotedPurchases + case reviewSubmissions + case sku + case subscriptionGracePeriod + case subscriptionGroups + case subscriptionStatusURL = "subscriptionStatusUrl" + case subscriptionStatusURLForSandbox = "subscriptionStatusUrlForSandbox" + case subscriptionStatusURLVersion = "subscriptionStatusUrlVersion" + case subscriptionStatusURLVersionForSandbox = "subscriptionStatusUrlVersionForSandbox" + } + + public enum FieldsAppEncryptionDeclarationDocuments: String, Codable, CaseIterable { + case appEncryptionDeclaration + case assetDeliveryState + case assetToken + case downloadURL = "downloadUrl" + case fileName + case fileSize + case sourceFileChecksum + case uploadOperations + case uploaded + } + + public enum FieldsBuilds: String, Codable, CaseIterable { + case app + case appEncryptionDeclaration + case appStoreVersion + case betaAppReviewSubmission + case betaBuildLocalizations + case betaGroups + case buildAudienceType + case buildBetaDetail + case buildBundles + case computedMinMacOsVersion + case diagnosticSignatures + case expirationDate + case expired + case iconAssetToken + case icons + case individualTesters + case lsMinimumSystemVersion + case minOsVersion + case perfPowerMetrics + case preReleaseVersion + case processingState + case uploadedDate + case usesNonExemptEncryption + case version + } + + public enum Include: String, Codable, CaseIterable { + case app + case appEncryptionDeclarationDocument + case builds + } + + public init(filterPlatform: [FilterPlatform]? = nil, filterBuilds: [String]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsAppEncryptionDeclarationDocuments: [FieldsAppEncryptionDeclarationDocuments]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil, limitBuilds: Int? = nil, include: [Include]? = nil) { + self.filterPlatform = filterPlatform + self.filterBuilds = filterBuilds + self.fieldsAppEncryptionDeclarations = fieldsAppEncryptionDeclarations + self.fieldsApps = fieldsApps + self.fieldsAppEncryptionDeclarationDocuments = fieldsAppEncryptionDeclarationDocuments + self.fieldsBuilds = fieldsBuilds + self.limit = limit + self.limitBuilds = limitBuilds + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterPlatform, forKey: "filter[platform]") + encoder.encode(filterBuilds, forKey: "filter[builds]") + encoder.encode(fieldsAppEncryptionDeclarations, forKey: "fields[appEncryptionDeclarations]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(fieldsAppEncryptionDeclarationDocuments, forKey: "fields[appEncryptionDeclarationDocuments]") + encoder.encode(fieldsBuilds, forKey: "fields[builds]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitBuilds, forKey: "limit[builds]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEvents.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEvents.swift index 10d7c191..d1a406ac 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEvents.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEvents.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appEvents-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift index 3e8dbf71..49026f3e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appInfos-get_to_many_related") } public struct GetParameters { @@ -86,6 +84,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -105,6 +104,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift index 257167e7..c9aadd78 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appPricePoints-get_to_many_related") } public struct GetParameters { @@ -39,6 +37,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +57,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift index 86c508e1..dc81ba01 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appPriceSchedule-get_to_one_related") } public struct GetParameters { @@ -47,6 +45,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -66,6 +65,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift index ba97aac3..b4c2e596 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appStoreVersionExperimentsV2-get_to_many_related") } public struct GetParameters { @@ -94,6 +92,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +112,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift index 4b6ac619..099d70d1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-appStoreVersions-get_to_many_related") } public struct GetParameters { @@ -71,6 +69,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -148,6 +147,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -167,6 +167,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAvailableTerritories.swift index c78a6918..ef43b364 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { @available(*, deprecated, message: "Deprecated") public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories, limit), id: "apps-availableTerritories-get_to_many_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift index 2a094e14..870bc8fa 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaAppLocalizations` public let path: String - public func get(fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaAppLocalizations, limit)) + public func get(fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaAppLocalizations, limit), id: "apps-betaAppLocalizations-get_to_many_related") } private func makeGetQuery(_ fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift index e2157554..223a9f24 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaAppReviewDetail` public let path: String - public func get(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaAppReviewDetails)) + public func get(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaAppReviewDetails), id: "apps-betaAppReviewDetail-get_to_one_related") } private func makeGetQuery(_ fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift index 6774b3be..7c9b23c0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaGroups` public let path: String - public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaGroups, limit)) + public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaGroups, limit), id: "apps-betaGroups-get_to_many_related") } private func makeGetQuery(_ fieldsBetaGroups: [FieldsBetaGroups]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift index f54f5eca..1eca060d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaLicenseAgreement` public let path: String - public func get(fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaLicenseAgreements)) + public func get(fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaLicenseAgreements), id: "apps-betaLicenseAgreement-get_to_one_related") } private func makeGetQuery(_ fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift index bb1ca229..e374eea7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds, limit)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds, limit), id: "apps-builds-get_to_many_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift index 27ba13f6..4cb6cec4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-ciProduct-get_to_one_related") } public struct GetParameters { @@ -43,6 +41,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -62,6 +61,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCustomerReviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCustomerReviews.swift index 1c25845f..3c51e600 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCustomerReviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCustomerReviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-customerReviews-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift index 40a2d904..a966c01e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/endUserLicenseAgreement` public let path: String - public func get(fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsEndUserLicenseAgreements)) + public func get(fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsEndUserLicenseAgreements), id: "apps-endUserLicenseAgreement-get_to_one_related") } private func makeGetQuery(_ fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift new file mode 100644 index 00000000..b9de8c70 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift @@ -0,0 +1,239 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID { + public var gameCenterDetail: GameCenterDetail { + GameCenterDetail(path: path + "/gameCenterDetail") + } + + public struct GameCenterDetail { + /// Path: `/v1/apps/{id}/gameCenterDetail` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-gameCenterDetail-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var fieldsApps: [FieldsApps]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limitGameCenterAppVersions: Int? + public var limitGameCenterLeaderboards: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitGameCenterAchievements: Int? + public var limitAchievementReleases: Int? + public var limitLeaderboardReleases: Int? + public var limitLeaderboardSetReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterAppVersions: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + case enabled + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum FieldsApps: String, Codable, CaseIterable { + case appAvailability + case appClips + case appCustomProductPages + case appEncryptionDeclarations + case appEvents + case appInfos + case appPricePoints + case appPriceSchedule + case appStoreVersionExperimentsV2 + case appStoreVersions + case availableInNewTerritories + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case betaTesters + case builds + case bundleID = "bundleId" + case ciProduct + case contentRightsDeclaration + case customerReviews + case endUserLicenseAgreement + case gameCenterDetail + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case isOrEverWasMadeForKids + case name + case perfPowerMetrics + case preOrder + case preReleaseVersions + case pricePoints + case prices + case primaryLocale + case promotedPurchases + case reviewSubmissions + case sku + case subscriptionGracePeriod + case subscriptionGroups + case subscriptionStatusURL = "subscriptionStatusUrl" + case subscriptionStatusURLForSandbox = "subscriptionStatusUrlForSandbox" + case subscriptionStatusURLVersion = "subscriptionStatusUrlVersion" + case subscriptionStatusURLVersionForSandbox = "subscriptionStatusUrlVersionForSandbox" + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case achievementReleases + case app + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public init(fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limitGameCenterAppVersions: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitGameCenterAchievements: Int? = nil, limitAchievementReleases: Int? = nil, limitLeaderboardReleases: Int? = nil, limitLeaderboardSetReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterAppVersions = fieldsGameCenterAppVersions + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.fieldsApps = fieldsApps + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limitGameCenterAppVersions = limitGameCenterAppVersions + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitGameCenterAchievements = limitGameCenterAchievements + self.limitAchievementReleases = limitAchievementReleases + self.limitLeaderboardReleases = limitLeaderboardReleases + self.limitLeaderboardSetReleases = limitLeaderboardSetReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterAppVersions, forKey: "fields[gameCenterAppVersions]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limitGameCenterAppVersions, forKey: "limit[gameCenterAppVersions]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitGameCenterAchievements, forKey: "limit[gameCenterAchievements]") + encoder.encode(limitAchievementReleases, forKey: "limit[achievementReleases]") + encoder.encode(limitLeaderboardReleases, forKey: "limit[leaderboardReleases]") + encoder.encode(limitLeaderboardSetReleases, forKey: "limit[leaderboardSetReleases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift index 3cf9be51..e17df48c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,9 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/gameCenterEnabledVersions` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-gameCenterEnabledVersions-get_to_many_related") } public struct GetParameters { @@ -53,6 +52,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -72,6 +72,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift index c9fe197f..336633ac 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-inAppPurchases-get_to_many_related") } public struct GetParameters { @@ -59,6 +57,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -78,6 +77,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift index a83ff4ab..14c1bd6a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchasesV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-inAppPurchasesV2-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPerfPowerMetrics.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPerfPowerMetrics.swift index c7f9085a..1b99f94e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPerfPowerMetrics.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPerfPowerMetrics.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-perfPowerMetrics-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift index 1d2d7f86..e2bda1b5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/preOrder` public let path: String - public func get(fieldsAppPreOrders: [FieldsAppPreOrders]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppPreOrders)) + public func get(fieldsAppPreOrders: [FieldsAppPreOrders]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppPreOrders), id: "apps-preOrder-get_to_one_related") } private func makeGetQuery(_ fieldsAppPreOrders: [FieldsAppPreOrders]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift index 9e2c4d7b..eb75a891 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/preReleaseVersions` public let path: String - public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsPreReleaseVersions, limit)) + public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsPreReleaseVersions, limit), id: "apps-preReleaseVersions-get_to_many_related") } private func makeGetQuery(_ fieldsPreReleaseVersions: [FieldsPreReleaseVersions]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift index 7ed3f317..445cec0b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-pricePoints-get_to_many_related") } public struct GetParameters { @@ -46,6 +44,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -65,6 +64,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift index 8fc195c5..04e19ba5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -17,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-prices-get_to_many_related") } public struct GetParameters { @@ -35,6 +33,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -54,6 +53,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift index 13ef6532..3b8a393c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPromotedPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-promotedPurchases-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationships.swift index 502bdc13..ff95f416 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppAvailability.swift index 009ca14b..ea7ba210 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppClips.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppClips.swift index db642fbf..9d6621a4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppClips.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppCustomProductPages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppCustomProductPages.swift index bde2173e..f9fe704a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppCustomProductPages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppCustomProductPages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift new file mode 100644 index 00000000..ce57d2e2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID.Relationships { + public var appEncryptionDeclarations: AppEncryptionDeclarations { + AppEncryptionDeclarations(path: path + "/appEncryptionDeclarations") + } + + public struct AppEncryptionDeclarations { + /// Path: `/v1/apps/{id}/relationships/appEncryptionDeclarations` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEvents.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEvents.swift index 77c61c89..2466f412 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEvents.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEvents.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppInfos.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppInfos.swift index 973ab5d6..3441403a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppInfos.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppInfos.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPricePoints.swift index f9e54b67..1b91f2cf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPriceSchedule.swift index 858717d5..8b399453 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppPriceSchedule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift index ebe8ab84..88cd3216 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersionExperimentsV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersions.swift index 4907e198..116555d9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppStoreVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAvailableTerritories.swift index 5d8614dd..43914934 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppLocalizations.swift index 1e59849d..59e4f21b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppReviewDetail.swift index 761f4628..c34de666 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaAppReviewDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaGroups.swift index 812e5c93..26d6122a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaLicenseAgreement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaLicenseAgreement.swift index d4718c5e..48f88284 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaLicenseAgreement.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaTesters.swift index 68b154d7..2ade60be 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBetaTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID.Relationships { public let path: String public func delete(_ body: AppStoreConnect_Swift_SDK.AppBetaTestersLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "apps-betaTesters-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBuilds.swift index c6e812e8..576bc760 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCiProduct.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCiProduct.swift index 6d155d54..369c9858 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCiProduct.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCiProduct.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCustomerReviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCustomerReviews.swift index 1716d298..2778fb77 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCustomerReviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsCustomerReviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsEndUserLicenseAgreement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsEndUserLicenseAgreement.swift index b9b88b13..11019643 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsEndUserLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsEndUserLicenseAgreement.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift new file mode 100644 index 00000000..8735a171 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.Apps.WithID.Relationships { + public var gameCenterDetail: GameCenterDetail { + GameCenterDetail(path: path + "/gameCenterDetail") + } + + public struct GameCenterDetail { + /// Path: `/v1/apps/{id}/relationships/gameCenterDetail` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterEnabledVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterEnabledVersions.swift index 2ac6e947..d5d9b6af 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterEnabledVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterEnabledVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchases.swift index 7966244d..5f1a1bd7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchasesV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchasesV2.swift index 0b6c495a..a9bad8a6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchasesV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsInAppPurchasesV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreOrder.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreOrder.swift index 61cbd44c..a69e83bf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreOrder.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreOrder.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreReleaseVersions.swift index d5b4dff4..58b8a88b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPreReleaseVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPricePoints.swift index bd57ab47..a96ffcaf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPrices.swift index 0204a36c..ebadfd47 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPromotedPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPromotedPurchases.swift index 8677460f..3ff0ac75 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPromotedPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsPromotedPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "apps-promotedPurchases-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,7 +24,7 @@ extension APIEndpoint.V1.Apps.WithID.Relationships { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppPromotedPurchasesLinkagesRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "apps-promotedPurchases-replace_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsReviewSubmissions.swift index 1e4fbc4d..70436635 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsReviewSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGracePeriod.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGracePeriod.swift index 24f8505b..ea028846 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGracePeriod.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGracePeriod.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGroups.swift index 632ab742..b3701229 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsSubscriptionGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift index 165d64a2..f6906796 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-reviewSubmissions-get_to_many_related") } public struct GetParameters { @@ -94,6 +92,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +112,7 @@ extension APIEndpoint.V1.Apps.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGracePeriod.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGracePeriod.swift index a32f1b73..8d993a96 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGracePeriod.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGracePeriod.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionGracePeriods)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionGracePeriods), id: "apps-subscriptionGracePeriod-get_to_one_related") } private func makeGetQuery(_ fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift index 0b31d189..25ca6936 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDSubscriptionGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Apps.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "apps-subscriptionGroups-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizations.swift index d5a9f8a0..54f4d248 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.BetaAppClipInvocationLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaAppClipInvocationLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizationsWithID.swift index 20e9e890..e400e0d5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.BetaAppClipInvocationLocalizations { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.BetaAppClipInvocationLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaAppClipInvocationLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "betaAppClipInvocationLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocations.swift index 08d1611b..8edfe45f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.BetaAppClipInvocationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaAppClipInvocations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationsWithID.swift index 0a669f97..7146387a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppClipInvocationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaAppClipInvocations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaAppClipInvocations-get_instance") } public struct GetParameters { @@ -50,11 +48,11 @@ extension APIEndpoint.V1.BetaAppClipInvocations { } public func patch(_ body: AppStoreConnect_Swift_SDK.BetaAppClipInvocationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaAppClipInvocations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "betaAppClipInvocations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift index 6ca91239..94449a1f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaAppLocalizations-get_collection") } public struct GetParameters { @@ -45,6 +43,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -64,6 +63,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -108,7 +108,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaAppLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaAppLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift index 3fff0ae5..ac37e362 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaAppLocalizations-get_instance") } public struct GetParameters { @@ -42,6 +40,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -61,6 +60,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -99,11 +99,11 @@ extension APIEndpoint.V1.BetaAppLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.BetaAppLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaAppLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "betaAppLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift index bce0a2d4..263187a0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { /// Path: `/v1/betaAppLocalizations/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "betaAppLocalizations-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationships.swift index c525b1ca..15de1e31 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationshipsApp.swift index 75dcdf44..159de719 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift index f74f3300..921d08e8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters) -> Request { - .get(path, query: parameters.asQuery) + Request(path: path, method: "GET", query: parameters.asQuery, id: "betaAppReviewDetails-get_collection") } public struct GetParameters { @@ -46,6 +44,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -65,6 +64,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift index 5ce1a8b6..b3cc3bbe 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaAppReviewDetails-get_instance") } public struct GetParameters { @@ -44,6 +42,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -63,6 +62,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -101,7 +101,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { } public func patch(_ body: AppStoreConnect_Swift_SDK.BetaAppReviewDetailUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaAppReviewDetails-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift index 83dc90d6..cac7378e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { /// Path: `/v1/betaAppReviewDetails/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "betaAppReviewDetails-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationships.swift index d4ddffbd..d7c737e7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationshipsApp.swift index a7181365..2d0a25f1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissions.swift index d6cd4964..305ff8b5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters) -> Request { - .get(path, query: parameters.asQuery) + Request(path: path, method: "GET", query: parameters.asQuery, id: "betaAppReviewSubmissions-get_collection") } public struct GetParameters { @@ -93,7 +91,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaAppReviewSubmissionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaAppReviewSubmissions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithID.swift index 55071915..20880079 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaAppReviewSubmissions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaAppReviewSubmissions-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift index 574144f6..13a5ee42 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaAppReviewSubmissions.WithID { /// Path: `/v1/betaAppReviewSubmissions/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds), id: "betaAppReviewSubmissions-build-get_to_one_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationships.swift index 23dd748e..6e1e6e58 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationshipsBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationshipsBuild.swift index c1ae52a4..538133b7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationshipsBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDRelationshipsBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizations.swift index 79fc1ba4..72bff2c7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaBuildLocalizations-get_collection") } public struct GetParameters { @@ -86,7 +84,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaBuildLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaBuildLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithID.swift index 4be8c3fd..23fdb6b1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaBuildLocalizations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaBuildLocalizations-get_instance") } public struct GetParameters { @@ -77,11 +75,11 @@ extension APIEndpoint.V1.BetaBuildLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.BetaBuildLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaBuildLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "betaBuildLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift index de6b22a3..aee86e30 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaBuildLocalizations.WithID { /// Path: `/v1/betaBuildLocalizations/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds), id: "betaBuildLocalizations-build-get_to_one_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationships.swift index 00e561e8..917fb689 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationshipsBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationshipsBuild.swift index 59fa7947..dd1f0cd4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationshipsBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDRelationshipsBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift index 4f8b2f10..da2ea154 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaGroups-get_collection") } public struct GetParameters { @@ -86,6 +84,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -105,6 +104,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -198,7 +198,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaGroupCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaGroups-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift index 2e70c086..de806fc4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaGroups { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaGroups-get_instance") } public struct GetParameters { @@ -65,6 +63,7 @@ extension APIEndpoint.V1.BetaGroups { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -84,6 +83,7 @@ extension APIEndpoint.V1.BetaGroups { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -157,11 +157,11 @@ extension APIEndpoint.V1.BetaGroups { } public func patch(_ body: AppStoreConnect_Swift_SDK.BetaGroupUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaGroups-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "betaGroups-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift index b257de76..06bf2464 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaGroups.WithID { /// Path: `/v1/betaGroups/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "betaGroups-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBetaTesters.swift index a79aaeea..0b9a7fab 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBetaTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaGroups.WithID { /// Path: `/v1/betaGroups/{id}/betaTesters` public let path: String - public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaTesters, limit)) + public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaTesters, limit), id: "betaGroups-betaTesters-get_to_many_related") } private func makeGetQuery(_ fieldsBetaTesters: [FieldsBetaTesters]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift index 5f39b125..8ce8977f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaGroups.WithID { /// Path: `/v1/betaGroups/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds, limit)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds, limit), id: "betaGroups-builds-get_to_many_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationships.swift index b003b340..552fbe04 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsApp.swift index 81719701..039a5ed8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBetaTesters.swift index ce60f347..e5df0a74 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBetaTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaGroups.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "betaGroups-betaTesters-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,11 +24,11 @@ extension APIEndpoint.V1.BetaGroups.WithID.Relationships { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaGroupBetaTestersLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaGroups-betaTesters-create_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.BetaGroupBetaTestersLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "betaGroups-betaTesters-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBuilds.swift index 361838af..61abd499 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDRelationshipsBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaGroups.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "betaGroups-builds-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,11 +24,11 @@ extension APIEndpoint.V1.BetaGroups.WithID.Relationships { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaGroupBuildsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaGroups-builds-create_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.BetaGroupBuildsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "betaGroups-builds-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift index 750d3c51..c7b789a4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaLicenseAgreements-get_collection") } public struct GetParameters { @@ -39,6 +37,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +57,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift index 37f8e7a7..3749fdbd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaLicenseAgreements-get_instance") } public struct GetParameters { @@ -37,6 +35,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -56,6 +55,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -94,7 +94,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { } public func patch(_ body: AppStoreConnect_Swift_SDK.BetaLicenseAgreementUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "betaLicenseAgreements-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift index 842b97c8..ebf41fb5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { /// Path: `/v1/betaLicenseAgreements/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "betaLicenseAgreements-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationships.swift index 2b7ca15f..629011b0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationshipsApp.swift index 99b525dc..33b5da91 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesterInvitations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesterInvitations.swift index 7341c4cc..46cfdbdc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesterInvitations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesterInvitations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.BetaTesterInvitationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaTesterInvitations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift index 8097c8b7..9e4d7a47 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaTesters-get_collection") } public struct GetParameters { @@ -75,6 +73,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -94,6 +93,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -206,7 +206,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaTesterCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaTesters-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift index aa93f41e..c24e7791 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaTesters { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "betaTesters-get_instance") } public struct GetParameters { @@ -49,6 +47,7 @@ extension APIEndpoint.V1.BetaTesters { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -68,6 +67,7 @@ extension APIEndpoint.V1.BetaTesters { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -160,7 +160,7 @@ extension APIEndpoint.V1.BetaTesters { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "betaTesters-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift index 549f678d..8e60fac7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaTesters.WithID { /// Path: `/v1/betaTesters/{id}/apps` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps, limit)) + public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps, limit), id: "betaTesters-apps-get_to_many_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?, _ limit: Int?) -> [(String, String?)] { @@ -30,6 +28,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -49,6 +48,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBetaGroups.swift index 232fce42..e226dfd9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBetaGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaTesters.WithID { /// Path: `/v1/betaTesters/{id}/betaGroups` public let path: String - public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaGroups, limit)) + public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaGroups, limit), id: "betaTesters-betaGroups-get_to_many_related") } private func makeGetQuery(_ fieldsBetaGroups: [FieldsBetaGroups]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift index 5aa431a2..21776beb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BetaTesters.WithID { /// Path: `/v1/betaTesters/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds, limit)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds, limit), id: "betaTesters-builds-get_to_many_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationships.swift index 1a33fc5b..9f70cd11 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsApps.swift index ad951768..328cdd69 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsApps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaTesters.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "betaTesters-apps-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,7 +24,7 @@ extension APIEndpoint.V1.BetaTesters.WithID.Relationships { } public func delete(_ body: AppStoreConnect_Swift_SDK.BetaTesterAppsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "betaTesters-apps-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBetaGroups.swift index 418d2611..6313fa0f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBetaGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaTesters.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "betaTesters-betaGroups-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,11 +24,11 @@ extension APIEndpoint.V1.BetaTesters.WithID.Relationships { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaTesterBetaGroupsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaTesters-betaGroups-create_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.BetaTesterBetaGroupsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "betaTesters-betaGroups-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBuilds.swift index 6be26b59..c2b03821 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDRelationshipsBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BetaTesters.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "betaTesters-builds-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,11 +24,11 @@ extension APIEndpoint.V1.BetaTesters.WithID.Relationships { } public func post(_ body: AppStoreConnect_Swift_SDK.BetaTesterBuildsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "betaTesters-builds-create_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.BetaTesterBuildsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "betaTesters-builds-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetails.swift index 65001169..497af235 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetails.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "buildBetaDetails-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithID.swift index b301fdc0..c66b2dde 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BuildBetaDetails { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "buildBetaDetails-get_instance") } public struct GetParameters { @@ -78,7 +76,7 @@ extension APIEndpoint.V1.BuildBetaDetails { } public func patch(_ body: AppStoreConnect_Swift_SDK.BuildBetaDetailUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "buildBetaDetails-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift index 9fc4907d..cc8bb2c3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BuildBetaDetails.WithID { /// Path: `/v1/buildBetaDetails/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds), id: "buildBetaDetails-build-get_to_one_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationships.swift index 279cf3dc..a262d077 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationshipsBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationshipsBuild.swift index 35c887f9..10242706 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationshipsBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDRelationshipsBuild.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaNotifications.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaNotifications.swift index f7ed2e75..fdd4fe40 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaNotifications.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaNotifications.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.BuildBetaNotificationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "buildBetaNotifications-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundles.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundles.swift index f05e7e2f..1d8628d6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundles.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundles.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithID.swift index 64f4ed0e..9b9c100c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainCacheStatus.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainCacheStatus.swift index bd678303..7fee9dd3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainCacheStatus.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainCacheStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BuildBundles.WithID { public let path: String public func get(fieldsAppClipDomainStatuses: [FieldsAppClipDomainStatuses]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppClipDomainStatuses)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppClipDomainStatuses), id: "buildBundles-appClipDomainCacheStatus-get_to_one_related") } private func makeGetQuery(_ fieldsAppClipDomainStatuses: [FieldsAppClipDomainStatuses]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainDebugStatus.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainDebugStatus.swift index eb8efd48..d0595e2f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainDebugStatus.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDAppClipDomainDebugStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BuildBundles.WithID { public let path: String public func get(fieldsAppClipDomainStatuses: [FieldsAppClipDomainStatuses]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppClipDomainStatuses)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppClipDomainStatuses), id: "buildBundles-appClipDomainDebugStatus-get_to_one_related") } private func makeGetQuery(_ fieldsAppClipDomainStatuses: [FieldsAppClipDomainStatuses]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBetaAppClipInvocations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBetaAppClipInvocations.swift index b3d384ea..23401e21 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBetaAppClipInvocations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBetaAppClipInvocations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BuildBundles.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "buildBundles-betaAppClipInvocations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBuildBundleFileSizes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBuildBundleFileSizes.swift index 094933b3..45344c78 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBuildBundleFileSizes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDBuildBundleFileSizes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BuildBundles.WithID { public let path: String public func get(fieldsBuildBundleFileSizes: [FieldsBuildBundleFileSizes]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuildBundleFileSizes, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuildBundleFileSizes, limit), id: "buildBundles-buildBundleFileSizes-get_to_many_related") } private func makeGetQuery(_ fieldsBuildBundleFileSizes: [FieldsBuildBundleFileSizes]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationships.swift index b4c8a1e0..0199713a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainCacheStatus.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainCacheStatus.swift index b334f780..0b0fcb60 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainCacheStatus.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainCacheStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainDebugStatus.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainDebugStatus.swift index d6191071..2604537c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainDebugStatus.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsAppClipDomainDebugStatus.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBetaAppClipInvocations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBetaAppClipInvocations.swift index b1b89dfc..0b821b72 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBetaAppClipInvocations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBetaAppClipInvocations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBuildBundleFileSizes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBuildBundleFileSizes.swift index 0f99cd52..2f4feb9c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBuildBundleFileSizes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBundlesWithIDRelationshipsBuildBundleFileSizes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift index 15a9c7f7..0bb467eb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "builds-get_collection") } public struct GetParameters { @@ -225,6 +223,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -244,6 +243,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift index bd0ecc79..83d9fcf1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Builds { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "builds-get_instance") } public struct GetParameters { @@ -176,6 +174,7 @@ extension APIEndpoint.V1.Builds { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -195,6 +194,7 @@ extension APIEndpoint.V1.Builds { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -269,7 +269,7 @@ extension APIEndpoint.V1.Builds { } public func patch(_ body: AppStoreConnect_Swift_SDK.BuildUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "builds-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift index e35aabe7..62ab78f3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "builds-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.Builds.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.Builds.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppEncryptionDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppEncryptionDeclaration.swift index 7537577d..501e84ef 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppEncryptionDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppEncryptionDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/appEncryptionDeclaration` public let path: String - public func get(fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppEncryptionDeclarations)) + public func get(fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppEncryptionDeclarations), id: "builds-appEncryptionDeclaration-get_to_one_related") } private func makeGetQuery(_ fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift index b95067f5..318a2ad1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Builds.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "builds-appStoreVersion-get_to_one_related") } public struct GetParameters { @@ -38,6 +36,7 @@ extension APIEndpoint.V1.Builds.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -115,6 +114,7 @@ extension APIEndpoint.V1.Builds.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -134,6 +134,7 @@ extension APIEndpoint.V1.Builds.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaAppReviewSubmission.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaAppReviewSubmission.swift index 22c9e954..ce3a48d0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaAppReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaAppReviewSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/betaAppReviewSubmission` public let path: String - public func get(fieldsBetaAppReviewSubmissions: [FieldsBetaAppReviewSubmissions]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaAppReviewSubmissions)) + public func get(fieldsBetaAppReviewSubmissions: [FieldsBetaAppReviewSubmissions]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaAppReviewSubmissions), id: "builds-betaAppReviewSubmission-get_to_one_related") } private func makeGetQuery(_ fieldsBetaAppReviewSubmissions: [FieldsBetaAppReviewSubmissions]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift index 726d2386..10a2dcab 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/betaBuildLocalizations` public let path: String - public func get(fieldsBetaBuildLocalizations: [FieldsBetaBuildLocalizations]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaBuildLocalizations, limit)) + public func get(fieldsBetaBuildLocalizations: [FieldsBetaBuildLocalizations]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaBuildLocalizations, limit), id: "builds-betaBuildLocalizations-get_to_many_related") } private func makeGetQuery(_ fieldsBetaBuildLocalizations: [FieldsBetaBuildLocalizations]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift index 22ae14b0..89608311 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/buildBetaDetail` public let path: String - public func get(fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuildBetaDetails)) + public func get(fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuildBetaDetails), id: "builds-buildBetaDetail-get_to_one_related") } private func makeGetQuery(_ fieldsBuildBetaDetails: [FieldsBuildBetaDetails]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDDiagnosticSignatures.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDDiagnosticSignatures.swift index 168fe9a1..beb0046b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDDiagnosticSignatures.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDDiagnosticSignatures.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Builds.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "builds-diagnosticSignatures-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift index e5701ef8..af735221 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/icons` public let path: String - public func get(fieldsBuildIcons: [FieldsBuildIcons]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuildIcons, limit)) + public func get(fieldsBuildIcons: [FieldsBuildIcons]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuildIcons, limit), id: "builds-icons-get_to_many_related") } private func makeGetQuery(_ fieldsBuildIcons: [FieldsBuildIcons]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift index 34dec637..8b4ccd82 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/individualTesters` public let path: String - public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBetaTesters, limit)) + public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBetaTesters, limit), id: "builds-individualTesters-get_to_many_related") } private func makeGetQuery(_ fieldsBetaTesters: [FieldsBetaTesters]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPerfPowerMetrics.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPerfPowerMetrics.swift index 843f8234..fa113d17 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPerfPowerMetrics.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPerfPowerMetrics.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Builds.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "builds-perfPowerMetrics-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift index 721b9773..97fa395e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/preReleaseVersion` public let path: String - public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsPreReleaseVersions)) + public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsPreReleaseVersions), id: "builds-preReleaseVersion-get_to_one_related") } private func makeGetQuery(_ fieldsPreReleaseVersions: [FieldsPreReleaseVersions]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationships.swift index fb9efc97..48308a69 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsApp.swift index 90377ee7..256d3210 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppEncryptionDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppEncryptionDeclaration.swift index 68f7fdf3..dd279a6a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppEncryptionDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppEncryptionDeclaration.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.Builds.WithID.Relationships { public let path: String public var get: Request { - .get(path) + Request(path: path, method: "GET", id: "builds-appEncryptionDeclaration-get_to_one_relationship") } public func patch(_ body: AppStoreConnect_Swift_SDK.BuildAppEncryptionDeclarationLinkageRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "builds-appEncryptionDeclaration-update_to_one_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppStoreVersion.swift index 47841ceb..55c6a66e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsAppStoreVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaAppReviewSubmission.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaAppReviewSubmission.swift index 2b96cbac..a3974d36 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaAppReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaAppReviewSubmission.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaBuildLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaBuildLocalizations.swift index c867c0e2..8838da9e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaBuildLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaBuildLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaGroups.swift index 4e4c81d5..ad7f9e28 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBetaGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.Builds.WithID.Relationships { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.BuildBetaGroupsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "builds-betaGroups-create_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.BuildBetaGroupsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "builds-betaGroups-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBuildBetaDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBuildBetaDetail.swift index 4de1494f..b986d55a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBuildBetaDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsBuildBetaDetail.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsDiagnosticSignatures.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsDiagnosticSignatures.swift index 3ec7c3cb..4aa4d8bb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsDiagnosticSignatures.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsDiagnosticSignatures.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIcons.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIcons.swift index 1fe6b36d..6e0f3b2b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIcons.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIcons.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIndividualTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIndividualTesters.swift index afc837d1..8ea666e4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIndividualTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsIndividualTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Builds.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "builds-individualTesters-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,11 +24,11 @@ extension APIEndpoint.V1.Builds.WithID.Relationships { } public func post(_ body: AppStoreConnect_Swift_SDK.BuildIndividualTestersLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "builds-individualTesters-create_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.BuildIndividualTestersLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "builds-individualTesters-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsPreReleaseVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsPreReleaseVersion.swift index a327fad4..98b86086 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsPreReleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDRelationshipsPreReleaseVersion.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilities.swift index 45ba2dc2..1fa90b6a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilities.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.BundleIDCapabilityCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "bundleIdCapabilities-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilitiesWithID.swift index 958ea6df..8dd98442 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilitiesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDCapabilitiesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.BundleIDCapabilities { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.BundleIDCapabilityUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "bundleIdCapabilities-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "bundleIdCapabilities-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift index 05bab460..3a1018f3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "bundleIds-get_collection") } public struct GetParameters { @@ -93,6 +91,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -112,6 +111,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -172,7 +172,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.BundleIDCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "bundleIds-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift index d4586e9e..f1762983 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.BundleIDs { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "bundleIds-get_instance") } public struct GetParameters { @@ -68,6 +66,7 @@ extension APIEndpoint.V1.BundleIDs { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -87,6 +86,7 @@ extension APIEndpoint.V1.BundleIDs { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -133,11 +133,11 @@ extension APIEndpoint.V1.BundleIDs { } public func patch(_ body: AppStoreConnect_Swift_SDK.BundleIDUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "bundleIds-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "bundleIds-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift index 7b694aec..45c3d5f2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BundleIDs.WithID { /// Path: `/v1/bundleIds/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "bundleIds-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDBundleIDCapabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDBundleIDCapabilities.swift index 83173c8b..b3c89581 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDBundleIDCapabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDBundleIDCapabilities.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BundleIDs.WithID { /// Path: `/v1/bundleIds/{id}/bundleIdCapabilities` public let path: String - public func get(fieldsBundleIDCapabilities: [FieldsBundleIDCapabilities]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBundleIDCapabilities, limit)) + public func get(fieldsBundleIDCapabilities: [FieldsBundleIDCapabilities]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBundleIDCapabilities, limit), id: "bundleIds-bundleIdCapabilities-get_to_many_related") } private func makeGetQuery(_ fieldsBundleIDCapabilities: [FieldsBundleIDCapabilities]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift index 050e8794..d74408d9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.BundleIDs.WithID { /// Path: `/v1/bundleIds/{id}/profiles` public let path: String - public func get(fieldsProfiles: [FieldsProfiles]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsProfiles, limit)) + public func get(fieldsProfiles: [FieldsProfiles]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsProfiles, limit), id: "bundleIds-profiles-get_to_many_related") } private func makeGetQuery(_ fieldsProfiles: [FieldsProfiles]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationships.swift index 6a2c85ec..751748f1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsApp.swift index 284603d0..85fe6cc3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsBundleIDCapabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsBundleIDCapabilities.swift index 38c34533..062cd1b8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsBundleIDCapabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsBundleIDCapabilities.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsProfiles.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsProfiles.swift index 9d9d3049..ed1d3fbf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsProfiles.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDRelationshipsProfiles.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Certificates.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Certificates.swift index 53d7fc64..3758496f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Certificates.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Certificates.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "certificates-get_collection") } public struct GetParameters { @@ -88,7 +86,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.CertificateCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "certificates-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CertificatesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CertificatesWithID.swift index 9ef8ac65..b0d2aee9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CertificatesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CertificatesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Certificates { public let path: String public func get(fieldsCertificates: [FieldsCertificates]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCertificates)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCertificates), id: "certificates-get_instance") } private func makeGetQuery(_ fieldsCertificates: [FieldsCertificates]?) -> [(String, String?)] { @@ -37,7 +35,7 @@ extension APIEndpoint.V1.Certificates { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "certificates-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifacts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifacts.swift index b240b86a..4dc08b6a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifacts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifacts.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifactsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifactsWithID.swift index df8ef44d..d668ff1a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifactsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiArtifactsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiArtifacts { public let path: String public func get(fieldsCiArtifacts: [FieldsCiArtifacts]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCiArtifacts)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCiArtifacts), id: "ciArtifacts-get_instance") } private func makeGetQuery(_ fieldsCiArtifacts: [FieldsCiArtifacts]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActions.swift index 34623f6b..5830e9c3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithID.swift index e06dad62..ea9739db 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildActions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciBuildActions-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDArtifacts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDArtifacts.swift index 627e2831..6d5ea324 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDArtifacts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDArtifacts.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildActions.WithID { public let path: String public func get(fieldsCiArtifacts: [FieldsCiArtifacts]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCiArtifacts, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCiArtifacts, limit), id: "ciBuildActions-artifacts-get_to_many_related") } private func makeGetQuery(_ fieldsCiArtifacts: [FieldsCiArtifacts]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDBuildRun.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDBuildRun.swift index 065b40d5..b00bc290 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDBuildRun.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDBuildRun.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildActions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciBuildActions-buildRun-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDIssues.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDIssues.swift index d33b1043..a78c8060 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDIssues.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDIssues.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildActions.WithID { public let path: String public func get(fieldsCiIssues: [FieldsCiIssues]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCiIssues, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCiIssues, limit), id: "ciBuildActions-issues-get_to_many_related") } private func makeGetQuery(_ fieldsCiIssues: [FieldsCiIssues]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationships.swift index 138aae0d..b07316c1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsArtifacts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsArtifacts.swift index 214356a7..b5d2d320 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsArtifacts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsArtifacts.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsBuildRun.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsBuildRun.swift index 77550930..73dc1435 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsBuildRun.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsBuildRun.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsIssues.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsIssues.swift index ca009c71..5b8b6942 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsIssues.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsIssues.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsTestResults.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsTestResults.swift index 3d3f031b..fdb78cec 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsTestResults.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDRelationshipsTestResults.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDTestResults.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDTestResults.swift index 7d47b8de..e7c2017c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDTestResults.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildActionsWithIDTestResults.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildActions.WithID { public let path: String public func get(fieldsCiTestResults: [FieldsCiTestResults]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCiTestResults, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCiTestResults, limit), id: "ciBuildActions-testResults-get_to_many_related") } private func makeGetQuery(_ fieldsCiTestResults: [FieldsCiTestResults]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRuns.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRuns.swift index d2152020..ef51dc7a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRuns.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRuns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.CiBuildRunCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "ciBuildRuns-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithID.swift index 704e6d9f..b7d06b34 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildRuns { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciBuildRuns-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDActions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDActions.swift index 512131b3..7713085c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDActions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDActions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciBuildRuns-actions-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift index f20495d8..d1233fae 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciBuildRuns-builds-get_to_many_related") } public struct GetParameters { @@ -201,6 +199,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -220,6 +219,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationships.swift index f225d4ab..810334e5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsActions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsActions.swift index 8ca8bd0f..d868d3de 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsActions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsActions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsBuilds.swift index 88ff19c4..9490b6d3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDRelationshipsBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiIssues.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiIssues.swift index 4d181075..08bd327e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiIssues.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiIssues.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiIssuesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiIssuesWithID.swift index c0b65e03..a7c95334 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiIssuesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiIssuesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiIssues { public let path: String public func get(fieldsCiIssues: [FieldsCiIssues]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCiIssues)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCiIssues), id: "ciIssues-get_instance") } private func makeGetQuery(_ fieldsCiIssues: [FieldsCiIssues]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersions.swift index 793d9653..bc30bac7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciMacOsVersions-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithID.swift index 80576d4d..3192ea87 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiMacOsVersions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciMacOsVersions-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationships.swift index 86bf2012..89831ada 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationshipsXcodeVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationshipsXcodeVersions.swift index 10786b7d..ecdb1200 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationshipsXcodeVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDRelationshipsXcodeVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDXcodeVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDXcodeVersions.swift index 61ae0ae6..f7b593ff 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDXcodeVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiMacOsVersionsWithIDXcodeVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiMacOsVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciMacOsVersions-xcodeVersions-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift index 2c651b33..ab4fe920 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-get_collection") } public struct GetParameters { @@ -102,6 +100,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -121,6 +120,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift index a21e9adb..e74935bd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiProducts { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-get_instance") } public struct GetParameters { @@ -94,6 +92,7 @@ extension APIEndpoint.V1.CiProducts { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +112,7 @@ extension APIEndpoint.V1.CiProducts { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -171,7 +171,7 @@ extension APIEndpoint.V1.CiProducts { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "ciProducts-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDAdditionalRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDAdditionalRepositories.swift index 2101f9ee..593b64b7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDAdditionalRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDAdditionalRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-additionalRepositories-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift index 64dcb704..d3200119 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,12 @@ extension APIEndpoint.V1.CiProducts.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-app-get_to_one_related") } public struct GetParameters { public var fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? public var fieldsCiProducts: [FieldsCiProducts]? public var fieldsReviewSubmissions: [FieldsReviewSubmissions]? public var fieldsBetaGroups: [FieldsBetaGroups]? @@ -42,8 +41,10 @@ extension APIEndpoint.V1.CiProducts.WithID { public var fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? public var fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? public var fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? public var fieldsTerritories: [FieldsTerritories]? + public var limitAppEncryptionDeclarations: Int? public var limitBetaGroups: Int? public var limitAppStoreVersions: Int? public var limitPreReleaseVersions: Int? @@ -76,6 +77,22 @@ extension APIEndpoint.V1.CiProducts.WithID { case notes } + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + public enum FieldsCiProducts: String, Codable, CaseIterable { case additionalRepositories case app @@ -132,6 +149,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -151,6 +169,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -262,10 +281,23 @@ extension APIEndpoint.V1.CiProducts.WithID { } public enum FieldsInAppPurchases: String, Codable, CaseIterable { + case app + case appStoreReviewScreenshot case apps + case availableInAllTerritories + case content + case contentHosting + case familySharable + case iapPriceSchedule + case inAppPurchaseAvailability + case inAppPurchaseLocalizations case inAppPurchaseType + case name + case pricePoints case productID = "productId" + case promotedPurchase case referenceName + case reviewNote case state } @@ -346,6 +378,26 @@ extension APIEndpoint.V1.CiProducts.WithID { case versionString } + public enum FieldsAppEncryptionDeclarations: String, Codable, CaseIterable { + case app + case appDescription + case appEncryptionDeclarationDocument + case appEncryptionDeclarationState + case availableOnFrenchStore + case builds + case codeValue + case containsProprietaryCryptography + case containsThirdPartyCryptography + case createdDate + case documentName + case documentType + case documentURL = "documentUrl" + case exempt + case platform + case uploadedDate + case usesEncryption + } + public enum FieldsAppCustomProductPages: String, Codable, CaseIterable { case app case appCustomProductPageVersions @@ -363,6 +415,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public enum Include: String, Codable, CaseIterable { case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appStoreVersionExperimentsV2 @@ -375,6 +428,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case builds case ciProduct case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -387,8 +441,9 @@ extension APIEndpoint.V1.CiProducts.WithID { case subscriptionGroups } - public init(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, limitBetaGroups: Int? = nil, limitAppStoreVersions: Int? = nil, limitPreReleaseVersions: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBuilds: Int? = nil, limitAppInfos: Int? = nil, limitAppClips: Int? = nil, limitPrices: Int? = nil, limitAvailableTerritories: Int? = nil, limitInAppPurchases: Int? = nil, limitSubscriptionGroups: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitAppCustomProductPages: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPromotedPurchases: Int? = nil, limitAppEvents: Int? = nil, limitReviewSubmissions: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { + public init(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsCiProducts: [FieldsCiProducts]? = nil, fieldsReviewSubmissions: [FieldsReviewSubmissions]? = nil, fieldsBetaGroups: [FieldsBetaGroups]? = nil, fieldsPromotedPurchases: [FieldsPromotedPurchases]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsAppEvents: [FieldsAppEvents]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil, fieldsAppClips: [FieldsAppClips]? = nil, fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, fieldsAppInfos: [FieldsAppInfos]? = nil, fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, fieldsInAppPurchases: [FieldsInAppPurchases]? = nil, fieldsSubscriptionGroups: [FieldsSubscriptionGroups]? = nil, fieldsAppPreOrders: [FieldsAppPreOrders]? = nil, fieldsAppPrices: [FieldsAppPrices]? = nil, fieldsGameCenterEnabledVersions: [FieldsGameCenterEnabledVersions]? = nil, fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil, fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil, fieldsAppCustomProductPages: [FieldsAppCustomProductPages]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, limitAppEncryptionDeclarations: Int? = nil, limitBetaGroups: Int? = nil, limitAppStoreVersions: Int? = nil, limitPreReleaseVersions: Int? = nil, limitBetaAppLocalizations: Int? = nil, limitBuilds: Int? = nil, limitAppInfos: Int? = nil, limitAppClips: Int? = nil, limitPrices: Int? = nil, limitAvailableTerritories: Int? = nil, limitInAppPurchases: Int? = nil, limitSubscriptionGroups: Int? = nil, limitGameCenterEnabledVersions: Int? = nil, limitAppCustomProductPages: Int? = nil, limitInAppPurchasesV2: Int? = nil, limitPromotedPurchases: Int? = nil, limitAppEvents: Int? = nil, limitReviewSubmissions: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { self.fieldsBetaAppReviewDetails = fieldsBetaAppReviewDetails + self.fieldsGameCenterDetails = fieldsGameCenterDetails self.fieldsCiProducts = fieldsCiProducts self.fieldsReviewSubmissions = fieldsReviewSubmissions self.fieldsBetaGroups = fieldsBetaGroups @@ -410,8 +465,10 @@ extension APIEndpoint.V1.CiProducts.WithID { self.fieldsSubscriptionGracePeriods = fieldsSubscriptionGracePeriods self.fieldsEndUserLicenseAgreements = fieldsEndUserLicenseAgreements self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsAppEncryptionDeclarations = fieldsAppEncryptionDeclarations self.fieldsAppCustomProductPages = fieldsAppCustomProductPages self.fieldsTerritories = fieldsTerritories + self.limitAppEncryptionDeclarations = limitAppEncryptionDeclarations self.limitBetaGroups = limitBetaGroups self.limitAppStoreVersions = limitAppStoreVersions self.limitPreReleaseVersions = limitPreReleaseVersions @@ -436,6 +493,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public var asQuery: [(String, String?)] { let encoder = URLQueryEncoder(explode: false) encoder.encode(fieldsBetaAppReviewDetails, forKey: "fields[betaAppReviewDetails]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") encoder.encode(fieldsCiProducts, forKey: "fields[ciProducts]") encoder.encode(fieldsReviewSubmissions, forKey: "fields[reviewSubmissions]") encoder.encode(fieldsBetaGroups, forKey: "fields[betaGroups]") @@ -457,8 +515,10 @@ extension APIEndpoint.V1.CiProducts.WithID { encoder.encode(fieldsSubscriptionGracePeriods, forKey: "fields[subscriptionGracePeriods]") encoder.encode(fieldsEndUserLicenseAgreements, forKey: "fields[endUserLicenseAgreements]") encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsAppEncryptionDeclarations, forKey: "fields[appEncryptionDeclarations]") encoder.encode(fieldsAppCustomProductPages, forKey: "fields[appCustomProductPages]") encoder.encode(fieldsTerritories, forKey: "fields[territories]") + encoder.encode(limitAppEncryptionDeclarations, forKey: "limit[appEncryptionDeclarations]") encoder.encode(limitBetaGroups, forKey: "limit[betaGroups]") encoder.encode(limitAppStoreVersions, forKey: "limit[appStoreVersions]") encoder.encode(limitPreReleaseVersions, forKey: "limit[preReleaseVersions]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDBuildRuns.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDBuildRuns.swift index 1cc3d788..38c712b2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDBuildRuns.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDBuildRuns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-buildRuns-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDPrimaryRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDPrimaryRepositories.swift index aebc89c8..3033e8a2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDPrimaryRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDPrimaryRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-primaryRepositories-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationships.swift index 2929d232..026367b2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsAdditionalRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsAdditionalRepositories.swift index 38e3c068..c99897d0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsAdditionalRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsAdditionalRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsApp.swift index 65d382ff..6d251fe4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsBuildRuns.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsBuildRuns.swift index 4f3d9471..ef33abdc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsBuildRuns.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsBuildRuns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsPrimaryRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsPrimaryRepositories.swift index cf645ede..4f88e9b1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsPrimaryRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsPrimaryRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsWorkflows.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsWorkflows.swift index 12ee3a54..1e687a80 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsWorkflows.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDRelationshipsWorkflows.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDWorkflows.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDWorkflows.swift index fd104cde..f3a52ce2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDWorkflows.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDWorkflows.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiProducts.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciProducts-workflows-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResults.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResults.swift index 1b85ee61..a957d9e5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResults.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResults.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResultsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResultsWithID.swift index 7ceca4be..f39f2f63 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResultsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiTestResultsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiTestResults { public let path: String public func get(fieldsCiTestResults: [FieldsCiTestResults]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCiTestResults)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCiTestResults), id: "ciTestResults-get_instance") } private func makeGetQuery(_ fieldsCiTestResults: [FieldsCiTestResults]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflows.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflows.swift index ad421bb2..353b4e07 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflows.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflows.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.CiWorkflowCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "ciWorkflows-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithID.swift index f810ddc4..f5bb83e8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiWorkflows { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciWorkflows-get_instance") } public struct GetParameters { @@ -106,11 +104,11 @@ extension APIEndpoint.V1.CiWorkflows { } public func patch(_ body: AppStoreConnect_Swift_SDK.CiWorkflowUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "ciWorkflows-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "ciWorkflows-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDBuildRuns.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDBuildRuns.swift index cdb77db7..8e36a444 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDBuildRuns.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDBuildRuns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiWorkflows.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciWorkflows-buildRuns-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationships.swift index 6e95b338..a24856b3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsBuildRuns.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsBuildRuns.swift index 8d2c6512..80675540 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsBuildRuns.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsBuildRuns.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsRepository.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsRepository.swift index e92f204a..22f3a991 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsRepository.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRelationshipsRepository.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRepository.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRepository.swift index f1d8ada0..56ad2379 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRepository.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiWorkflowsWithIDRepository.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiWorkflows.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciWorkflows-repository-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersions.swift index dc512256..8abb7395 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciXcodeVersions-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithID.swift index ad75b9c5..984f9b83 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiXcodeVersions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciXcodeVersions-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDMacOsVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDMacOsVersions.swift index dcf99b86..c3d8771a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDMacOsVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDMacOsVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CiXcodeVersions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "ciXcodeVersions-macOsVersions-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationships.swift index e0516a70..4def99c6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationshipsMacOsVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationshipsMacOsVersions.swift index 42c8e006..e623e655 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationshipsMacOsVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiXcodeVersionsWithIDRelationshipsMacOsVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponses.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponses.swift index 416da052..acb98e6f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponses.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponses.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.CustomerReviewResponseV1CreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "customerReviewResponses-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponsesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponsesWithID.swift index aa3cffb5..a9935f54 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponsesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewResponsesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CustomerReviewResponses { public let path: String public func get(fieldsCustomerReviewResponses: [FieldsCustomerReviewResponses]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCustomerReviewResponses, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsCustomerReviewResponses, include), id: "customerReviewResponses-get_instance") } private func makeGetQuery(_ fieldsCustomerReviewResponses: [FieldsCustomerReviewResponses]?, _ include: [Include]?) -> [(String, String?)] { @@ -38,7 +36,7 @@ extension APIEndpoint.V1.CustomerReviewResponses { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "customerReviewResponses-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviews.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviews.swift index 41ac3369..af1a2263 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviews.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviews.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithID.swift index 5c7afa61..e78713e1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CustomerReviews { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "customerReviews-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationships.swift index d9afb5b4..6dda5bfc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationshipsResponse.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationshipsResponse.swift index c1965762..51ee7b63 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationshipsResponse.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDRelationshipsResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDResponse.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDResponse.swift index 75c64a3d..f3f60a37 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDResponse.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CustomerReviewsWithIDResponse.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.CustomerReviews.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "customerReviews-response-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Devices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Devices.swift index 530f388d..316a898f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Devices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Devices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "devices-get_collection") } public struct GetParameters { @@ -88,7 +86,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.DeviceCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "devices-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1DevicesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1DevicesWithID.swift index bb886deb..f80ce9b9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1DevicesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1DevicesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Devices { public let path: String public func get(fieldsDevices: [FieldsDevices]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsDevices)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsDevices), id: "devices-get_instance") } private func makeGetQuery(_ fieldsDevices: [FieldsDevices]?) -> [(String, String?)] { @@ -36,7 +34,7 @@ extension APIEndpoint.V1.Devices { } public func patch(_ body: AppStoreConnect_Swift_SDK.DeviceUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "devices-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignatures.swift b/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignatures.swift index 5e7ab22e..213c67f6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignatures.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignatures.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithID.swift index ce650678..cd146c69 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithIDLogs.swift b/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithIDLogs.swift index f64f6609..35606e96 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithIDLogs.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1DiagnosticSignaturesWithIDLogs.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.DiagnosticSignatures.WithID { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "diagnosticSignatures-logs-get_to_many_related") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndAppAvailabilityPreOrders.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndAppAvailabilityPreOrders.swift new file mode 100644 index 00000000..6e440ef7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndAppAvailabilityPreOrders.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var endAppAvailabilityPreOrders: EndAppAvailabilityPreOrders { + EndAppAvailabilityPreOrders(path: path + "/endAppAvailabilityPreOrders") + } + + public struct EndAppAvailabilityPreOrders { + /// Path: `/v1/endAppAvailabilityPreOrders` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.EndAppAvailabilityPreOrderCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "endAppAvailabilityPreOrders-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreements.swift index 3c590aef..6d057f11 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreements.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreements.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.EndUserLicenseAgreementCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "endUserLicenseAgreements-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithID.swift index 055086f4..6dc7de45 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.EndUserLicenseAgreements { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "endUserLicenseAgreements-get_instance") } public struct GetParameters { @@ -58,11 +56,11 @@ extension APIEndpoint.V1.EndUserLicenseAgreements { } public func patch(_ body: AppStoreConnect_Swift_SDK.EndUserLicenseAgreementUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "endUserLicenseAgreements-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "endUserLicenseAgreements-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationships.swift index 39f4733a..235aa2bc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationshipsTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationshipsTerritories.swift index 5cff26ce..47c9c006 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationshipsTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDRelationshipsTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift index 56b2ea82..7d1d9e52 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.EndUserLicenseAgreements.WithID { /// Path: `/v1/endUserLicenseAgreements/{id}/territories` public let path: String - public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories, limit)) + public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories, limit), id: "endUserLicenseAgreements-territories-get_to_many_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1FinanceReports.swift b/Sources/OpenAPI/Generated/Paths/PathsV1FinanceReports.swift index 3fb58217..2ddef09f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1FinanceReports.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1FinanceReports.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters) -> Request { - .get(path, query: parameters.asQuery) + Request(path: path, method: "GET", query: parameters.asQuery, id: "financeReports-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift new file mode 100644 index 00000000..79b72d7f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterAchievementImages: GameCenterAchievementImages { + GameCenterAchievementImages(path: path + "/gameCenterAchievementImages") + } + + public struct GameCenterAchievementImages { + /// Path: `/v1/gameCenterAchievementImages` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementImageCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterAchievementImages-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift new file mode 100644 index 00000000..4ef0a094 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift @@ -0,0 +1,49 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementImages { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterAchievementImages/{id}` + public let path: String + + public func get(fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsGameCenterAchievementImages, include), id: "gameCenterAchievementImages-get_instance") + } + + private func makeGetQuery(_ fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementImages, forKey: "fields[gameCenterAchievementImages]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsGameCenterAchievementImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterAchievementLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievementLocalization + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementImageUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterAchievementImages-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterAchievementImages-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift new file mode 100644 index 00000000..1508111f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterAchievementLocalizations: GameCenterAchievementLocalizations { + GameCenterAchievementLocalizations(path: path + "/gameCenterAchievementLocalizations") + } + + public struct GameCenterAchievementLocalizations { + /// Path: `/v1/gameCenterAchievementLocalizations` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementLocalizationCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterAchievementLocalizations-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift new file mode 100644 index 00000000..00096a85 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift @@ -0,0 +1,89 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementLocalizations { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterAchievementLocalizations/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievementLocalizations-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var include: [Include]? + public var fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterAchievementImage + } + + public enum FieldsGameCenterAchievementImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterAchievementLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public init(fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, include: [Include]? = nil, fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil) { + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.include = include + self.fieldsGameCenterAchievementImages = fieldsGameCenterAchievementImages + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterAchievementImages, forKey: "fields[gameCenterAchievementImages]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementLocalizationUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterAchievementLocalizations-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterAchievementLocalizations-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift new file mode 100644 index 00000000..70bd4672 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift @@ -0,0 +1,116 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementLocalizations.WithID { + public var gameCenterAchievement: GameCenterAchievement { + GameCenterAchievement(path: path + "/gameCenterAchievement") + } + + public struct GameCenterAchievement { + /// Path: `/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievement` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievementLocalizations-gameCenterAchievement-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case releases + } + + public init(fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievementImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievementImage.swift new file mode 100644 index 00000000..84ba97c4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievementImage.swift @@ -0,0 +1,63 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementLocalizations.WithID { + public var gameCenterAchievementImage: GameCenterAchievementImage { + GameCenterAchievementImage(path: path + "/gameCenterAchievementImage") + } + + public struct GameCenterAchievementImage { + /// Path: `/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievementImage` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievementLocalizations-gameCenterAchievementImage-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var include: [Include]? + + public enum FieldsGameCenterAchievementImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterAchievementLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievementLocalization + } + + public init(fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, include: [Include]? = nil) { + self.fieldsGameCenterAchievementImages = fieldsGameCenterAchievementImages + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementImages, forKey: "fields[gameCenterAchievementImages]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationships.swift new file mode 100644 index 00000000..fc0b9fd9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementLocalizations.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterAchievementLocalizations/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievement.swift new file mode 100644 index 00000000..28883656 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievement.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementLocalizations.WithID.Relationships { + public var gameCenterAchievement: GameCenterAchievement { + GameCenterAchievement(path: path + "/gameCenterAchievement") + } + + public struct GameCenterAchievement { + /// Path: `/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievement` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievementImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievementImage.swift new file mode 100644 index 00000000..932164f0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievementImage.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementLocalizations.WithID.Relationships { + public var gameCenterAchievementImage: GameCenterAchievementImage { + GameCenterAchievementImage(path: path + "/gameCenterAchievementImage") + } + + public struct GameCenterAchievementImage { + /// Path: `/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievementImage` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleases.swift new file mode 100644 index 00000000..e7d7a2d3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleases.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterAchievementReleases: GameCenterAchievementReleases { + GameCenterAchievementReleases(path: path + "/gameCenterAchievementReleases") + } + + public struct GameCenterAchievementReleases { + /// Path: `/v1/gameCenterAchievementReleases` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementReleaseCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterAchievementReleases-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift new file mode 100644 index 00000000..d640302e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift @@ -0,0 +1,42 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievementReleases { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterAchievementReleases/{id}` + public let path: String + + public func get(fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsGameCenterAchievementReleases, include), id: "gameCenterAchievementReleases-get_instance") + } + + private func makeGetQuery(_ fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterAchievementReleases-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift new file mode 100644 index 00000000..cd1c72b6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterAchievements: GameCenterAchievements { + GameCenterAchievements(path: path + "/gameCenterAchievements") + } + + public struct GameCenterAchievements { + /// Path: `/v1/gameCenterAchievements` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterAchievements-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift new file mode 100644 index 00000000..ec566c0d --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift @@ -0,0 +1,94 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterAchievements/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievements-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var include: [Include]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var limitLocalizations: Int? + public var limitReleases: Int? + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case releases + } + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public init(fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, include: [Include]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil) { + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.include = include + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterAchievements-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterAchievements-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift new file mode 100644 index 00000000..6c7780d5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift @@ -0,0 +1,116 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID { + public var groupAchievement: GroupAchievement { + GroupAchievement(path: path + "/groupAchievement") + } + + public struct GroupAchievement { + /// Path: `/v1/gameCenterAchievements/{id}/groupAchievement` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievements-groupAchievement-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case releases + } + + public init(fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDLocalizations.swift new file mode 100644 index 00000000..577a8f65 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDLocalizations.swift @@ -0,0 +1,84 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID { + public var localizations: Localizations { + Localizations(path: path + "/localizations") + } + + public struct Localizations { + /// Path: `/v1/gameCenterAchievements/{id}/localizations` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievements-localizations-get_to_many_related") + } + + public struct GetParameters { + public var fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterAchievementLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterAchievementImage + } + + public init(fieldsGameCenterAchievementImages: [FieldsGameCenterAchievementImages]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterAchievementImages = fieldsGameCenterAchievementImages + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAchievementImages, forKey: "fields[gameCenterAchievementImages]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationships.swift new file mode 100644 index 00000000..36e594c6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterAchievements/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsGroupAchievement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsGroupAchievement.swift new file mode 100644 index 00000000..7430d7ee --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsGroupAchievement.swift @@ -0,0 +1,24 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID.Relationships { + public var groupAchievement: GroupAchievement { + GroupAchievement(path: path + "/groupAchievement") + } + + public struct GroupAchievement { + /// Path: `/v1/gameCenterAchievements/{id}/relationships/groupAchievement` + public let path: String + + public var get: Request { + Request(path: path, method: "GET", id: "gameCenterAchievements-groupAchievement-get_to_one_relationship") + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementGroupAchievementLinkageRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterAchievements-groupAchievement-update_to_one_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift new file mode 100644 index 00000000..7e7092e4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID.Relationships { + public var localizations: Localizations { + Localizations(path: path + "/localizations") + } + + public struct Localizations { + /// Path: `/v1/gameCenterAchievements/{id}/relationships/localizations` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsReleases.swift new file mode 100644 index 00000000..1afc1db9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsReleases.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID.Relationships { + public var releases: Releases { + Releases(path: path + "/releases") + } + + public struct Releases { + /// Path: `/v1/gameCenterAchievements/{id}/relationships/releases` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDReleases.swift new file mode 100644 index 00000000..ecea5544 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDReleases.swift @@ -0,0 +1,93 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAchievements.WithID { + public var releases: Releases { + Releases(path: path + "/releases") + } + + public struct Releases { + /// Path: `/v1/gameCenterAchievements/{id}/releases` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAchievements-releases-get_to_many_related") + } + + public struct GetParameters { + public var filterLive: [String]? + public var filterGameCenterDetail: [String]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + } + + public init(filterLive: [String]? = nil, filterGameCenterDetail: [String]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.filterLive = filterLive + self.filterGameCenterDetail = filterGameCenterDetail + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLive, forKey: "filter[live]") + encoder.encode(filterGameCenterDetail, forKey: "filter[gameCenterDetail]") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersions.swift new file mode 100644 index 00000000..471ad44a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersions.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterAppVersions: GameCenterAppVersions { + GameCenterAppVersions(path: path + "/gameCenterAppVersions") + } + + public struct GameCenterAppVersions { + /// Path: `/v1/gameCenterAppVersions` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterAppVersionCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterAppVersions-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift new file mode 100644 index 00000000..08c1cfc3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift @@ -0,0 +1,81 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAppVersions { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterAppVersions/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAppVersions-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? + public var include: [Include]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var limitCompatibilityVersions: Int? + + public enum FieldsGameCenterAppVersions: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + case enabled + } + + public enum Include: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + } + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public init(fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? = nil, include: [Include]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, limitCompatibilityVersions: Int? = nil) { + self.fieldsGameCenterAppVersions = fieldsGameCenterAppVersions + self.include = include + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.limitCompatibilityVersions = limitCompatibilityVersions + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterAppVersions, forKey: "fields[gameCenterAppVersions]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(limitCompatibilityVersions, forKey: "limit[compatibilityVersions]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterAppVersionUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterAppVersions-update_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift new file mode 100644 index 00000000..90d27f20 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift @@ -0,0 +1,280 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAppVersions.WithID { + public var appStoreVersion: AppStoreVersion { + AppStoreVersion(path: path + "/appStoreVersion") + } + + public struct AppStoreVersion { + /// Path: `/v1/gameCenterAppVersions/{id}/appStoreVersion` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAppVersions-appStoreVersion-get_to_one_related") + } + + public struct GetParameters { + public var fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? + public var fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? + public var fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? + public var fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsApps: [FieldsApps]? + public var fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? + public var fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? + public var fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? + public var fieldsBuilds: [FieldsBuilds]? + public var fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? + public var limitAppStoreVersionLocalizations: Int? + public var limitAppStoreVersionExperiments: Int? + public var limitAppStoreVersionExperimentsV2: Int? + public var include: [Include]? + + public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { + case app + case appStoreVersion + case appStoreVersionExperimentTreatments + case controlVersions + case endDate + case latestControlVersion + case name + case platform + case reviewRequired + case startDate + case started + case state + case trafficProportion + } + + public enum FieldsAgeRatingDeclarations: String, Codable, CaseIterable { + case alcoholTobaccoOrDrugUseOrReferences + case contests + case gambling + case gamblingAndContests + case gamblingSimulated + case horrorOrFearThemes + case kidsAgeBand + case matureOrSuggestiveThemes + case medicalOrTreatmentInformation + case profanityOrCrudeHumor + case seventeenPlus + case sexualContentGraphicAndNudity + case sexualContentOrNudity + case unrestrictedWebAccess + case violenceCartoonOrFantasy + case violenceRealistic + case violenceRealisticProlongedGraphicOrSadistic + } + + public enum FieldsAppStoreVersionSubmissions: String, Codable, CaseIterable { + case appStoreVersion + } + + public enum FieldsAppStoreReviewDetails: String, Codable, CaseIterable { + case appStoreReviewAttachments + case appStoreVersion + case contactEmail + case contactFirstName + case contactLastName + case contactPhone + case demoAccountName + case demoAccountPassword + case demoAccountRequired + case notes + } + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public enum FieldsApps: String, Codable, CaseIterable { + case appAvailability + case appClips + case appCustomProductPages + case appEncryptionDeclarations + case appEvents + case appInfos + case appPricePoints + case appPriceSchedule + case appStoreVersionExperimentsV2 + case appStoreVersions + case availableInNewTerritories + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case betaTesters + case builds + case bundleID = "bundleId" + case ciProduct + case contentRightsDeclaration + case customerReviews + case endUserLicenseAgreement + case gameCenterDetail + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case isOrEverWasMadeForKids + case name + case perfPowerMetrics + case preOrder + case preReleaseVersions + case pricePoints + case prices + case primaryLocale + case promotedPurchases + case reviewSubmissions + case sku + case subscriptionGracePeriod + case subscriptionGroups + case subscriptionStatusURL = "subscriptionStatusUrl" + case subscriptionStatusURLForSandbox = "subscriptionStatusUrlForSandbox" + case subscriptionStatusURLVersion = "subscriptionStatusUrlVersion" + case subscriptionStatusURLVersionForSandbox = "subscriptionStatusUrlVersionForSandbox" + } + + public enum FieldsRoutingAppCoverages: String, Codable, CaseIterable { + case appStoreVersion + case assetDeliveryState + case fileName + case fileSize + case sourceFileChecksum + case uploadOperations + case uploaded + } + + public enum FieldsAppClipDefaultExperiences: String, Codable, CaseIterable { + case action + case appClip + case appClipAppStoreReviewDetail + case appClipDefaultExperienceLocalizations + case appClipDefaultExperienceTemplate + case releaseWithAppStoreVersion + } + + public enum FieldsAppStoreVersionPhasedReleases: String, Codable, CaseIterable { + case appStoreVersion + case currentDayNumber + case phasedReleaseState + case startDate + case totalPauseDuration + } + + public enum FieldsBuilds: String, Codable, CaseIterable { + case app + case appEncryptionDeclaration + case appStoreVersion + case betaAppReviewSubmission + case betaBuildLocalizations + case betaGroups + case buildAudienceType + case buildBetaDetail + case buildBundles + case computedMinMacOsVersion + case diagnosticSignatures + case expirationDate + case expired + case iconAssetToken + case icons + case individualTesters + case lsMinimumSystemVersion + case minOsVersion + case perfPowerMetrics + case preReleaseVersion + case processingState + case uploadedDate + case usesNonExemptEncryption + case version + } + + public enum FieldsAppStoreVersionLocalizations: String, Codable, CaseIterable { + case appPreviewSets + case appScreenshotSets + case appStoreVersion + case description + case keywords + case locale + case marketingURL = "marketingUrl" + case promotionalText + case supportURL = "supportUrl" + case whatsNew + } + + public enum Include: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case routingAppCoverage + } + + public init(fieldsAppStoreVersionExperiments: [FieldsAppStoreVersionExperiments]? = nil, fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil, fieldsAppStoreVersionSubmissions: [FieldsAppStoreVersionSubmissions]? = nil, fieldsAppStoreReviewDetails: [FieldsAppStoreReviewDetails]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, fieldsAppClipDefaultExperiences: [FieldsAppClipDefaultExperiences]? = nil, fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil, fieldsBuilds: [FieldsBuilds]? = nil, fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limitAppStoreVersionLocalizations: Int? = nil, limitAppStoreVersionExperiments: Int? = nil, limitAppStoreVersionExperimentsV2: Int? = nil, include: [Include]? = nil) { + self.fieldsAppStoreVersionExperiments = fieldsAppStoreVersionExperiments + self.fieldsAgeRatingDeclarations = fieldsAgeRatingDeclarations + self.fieldsAppStoreVersionSubmissions = fieldsAppStoreVersionSubmissions + self.fieldsAppStoreReviewDetails = fieldsAppStoreReviewDetails + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsApps = fieldsApps + self.fieldsRoutingAppCoverages = fieldsRoutingAppCoverages + self.fieldsAppClipDefaultExperiences = fieldsAppClipDefaultExperiences + self.fieldsAppStoreVersionPhasedReleases = fieldsAppStoreVersionPhasedReleases + self.fieldsBuilds = fieldsBuilds + self.fieldsAppStoreVersionLocalizations = fieldsAppStoreVersionLocalizations + self.limitAppStoreVersionLocalizations = limitAppStoreVersionLocalizations + self.limitAppStoreVersionExperiments = limitAppStoreVersionExperiments + self.limitAppStoreVersionExperimentsV2 = limitAppStoreVersionExperimentsV2 + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAppStoreVersionExperiments, forKey: "fields[appStoreVersionExperiments]") + encoder.encode(fieldsAgeRatingDeclarations, forKey: "fields[ageRatingDeclarations]") + encoder.encode(fieldsAppStoreVersionSubmissions, forKey: "fields[appStoreVersionSubmissions]") + encoder.encode(fieldsAppStoreReviewDetails, forKey: "fields[appStoreReviewDetails]") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(fieldsRoutingAppCoverages, forKey: "fields[routingAppCoverages]") + encoder.encode(fieldsAppClipDefaultExperiences, forKey: "fields[appClipDefaultExperiences]") + encoder.encode(fieldsAppStoreVersionPhasedReleases, forKey: "fields[appStoreVersionPhasedReleases]") + encoder.encode(fieldsBuilds, forKey: "fields[builds]") + encoder.encode(fieldsAppStoreVersionLocalizations, forKey: "fields[appStoreVersionLocalizations]") + encoder.encode(limitAppStoreVersionLocalizations, forKey: "limit[appStoreVersionLocalizations]") + encoder.encode(limitAppStoreVersionExperiments, forKey: "limit[appStoreVersionExperiments]") + encoder.encode(limitAppStoreVersionExperimentsV2, forKey: "limit[appStoreVersionExperimentsV2]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDCompatibilityVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDCompatibilityVersions.swift new file mode 100644 index 00000000..cf1aa6d0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDCompatibilityVersions.swift @@ -0,0 +1,83 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAppVersions.WithID { + public var compatibilityVersions: CompatibilityVersions { + CompatibilityVersions(path: path + "/compatibilityVersions") + } + + public struct CompatibilityVersions { + /// Path: `/v1/gameCenterAppVersions/{id}/compatibilityVersions` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterAppVersions-compatibilityVersions-get_to_many_related") + } + + public struct GetParameters { + public var filterEnabled: [String]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? + public var limit: Int? + public var limitCompatibilityVersions: Int? + public var include: [Include]? + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public enum FieldsGameCenterAppVersions: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + case enabled + } + + public enum Include: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + } + + public init(filterEnabled: [String]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? = nil, limit: Int? = nil, limitCompatibilityVersions: Int? = nil, include: [Include]? = nil) { + self.filterEnabled = filterEnabled + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsGameCenterAppVersions = fieldsGameCenterAppVersions + self.limit = limit + self.limitCompatibilityVersions = limitCompatibilityVersions + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterEnabled, forKey: "filter[enabled]") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsGameCenterAppVersions, forKey: "fields[gameCenterAppVersions]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitCompatibilityVersions, forKey: "limit[compatibilityVersions]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationships.swift new file mode 100644 index 00000000..59ad6128 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAppVersions.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterAppVersions/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsAppStoreVersion.swift new file mode 100644 index 00000000..09960385 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsAppStoreVersion.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAppVersions.WithID.Relationships { + public var appStoreVersion: AppStoreVersion { + AppStoreVersion(path: path + "/appStoreVersion") + } + + public struct AppStoreVersion { + /// Path: `/v1/gameCenterAppVersions/{id}/relationships/appStoreVersion` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsCompatibilityVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsCompatibilityVersions.swift new file mode 100644 index 00000000..50a1b90a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsCompatibilityVersions.swift @@ -0,0 +1,34 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterAppVersions.WithID.Relationships { + public var compatibilityVersions: CompatibilityVersions { + CompatibilityVersions(path: path + "/compatibilityVersions") + } + + public struct CompatibilityVersions { + /// Path: `/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterAppVersions-compatibilityVersions-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterAppVersionCompatibilityVersionsLinkagesRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterAppVersions-compatibilityVersions-create_to_many_relationship") + } + + public func delete(_ body: AppStoreConnect_Swift_SDK.GameCenterAppVersionCompatibilityVersionsLinkagesRequest) -> Request { + Request(path: path, method: "DELETE", body: body, id: "gameCenterAppVersions-compatibilityVersions-delete_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift new file mode 100644 index 00000000..7957c711 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterDetails: GameCenterDetails { + GameCenterDetails(path: path + "/gameCenterDetails") + } + + public struct GameCenterDetails { + /// Path: `/v1/gameCenterDetails` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterDetailCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterDetails-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift new file mode 100644 index 00000000..f6375acb --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift @@ -0,0 +1,193 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterDetails/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var include: [Include]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limitAchievementReleases: Int? + public var limitGameCenterAchievements: Int? + public var limitGameCenterAppVersions: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitGameCenterLeaderboards: Int? + public var limitLeaderboardReleases: Int? + public var limitLeaderboardSetReleases: Int? + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum Include: String, Codable, CaseIterable { + case achievementReleases + case app + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum FieldsGameCenterAppVersions: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + case enabled + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public init(fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, include: [Include]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limitAchievementReleases: Int? = nil, limitGameCenterAchievements: Int? = nil, limitGameCenterAppVersions: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitLeaderboardReleases: Int? = nil, limitLeaderboardSetReleases: Int? = nil) { + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.include = include + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.fieldsGameCenterAppVersions = fieldsGameCenterAppVersions + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limitAchievementReleases = limitAchievementReleases + self.limitGameCenterAchievements = limitGameCenterAchievements + self.limitGameCenterAppVersions = limitGameCenterAppVersions + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitLeaderboardReleases = limitLeaderboardReleases + self.limitLeaderboardSetReleases = limitLeaderboardSetReleases + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(fieldsGameCenterAppVersions, forKey: "fields[gameCenterAppVersions]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limitAchievementReleases, forKey: "limit[achievementReleases]") + encoder.encode(limitGameCenterAchievements, forKey: "limit[gameCenterAchievements]") + encoder.encode(limitGameCenterAppVersions, forKey: "limit[gameCenterAppVersions]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitLeaderboardReleases, forKey: "limit[leaderboardReleases]") + encoder.encode(limitLeaderboardSetReleases, forKey: "limit[leaderboardSetReleases]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterDetailUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterDetails-update_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift new file mode 100644 index 00000000..c0d73b4f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift @@ -0,0 +1,93 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var achievementReleases: AchievementReleases { + AchievementReleases(path: path + "/achievementReleases") + } + + public struct AchievementReleases { + /// Path: `/v1/gameCenterDetails/{id}/achievementReleases` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-achievementReleases-get_to_many_related") + } + + public struct GetParameters { + public var filterLive: [String]? + public var filterGameCenterAchievement: [String]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + } + + public init(filterLive: [String]? = nil, filterGameCenterAchievement: [String]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.filterLive = filterLive + self.filterGameCenterAchievement = filterGameCenterAchievement + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLive, forKey: "filter[live]") + encoder.encode(filterGameCenterAchievement, forKey: "filter[gameCenterAchievement]") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAchievements.swift new file mode 100644 index 00000000..9359f6d4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAchievements.swift @@ -0,0 +1,128 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var gameCenterAchievements: GameCenterAchievements { + GameCenterAchievements(path: path + "/gameCenterAchievements") + } + + public struct GameCenterAchievements { + /// Path: `/v1/gameCenterDetails/{id}/gameCenterAchievements` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-gameCenterAchievements-get_to_many_related") + } + + public struct GetParameters { + public var filterArchived: [String]? + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limit: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case releases + } + + public init(filterArchived: [String]? = nil, filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limit: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterArchived = filterArchived + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limit = limit + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterArchived, forKey: "filter[archived]") + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAppVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAppVersions.swift new file mode 100644 index 00000000..b15235e7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAppVersions.swift @@ -0,0 +1,83 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var gameCenterAppVersions: GameCenterAppVersions { + GameCenterAppVersions(path: path + "/gameCenterAppVersions") + } + + public struct GameCenterAppVersions { + /// Path: `/v1/gameCenterDetails/{id}/gameCenterAppVersions` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-gameCenterAppVersions-get_to_many_related") + } + + public struct GetParameters { + public var filterEnabled: [String]? + public var fieldsAppStoreVersions: [FieldsAppStoreVersions]? + public var fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? + public var limit: Int? + public var limitCompatibilityVersions: Int? + public var include: [Include]? + + public enum FieldsAppStoreVersions: String, Codable, CaseIterable { + case ageRatingDeclaration + case app + case appClipDefaultExperience + case appStoreReviewDetail + case appStoreState + case appStoreVersionExperiments + case appStoreVersionExperimentsV2 + case appStoreVersionLocalizations + case appStoreVersionPhasedRelease + case appStoreVersionSubmission + case build + case copyright + case createdDate + case customerReviews + case downloadable + case earliestReleaseDate + case platform + case releaseType + case routingAppCoverage + case versionString + } + + public enum FieldsGameCenterAppVersions: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + case enabled + } + + public enum Include: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + } + + public init(filterEnabled: [String]? = nil, fieldsAppStoreVersions: [FieldsAppStoreVersions]? = nil, fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? = nil, limit: Int? = nil, limitCompatibilityVersions: Int? = nil, include: [Include]? = nil) { + self.filterEnabled = filterEnabled + self.fieldsAppStoreVersions = fieldsAppStoreVersions + self.fieldsGameCenterAppVersions = fieldsGameCenterAppVersions + self.limit = limit + self.limitCompatibilityVersions = limitCompatibilityVersions + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterEnabled, forKey: "filter[enabled]") + encoder.encode(fieldsAppStoreVersions, forKey: "fields[appStoreVersions]") + encoder.encode(fieldsGameCenterAppVersions, forKey: "fields[gameCenterAppVersions]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitCompatibilityVersions, forKey: "limit[compatibilityVersions]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterGroup.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterGroup.swift new file mode 100644 index 00000000..ea83cb05 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterGroup.swift @@ -0,0 +1,137 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var gameCenterGroup: GameCenterGroup { + GameCenterGroup(path: path + "/gameCenterGroup") + } + + public struct GameCenterGroup { + /// Path: `/v1/gameCenterDetails/{id}/gameCenterGroup` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-gameCenterGroup-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limitGameCenterDetails: Int? + public var limitGameCenterLeaderboards: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitGameCenterAchievements: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + } + + public init(fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limitGameCenterDetails: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitGameCenterAchievements: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limitGameCenterDetails = limitGameCenterDetails + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitGameCenterAchievements = limitGameCenterAchievements + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limitGameCenterDetails, forKey: "limit[gameCenterDetails]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitGameCenterAchievements, forKey: "limit[gameCenterAchievements]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboardSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboardSets.swift new file mode 100644 index 00000000..7b462972 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboardSets.swift @@ -0,0 +1,147 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets { + GameCenterLeaderboardSets(path: path + "/gameCenterLeaderboardSets") + } + + public struct GameCenterLeaderboardSets { + /// Path: `/v1/gameCenterDetails/{id}/gameCenterLeaderboardSets` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-gameCenterLeaderboardSets-get_to_many_related") + } + + public struct GetParameters { + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var limit: Int? + public var limitLocalizations: Int? + public var limitGameCenterLeaderboards: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case releases + } + + public init(filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, limit: Int? = nil, limitLocalizations: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.limit = limit + self.limitLocalizations = limitLocalizations + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboards.swift new file mode 100644 index 00000000..3f732cde --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboards.swift @@ -0,0 +1,153 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterDetails/{id}/gameCenterLeaderboards` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-gameCenterLeaderboards-get_to_many_related") + } + + public struct GetParameters { + public var filterArchived: [String]? + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limit: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case releases + } + + public init(filterArchived: [String]? = nil, filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limit: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterArchived = filterArchived + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limit = limit + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterArchived, forKey: "filter[archived]") + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardReleases.swift new file mode 100644 index 00000000..af034c6e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardReleases.swift @@ -0,0 +1,99 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var leaderboardReleases: LeaderboardReleases { + LeaderboardReleases(path: path + "/leaderboardReleases") + } + + public struct LeaderboardReleases { + /// Path: `/v1/gameCenterDetails/{id}/leaderboardReleases` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-leaderboardReleases-get_to_many_related") + } + + public struct GetParameters { + public var filterLive: [String]? + public var filterGameCenterLeaderboard: [String]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + } + + public init(filterLive: [String]? = nil, filterGameCenterLeaderboard: [String]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.filterLive = filterLive + self.filterGameCenterLeaderboard = filterGameCenterLeaderboard + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLive, forKey: "filter[live]") + encoder.encode(filterGameCenterLeaderboard, forKey: "filter[gameCenterLeaderboard]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardSetReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardSetReleases.swift new file mode 100644 index 00000000..1e398bf8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardSetReleases.swift @@ -0,0 +1,90 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var leaderboardSetReleases: LeaderboardSetReleases { + LeaderboardSetReleases(path: path + "/leaderboardSetReleases") + } + + public struct LeaderboardSetReleases { + /// Path: `/v1/gameCenterDetails/{id}/leaderboardSetReleases` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterDetails-leaderboardSetReleases-get_to_many_related") + } + + public struct GetParameters { + public var filterLive: [String]? + public var filterGameCenterLeaderboardSet: [String]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + } + + public init(filterLive: [String]? = nil, filterGameCenterLeaderboardSet: [String]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.filterLive = filterLive + self.filterGameCenterLeaderboardSet = filterGameCenterLeaderboardSet + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLive, forKey: "filter[live]") + encoder.encode(filterGameCenterLeaderboardSet, forKey: "filter[gameCenterLeaderboardSet]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationships.swift new file mode 100644 index 00000000..f33b2e4a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterDetails/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsAchievementReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsAchievementReleases.swift new file mode 100644 index 00000000..42c0e955 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsAchievementReleases.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var achievementReleases: AchievementReleases { + AchievementReleases(path: path + "/achievementReleases") + } + + public struct AchievementReleases { + /// Path: `/v1/gameCenterDetails/{id}/relationships/achievementReleases` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAchievements.swift new file mode 100644 index 00000000..f2d3d0a9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAchievements.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var gameCenterAchievements: GameCenterAchievements { + GameCenterAchievements(path: path + "/gameCenterAchievements") + } + + public struct GameCenterAchievements { + /// Path: `/v1/gameCenterDetails/{id}/relationships/gameCenterAchievements` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterDetails-gameCenterAchievements-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterDetailGameCenterAchievementsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterDetails-gameCenterAchievements-replace_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift new file mode 100644 index 00000000..e3bcb1dd --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var gameCenterAppVersions: GameCenterAppVersions { + GameCenterAppVersions(path: path + "/gameCenterAppVersions") + } + + public struct GameCenterAppVersions { + /// Path: `/v1/gameCenterDetails/{id}/relationships/gameCenterAppVersions` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterGroup.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterGroup.swift new file mode 100644 index 00000000..3e79e991 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterGroup.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var gameCenterGroup: GameCenterGroup { + GameCenterGroup(path: path + "/gameCenterGroup") + } + + public struct GameCenterGroup { + /// Path: `/v1/gameCenterDetails/{id}/relationships/gameCenterGroup` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboardSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboardSets.swift new file mode 100644 index 00000000..f144f40c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboardSets.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets { + GameCenterLeaderboardSets(path: path + "/gameCenterLeaderboardSets") + } + + public struct GameCenterLeaderboardSets { + /// Path: `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterDetails-gameCenterLeaderboardSets-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterDetails-gameCenterLeaderboardSets-replace_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift new file mode 100644 index 00000000..49e1d57d --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboards` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterDetails-gameCenterLeaderboards-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterDetailGameCenterLeaderboardsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterDetails-gameCenterLeaderboards-replace_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift new file mode 100644 index 00000000..4e0bd296 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var leaderboardReleases: LeaderboardReleases { + LeaderboardReleases(path: path + "/leaderboardReleases") + } + + public struct LeaderboardReleases { + /// Path: `/v1/gameCenterDetails/{id}/relationships/leaderboardReleases` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardSetReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardSetReleases.swift new file mode 100644 index 00000000..bf7aee53 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardSetReleases.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterDetails.WithID.Relationships { + public var leaderboardSetReleases: LeaderboardSetReleases { + LeaderboardSetReleases(path: path + "/leaderboardSetReleases") + } + + public struct LeaderboardSetReleases { + /// Path: `/v1/gameCenterDetails/{id}/relationships/leaderboardSetReleases` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersions.swift index 827d494c..5e615c07 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithID.swift index e773bc94..4c623369 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift index 4d8ea155..9e94806c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,9 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID { /// Path: `/v1/gameCenterEnabledVersions/{id}/compatibleVersions` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterEnabledVersions-compatibleVersions-get_to_many_related") } public struct GetParameters { @@ -54,6 +53,7 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -73,6 +73,7 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationships.swift index f3a94615..a624ef66 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift index 8ebc9168..79858094 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,9 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID.Relationships { /// Path: `/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterEnabledVersions-compatibleVersions-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -25,16 +24,19 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID.Relationships { return encoder.items } + @available(*, deprecated, message: "Deprecated") public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "gameCenterEnabledVersions-compatibleVersions-create_to_many_relationship") } + @available(*, deprecated, message: "Deprecated") public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "gameCenterEnabledVersions-compatibleVersions-replace_to_many_relationship") } + @available(*, deprecated, message: "Deprecated") public func delete(_ body: AppStoreConnect_Swift_SDK.GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "gameCenterEnabledVersions-compatibleVersions-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift new file mode 100644 index 00000000..8e45a5dd --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift @@ -0,0 +1,147 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterGroups: GameCenterGroups { + GameCenterGroups(path: path + "/gameCenterGroups") + } + + public struct GameCenterGroups { + /// Path: `/v1/gameCenterGroups` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterGroups-get_collection") + } + + public struct GetParameters { + public var filterGameCenterDetails: [String]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var limit: Int? + public var include: [Include]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limitGameCenterAchievements: Int? + public var limitGameCenterDetails: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitGameCenterLeaderboards: Int? + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public init(filterGameCenterDetails: [String]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limitGameCenterAchievements: Int? = nil, limitGameCenterDetails: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitGameCenterLeaderboards: Int? = nil) { + self.filterGameCenterDetails = filterGameCenterDetails + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.limit = limit + self.include = include + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limitGameCenterAchievements = limitGameCenterAchievements + self.limitGameCenterDetails = limitGameCenterDetails + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterGameCenterDetails, forKey: "filter[gameCenterDetails]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limitGameCenterAchievements, forKey: "limit[gameCenterAchievements]") + encoder.encode(limitGameCenterDetails, forKey: "limit[gameCenterDetails]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + return encoder.items + } + } + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterGroupCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterGroups-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift new file mode 100644 index 00000000..a29d4508 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift @@ -0,0 +1,145 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterGroups/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterGroups-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var include: [Include]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limitGameCenterAchievements: Int? + public var limitGameCenterDetails: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitGameCenterLeaderboards: Int? + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public init(fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limitGameCenterAchievements: Int? = nil, limitGameCenterDetails: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitGameCenterLeaderboards: Int? = nil) { + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.include = include + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limitGameCenterAchievements = limitGameCenterAchievements + self.limitGameCenterDetails = limitGameCenterDetails + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limitGameCenterAchievements, forKey: "limit[gameCenterAchievements]") + encoder.encode(limitGameCenterDetails, forKey: "limit[gameCenterDetails]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterGroupUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterGroups-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterGroups-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift new file mode 100644 index 00000000..874fb842 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift @@ -0,0 +1,128 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID { + public var gameCenterAchievements: GameCenterAchievements { + GameCenterAchievements(path: path + "/gameCenterAchievements") + } + + public struct GameCenterAchievements { + /// Path: `/v1/gameCenterGroups/{id}/gameCenterAchievements` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterGroups-gameCenterAchievements-get_to_many_related") + } + + public struct GetParameters { + public var filterArchived: [String]? + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var limit: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterAchievementLocalizations: String, Codable, CaseIterable { + case afterEarnedDescription + case beforeEarnedDescription + case gameCenterAchievement + case gameCenterAchievementImage + case locale + case name + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case releases + } + + public init(filterArchived: [String]? = nil, filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterAchievementLocalizations: [FieldsGameCenterAchievementLocalizations]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, limit: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterArchived = filterArchived + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterAchievementLocalizations = fieldsGameCenterAchievementLocalizations + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.limit = limit + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterArchived, forKey: "filter[archived]") + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterAchievementLocalizations, forKey: "fields[gameCenterAchievementLocalizations]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift new file mode 100644 index 00000000..3c3d6e56 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift @@ -0,0 +1,245 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID { + public var gameCenterDetails: GameCenterDetails { + GameCenterDetails(path: path + "/gameCenterDetails") + } + + public struct GameCenterDetails { + /// Path: `/v1/gameCenterGroups/{id}/gameCenterDetails` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterGroups-gameCenterDetails-get_to_many_related") + } + + public struct GetParameters { + public var filterGameCenterAppVersionsEnabled: [String]? + public var fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? + public var fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? + public var fieldsApps: [FieldsApps]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limit: Int? + public var limitGameCenterAppVersions: Int? + public var limitGameCenterLeaderboards: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitGameCenterAchievements: Int? + public var limitAchievementReleases: Int? + public var limitLeaderboardReleases: Int? + public var limitLeaderboardSetReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterAchievementReleases: String, Codable, CaseIterable { + case gameCenterAchievement + case gameCenterDetail + case live + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterAppVersions: String, Codable, CaseIterable { + case appStoreVersion + case compatibilityVersions + case enabled + } + + public enum FieldsGameCenterAchievements: String, Codable, CaseIterable { + case archived + case gameCenterDetail + case gameCenterGroup + case groupAchievement + case localizations + case points + case referenceName + case releases + case repeatable + case showBeforeEarned + case vendorIdentifier + } + + public enum FieldsApps: String, Codable, CaseIterable { + case appAvailability + case appClips + case appCustomProductPages + case appEncryptionDeclarations + case appEvents + case appInfos + case appPricePoints + case appPriceSchedule + case appStoreVersionExperimentsV2 + case appStoreVersions + case availableInNewTerritories + case availableTerritories + case betaAppLocalizations + case betaAppReviewDetail + case betaGroups + case betaLicenseAgreement + case betaTesters + case builds + case bundleID = "bundleId" + case ciProduct + case contentRightsDeclaration + case customerReviews + case endUserLicenseAgreement + case gameCenterDetail + case gameCenterEnabledVersions + case inAppPurchases + case inAppPurchasesV2 + case isOrEverWasMadeForKids + case name + case perfPowerMetrics + case preOrder + case preReleaseVersions + case pricePoints + case prices + case primaryLocale + case promotedPurchases + case reviewSubmissions + case sku + case subscriptionGracePeriod + case subscriptionGroups + case subscriptionStatusURL = "subscriptionStatusUrl" + case subscriptionStatusURLForSandbox = "subscriptionStatusUrlForSandbox" + case subscriptionStatusURLVersion = "subscriptionStatusUrlVersion" + case subscriptionStatusURLVersionForSandbox = "subscriptionStatusUrlVersionForSandbox" + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case achievementReleases + case app + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public init(filterGameCenterAppVersionsEnabled: [String]? = nil, fieldsGameCenterAchievementReleases: [FieldsGameCenterAchievementReleases]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterAppVersions: [FieldsGameCenterAppVersions]? = nil, fieldsGameCenterAchievements: [FieldsGameCenterAchievements]? = nil, fieldsApps: [FieldsApps]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limit: Int? = nil, limitGameCenterAppVersions: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitGameCenterAchievements: Int? = nil, limitAchievementReleases: Int? = nil, limitLeaderboardReleases: Int? = nil, limitLeaderboardSetReleases: Int? = nil, include: [Include]? = nil) { + self.filterGameCenterAppVersionsEnabled = filterGameCenterAppVersionsEnabled + self.fieldsGameCenterAchievementReleases = fieldsGameCenterAchievementReleases + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterAppVersions = fieldsGameCenterAppVersions + self.fieldsGameCenterAchievements = fieldsGameCenterAchievements + self.fieldsApps = fieldsApps + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limit = limit + self.limitGameCenterAppVersions = limitGameCenterAppVersions + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitGameCenterAchievements = limitGameCenterAchievements + self.limitAchievementReleases = limitAchievementReleases + self.limitLeaderboardReleases = limitLeaderboardReleases + self.limitLeaderboardSetReleases = limitLeaderboardSetReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterGameCenterAppVersionsEnabled, forKey: "filter[gameCenterAppVersions.enabled]") + encoder.encode(fieldsGameCenterAchievementReleases, forKey: "fields[gameCenterAchievementReleases]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterAppVersions, forKey: "fields[gameCenterAppVersions]") + encoder.encode(fieldsGameCenterAchievements, forKey: "fields[gameCenterAchievements]") + encoder.encode(fieldsApps, forKey: "fields[apps]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitGameCenterAppVersions, forKey: "limit[gameCenterAppVersions]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitGameCenterAchievements, forKey: "limit[gameCenterAchievements]") + encoder.encode(limitAchievementReleases, forKey: "limit[achievementReleases]") + encoder.encode(limitLeaderboardReleases, forKey: "limit[leaderboardReleases]") + encoder.encode(limitLeaderboardSetReleases, forKey: "limit[leaderboardSetReleases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboardSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboardSets.swift new file mode 100644 index 00000000..0233ea26 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboardSets.swift @@ -0,0 +1,147 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID { + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets { + GameCenterLeaderboardSets(path: path + "/gameCenterLeaderboardSets") + } + + public struct GameCenterLeaderboardSets { + /// Path: `/v1/gameCenterGroups/{id}/gameCenterLeaderboardSets` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterGroups-gameCenterLeaderboardSets-get_to_many_related") + } + + public struct GetParameters { + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var limit: Int? + public var limitLocalizations: Int? + public var limitGameCenterLeaderboards: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case releases + } + + public init(filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, limit: Int? = nil, limitLocalizations: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.limit = limit + self.limitLocalizations = limitLocalizations + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboards.swift new file mode 100644 index 00000000..1998aede --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboards.swift @@ -0,0 +1,153 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterGroups/{id}/gameCenterLeaderboards` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterGroups-gameCenterLeaderboards-get_to_many_related") + } + + public struct GetParameters { + public var filterArchived: [String]? + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limit: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case releases + } + + public init(filterArchived: [String]? = nil, filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limit: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterArchived = filterArchived + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limit = limit + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterArchived, forKey: "filter[archived]") + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationships.swift new file mode 100644 index 00000000..5e81de12 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterGroups/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterAchievements.swift new file mode 100644 index 00000000..be33f246 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterAchievements.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID.Relationships { + public var gameCenterAchievements: GameCenterAchievements { + GameCenterAchievements(path: path + "/gameCenterAchievements") + } + + public struct GameCenterAchievements { + /// Path: `/v1/gameCenterGroups/{id}/relationships/gameCenterAchievements` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterGroups-gameCenterAchievements-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterGroupGameCenterAchievementsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterGroups-gameCenterAchievements-replace_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift new file mode 100644 index 00000000..f11b844c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID.Relationships { + public var gameCenterDetails: GameCenterDetails { + GameCenterDetails(path: path + "/gameCenterDetails") + } + + public struct GameCenterDetails { + /// Path: `/v1/gameCenterGroups/{id}/relationships/gameCenterDetails` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboardSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboardSets.swift new file mode 100644 index 00000000..d8f6809e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboardSets.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID.Relationships { + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets { + GameCenterLeaderboardSets(path: path + "/gameCenterLeaderboardSets") + } + + public struct GameCenterLeaderboardSets { + /// Path: `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterGroups-gameCenterLeaderboardSets-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterGroups-gameCenterLeaderboardSets-replace_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift new file mode 100644 index 00000000..738fad24 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift @@ -0,0 +1,30 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterGroups.WithID.Relationships { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboards` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterGroups-gameCenterLeaderboards-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterGroupGameCenterLeaderboardsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterGroups-gameCenterLeaderboards-replace_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift new file mode 100644 index 00000000..266a3eca --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardImages: GameCenterLeaderboardImages { + GameCenterLeaderboardImages(path: path + "/gameCenterLeaderboardImages") + } + + public struct GameCenterLeaderboardImages { + /// Path: `/v1/gameCenterLeaderboardImages` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardImageCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardImages-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift new file mode 100644 index 00000000..d37074cd --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift @@ -0,0 +1,49 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardImages { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardImages/{id}` + public let path: String + + public func get(fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsGameCenterLeaderboardImages, include), id: "gameCenterLeaderboardImages-get_instance") + } + + private func makeGetQuery(_ fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardImages, forKey: "fields[gameCenterLeaderboardImages]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsGameCenterLeaderboardImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalization + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardImageUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardImages-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardImages-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift new file mode 100644 index 00000000..8d213bb2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardLocalizations: GameCenterLeaderboardLocalizations { + GameCenterLeaderboardLocalizations(path: path + "/gameCenterLeaderboardLocalizations") + } + + public struct GameCenterLeaderboardLocalizations { + /// Path: `/v1/gameCenterLeaderboardLocalizations` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardLocalizationCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardLocalizations-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift new file mode 100644 index 00000000..9eff879a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift @@ -0,0 +1,73 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardLocalizations { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardLocalizations/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardLocalizations-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var include: [Include]? + public var fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboard + case gameCenterLeaderboardImage + } + + public enum FieldsGameCenterLeaderboardImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public init(fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? = nil) { + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.include = include + self.fieldsGameCenterLeaderboardImages = fieldsGameCenterLeaderboardImages + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardImages, forKey: "fields[gameCenterLeaderboardImages]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardLocalizationUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardLocalizations-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardLocalizations-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift new file mode 100644 index 00000000..8d8665a2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift @@ -0,0 +1,64 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardLocalizations.WithID { + public var gameCenterLeaderboardImage: GameCenterLeaderboardImage { + GameCenterLeaderboardImage(path: path + "/gameCenterLeaderboardImage") + } + + public struct GameCenterLeaderboardImage { + /// Path: `/v1/gameCenterLeaderboardLocalizations/{id}/gameCenterLeaderboardImage` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardLocalizations-gameCenterLeaderboardImage-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboardLocalization + } + + public init(fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? = nil, fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardImages = fieldsGameCenterLeaderboardImages + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardImages, forKey: "fields[gameCenterLeaderboardImages]") + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationships.swift new file mode 100644 index 00000000..68e12187 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardLocalizations.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterLeaderboardLocalizations/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationshipsGameCenterLeaderboardImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationshipsGameCenterLeaderboardImage.swift new file mode 100644 index 00000000..3ad8ee20 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationshipsGameCenterLeaderboardImage.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardLocalizations.WithID.Relationships { + public var gameCenterLeaderboardImage: GameCenterLeaderboardImage { + GameCenterLeaderboardImage(path: path + "/gameCenterLeaderboardImage") + } + + public struct GameCenterLeaderboardImage { + /// Path: `/v1/gameCenterLeaderboardLocalizations/{id}/relationships/gameCenterLeaderboardImage` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleases.swift new file mode 100644 index 00000000..4cdb0f42 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleases.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardReleases: GameCenterLeaderboardReleases { + GameCenterLeaderboardReleases(path: path + "/gameCenterLeaderboardReleases") + } + + public struct GameCenterLeaderboardReleases { + /// Path: `/v1/gameCenterLeaderboardReleases` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardReleaseCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardReleases-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift new file mode 100644 index 00000000..ae9573aa --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift @@ -0,0 +1,42 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardReleases { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardReleases/{id}` + public let path: String + + public func get(fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsGameCenterLeaderboardReleases, include), id: "gameCenterLeaderboardReleases-get_instance") + } + + private func makeGetQuery(_ fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardReleases-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift new file mode 100644 index 00000000..a9537bc3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardSetImages: GameCenterLeaderboardSetImages { + GameCenterLeaderboardSetImages(path: path + "/gameCenterLeaderboardSetImages") + } + + public struct GameCenterLeaderboardSetImages { + /// Path: `/v1/gameCenterLeaderboardSetImages` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetImageCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardSetImages-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift new file mode 100644 index 00000000..53cd2e30 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift @@ -0,0 +1,49 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetImages { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardSetImages/{id}` + public let path: String + + public func get(fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsGameCenterLeaderboardSetImages, include), id: "gameCenterLeaderboardSetImages-get_instance") + } + + private func makeGetQuery(_ fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetImages, forKey: "fields[gameCenterLeaderboardSetImages]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsGameCenterLeaderboardSetImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardSetLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalization + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetImageUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardSetImages-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardSetImages-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift new file mode 100644 index 00000000..ef5fd68a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardSetLocalizations: GameCenterLeaderboardSetLocalizations { + GameCenterLeaderboardSetLocalizations(path: path + "/gameCenterLeaderboardSetLocalizations") + } + + public struct GameCenterLeaderboardSetLocalizations { + /// Path: `/v1/gameCenterLeaderboardSetLocalizations` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetLocalizationCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardSetLocalizations-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift new file mode 100644 index 00000000..4003cdb4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift @@ -0,0 +1,70 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetLocalizations { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardSetLocalizations/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSetLocalizations-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var include: [Include]? + public var fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + } + + public enum FieldsGameCenterLeaderboardSetImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardSetLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public init(fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? = nil) { + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.include = include + self.fieldsGameCenterLeaderboardSetImages = fieldsGameCenterLeaderboardSetImages + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardSetImages, forKey: "fields[gameCenterLeaderboardSetImages]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetLocalizationUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardSetLocalizations-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardSetLocalizations-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift new file mode 100644 index 00000000..7d8669cf --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift @@ -0,0 +1,61 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetLocalizations.WithID { + public var gameCenterLeaderboardSetImage: GameCenterLeaderboardSetImage { + GameCenterLeaderboardSetImage(path: path + "/gameCenterLeaderboardSetImage") + } + + public struct GameCenterLeaderboardSetImage { + /// Path: `/v1/gameCenterLeaderboardSetLocalizations/{id}/gameCenterLeaderboardSetImage` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSetLocalizations-gameCenterLeaderboardSetImage-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSetImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardSetLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboardSetLocalization + } + + public init(fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSetImages = fieldsGameCenterLeaderboardSetImages + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSetImages, forKey: "fields[gameCenterLeaderboardSetImages]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationships.swift new file mode 100644 index 00000000..c4cc5927 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetLocalizations.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterLeaderboardSetLocalizations/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationshipsGameCenterLeaderboardSetImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationshipsGameCenterLeaderboardSetImage.swift new file mode 100644 index 00000000..048149b0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationshipsGameCenterLeaderboardSetImage.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetLocalizations.WithID.Relationships { + public var gameCenterLeaderboardSetImage: GameCenterLeaderboardSetImage { + GameCenterLeaderboardSetImage(path: path + "/gameCenterLeaderboardSetImage") + } + + public struct GameCenterLeaderboardSetImage { + /// Path: `/v1/gameCenterLeaderboardSetLocalizations/{id}/relationships/gameCenterLeaderboardSetImage` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizations.swift new file mode 100644 index 00000000..c8fe3bc4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizations.swift @@ -0,0 +1,99 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardSetMemberLocalizations: GameCenterLeaderboardSetMemberLocalizations { + GameCenterLeaderboardSetMemberLocalizations(path: path + "/gameCenterLeaderboardSetMemberLocalizations") + } + + public struct GameCenterLeaderboardSetMemberLocalizations { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations` + public let path: String + + public func get(parameters: GetParameters) -> Request { + Request(path: path, method: "GET", query: parameters.asQuery, id: "gameCenterLeaderboardSetMemberLocalizations-get_collection") + } + + public struct GetParameters { + public var filterGameCenterLeaderboard: [String] + public var filterGameCenterLeaderboardSet: [String] + public var fieldsGameCenterLeaderboardSetMemberLocalizations: [FieldsGameCenterLeaderboardSetMemberLocalizations]? + public var limit: Int? + public var include: [Include]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + + public enum FieldsGameCenterLeaderboardSetMemberLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboard + case gameCenterLeaderboardSet + case locale + case name + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboard + case gameCenterLeaderboardSet + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public init(filterGameCenterLeaderboard: [String], filterGameCenterLeaderboardSet: [String], fieldsGameCenterLeaderboardSetMemberLocalizations: [FieldsGameCenterLeaderboardSetMemberLocalizations]? = nil, limit: Int? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil) { + self.filterGameCenterLeaderboard = filterGameCenterLeaderboard + self.filterGameCenterLeaderboardSet = filterGameCenterLeaderboardSet + self.fieldsGameCenterLeaderboardSetMemberLocalizations = fieldsGameCenterLeaderboardSetMemberLocalizations + self.limit = limit + self.include = include + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterGameCenterLeaderboard, forKey: "filter[gameCenterLeaderboard]") + encoder.encode(filterGameCenterLeaderboardSet, forKey: "filter[gameCenterLeaderboardSet]") + encoder.encode(fieldsGameCenterLeaderboardSetMemberLocalizations, forKey: "fields[gameCenterLeaderboardSetMemberLocalizations]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + return encoder.items + } + } + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetMemberLocalizationCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardSetMemberLocalizations-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift new file mode 100644 index 00000000..4500f64f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift @@ -0,0 +1,24 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetMemberLocalizations { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}` + public let path: String + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetMemberLocalizationUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardSetMemberLocalizations-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardSetMemberLocalizations-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift new file mode 100644 index 00000000..954c2207 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift @@ -0,0 +1,141 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetMemberLocalizations.WithID { + public var gameCenterLeaderboard: GameCenterLeaderboard { + GameCenterLeaderboard(path: path + "/gameCenterLeaderboard") + } + + public struct GameCenterLeaderboard { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboard` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSetMemberLocalizations-gameCenterLeaderboard-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limitGameCenterLeaderboardSets: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case releases + } + + public init(fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboardSet.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboardSet.swift new file mode 100644 index 00000000..c312af3b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboardSet.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetMemberLocalizations.WithID { + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet { + GameCenterLeaderboardSet(path: path + "/gameCenterLeaderboardSet") + } + + public struct GameCenterLeaderboardSet { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboardSet` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSetMemberLocalizations-gameCenterLeaderboardSet-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var limitLocalizations: Int? + public var limitGameCenterLeaderboards: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case releases + } + + public init(fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, limitLocalizations: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.limitLocalizations = limitLocalizations + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationships.swift new file mode 100644 index 00000000..ffd3b6d0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetMemberLocalizations.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboard.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboard.swift new file mode 100644 index 00000000..7f6ce7e6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboard.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetMemberLocalizations.WithID.Relationships { + public var gameCenterLeaderboard: GameCenterLeaderboard { + GameCenterLeaderboard(path: path + "/gameCenterLeaderboard") + } + + public struct GameCenterLeaderboard { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboard` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboardSet.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboardSet.swift new file mode 100644 index 00000000..274fb676 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboardSet.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetMemberLocalizations.WithID.Relationships { + public var gameCenterLeaderboardSet: GameCenterLeaderboardSet { + GameCenterLeaderboardSet(path: path + "/gameCenterLeaderboardSet") + } + + public struct GameCenterLeaderboardSet { + /// Path: `/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboardSet` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleases.swift new file mode 100644 index 00000000..beaa8454 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleases.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardSetReleases: GameCenterLeaderboardSetReleases { + GameCenterLeaderboardSetReleases(path: path + "/gameCenterLeaderboardSetReleases") + } + + public struct GameCenterLeaderboardSetReleases { + /// Path: `/v1/gameCenterLeaderboardSetReleases` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetReleaseCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardSetReleases-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift new file mode 100644 index 00000000..ff8cc18b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift @@ -0,0 +1,42 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSetReleases { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardSetReleases/{id}` + public let path: String + + public func get(fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsGameCenterLeaderboardSetReleases, include), id: "gameCenterLeaderboardSetReleases-get_instance") + } + + private func makeGetQuery(_ fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardSetReleases-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift new file mode 100644 index 00000000..5af2e2db --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboardSets: GameCenterLeaderboardSets { + GameCenterLeaderboardSets(path: path + "/gameCenterLeaderboardSets") + } + + public struct GameCenterLeaderboardSets { + /// Path: `/v1/gameCenterLeaderboardSets` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardSets-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift new file mode 100644 index 00000000..4feca32e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift @@ -0,0 +1,116 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboardSets/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSets-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var include: [Include]? + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var limitGameCenterLeaderboards: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case releases + } + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public init(fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, limitGameCenterLeaderboards: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil) { + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.include = include + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardSets-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboardSets-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift new file mode 100644 index 00000000..2f770000 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift @@ -0,0 +1,153 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSets-gameCenterLeaderboards-get_to_many_related") + } + + public struct GetParameters { + public var filterArchived: [String]? + public var filterReferenceName: [String]? + public var filterID: [String]? + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limit: Int? + public var limitGameCenterLeaderboardSets: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case releases + } + + public init(filterArchived: [String]? = nil, filterReferenceName: [String]? = nil, filterID: [String]? = nil, fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limit: Int? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.filterArchived = filterArchived + self.filterReferenceName = filterReferenceName + self.filterID = filterID + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limit = limit + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterArchived, forKey: "filter[archived]") + encoder.encode(filterReferenceName, forKey: "filter[referenceName]") + encoder.encode(filterID, forKey: "filter[id]") + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limit, forKey: "limit") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGroupLeaderboardSet.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGroupLeaderboardSet.swift new file mode 100644 index 00000000..717d45ca --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGroupLeaderboardSet.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID { + public var groupLeaderboardSet: GroupLeaderboardSet { + GroupLeaderboardSet(path: path + "/groupLeaderboardSet") + } + + public struct GroupLeaderboardSet { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/groupLeaderboardSet` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSets-groupLeaderboardSet-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var limitLocalizations: Int? + public var limitGameCenterLeaderboards: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case releases + } + + public init(fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, limitLocalizations: Int? = nil, limitGameCenterLeaderboards: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.limitLocalizations = limitLocalizations + self.limitGameCenterLeaderboards = limitGameCenterLeaderboards + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitGameCenterLeaderboards, forKey: "limit[gameCenterLeaderboards]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDLocalizations.swift new file mode 100644 index 00000000..fa090bd1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDLocalizations.swift @@ -0,0 +1,79 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID { + public var localizations: Localizations { + Localizations(path: path + "/localizations") + } + + public struct Localizations { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/localizations` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSets-localizations-get_to_many_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetLocalizations: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardSetImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardSetLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboardSet + case gameCenterLeaderboardSetImage + } + + public init(fieldsGameCenterLeaderboardSetLocalizations: [FieldsGameCenterLeaderboardSetLocalizations]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterLeaderboardSetImages: [FieldsGameCenterLeaderboardSetImages]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardSetLocalizations = fieldsGameCenterLeaderboardSetLocalizations + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterLeaderboardSetImages = fieldsGameCenterLeaderboardSetImages + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardSetLocalizations, forKey: "fields[gameCenterLeaderboardSetLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterLeaderboardSetImages, forKey: "fields[gameCenterLeaderboardSetImages]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationships.swift new file mode 100644 index 00000000..090b24e8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGameCenterLeaderboards.swift new file mode 100644 index 00000000..ce5deaf8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGameCenterLeaderboards.swift @@ -0,0 +1,38 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID.Relationships { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards` + public let path: String + + public func get(limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "gameCenterLeaderboardSets-gameCenterLeaderboards-get_to_many_relationship") + } + + private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { + let encoder = URLQueryEncoder() + encoder.encode(limit, forKey: "limit") + return encoder.items + } + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboardSets-gameCenterLeaderboards-create_to_many_relationship") + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardSets-gameCenterLeaderboards-replace_to_many_relationship") + } + + public func delete(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest) -> Request { + Request(path: path, method: "DELETE", body: body, id: "gameCenterLeaderboardSets-gameCenterLeaderboards-delete_to_many_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift new file mode 100644 index 00000000..f640bd15 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift @@ -0,0 +1,24 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID.Relationships { + public var groupLeaderboardSet: GroupLeaderboardSet { + GroupLeaderboardSet(path: path + "/groupLeaderboardSet") + } + + public struct GroupLeaderboardSet { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet` + public let path: String + + public var get: Request { + Request(path: path, method: "GET", id: "gameCenterLeaderboardSets-groupLeaderboardSet-get_to_one_relationship") + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboardSets-groupLeaderboardSet-update_to_one_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift new file mode 100644 index 00000000..a846f31b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID.Relationships { + public var localizations: Localizations { + Localizations(path: path + "/localizations") + } + + public struct Localizations { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/relationships/localizations` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsReleases.swift new file mode 100644 index 00000000..68a44f86 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsReleases.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID.Relationships { + public var releases: Releases { + Releases(path: path + "/releases") + } + + public struct Releases { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/relationships/releases` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDReleases.swift new file mode 100644 index 00000000..4757f007 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDReleases.swift @@ -0,0 +1,90 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboardSets.WithID { + public var releases: Releases { + Releases(path: path + "/releases") + } + + public struct Releases { + /// Path: `/v1/gameCenterLeaderboardSets/{id}/releases` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboardSets-releases-get_to_many_related") + } + + public struct GetParameters { + public var filterLive: [String]? + public var filterGameCenterDetail: [String]? + public var fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardSetReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + case live + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboardSet + } + + public init(filterLive: [String]? = nil, filterGameCenterDetail: [String]? = nil, fieldsGameCenterLeaderboardSetReleases: [FieldsGameCenterLeaderboardSetReleases]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.filterLive = filterLive + self.filterGameCenterDetail = filterGameCenterDetail + self.fieldsGameCenterLeaderboardSetReleases = fieldsGameCenterLeaderboardSetReleases + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLive, forKey: "filter[live]") + encoder.encode(filterGameCenterDetail, forKey: "filter[gameCenterDetail]") + encoder.encode(fieldsGameCenterLeaderboardSetReleases, forKey: "fields[gameCenterLeaderboardSetReleases]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboards.swift new file mode 100644 index 00000000..27140555 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboards.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var gameCenterLeaderboards: GameCenterLeaderboards { + GameCenterLeaderboards(path: path + "/gameCenterLeaderboards") + } + + public struct GameCenterLeaderboards { + /// Path: `/v1/gameCenterLeaderboards` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardCreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "gameCenterLeaderboards-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift new file mode 100644 index 00000000..7fb5416c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift @@ -0,0 +1,105 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/gameCenterLeaderboards/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboards-get_instance") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var include: [Include]? + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limitGameCenterLeaderboardSets: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case releases + } + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public init(fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, include: [Include]? = nil, fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil) { + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.include = include + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + return encoder.items + } + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboards-update_instance") + } + + public var delete: Request { + Request(path: path, method: "DELETE", id: "gameCenterLeaderboards-delete_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift new file mode 100644 index 00000000..8a8870c5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift @@ -0,0 +1,141 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID { + public var groupLeaderboard: GroupLeaderboard { + GroupLeaderboard(path: path + "/groupLeaderboard") + } + + public struct GroupLeaderboard { + /// Path: `/v1/gameCenterLeaderboards/{id}/groupLeaderboard` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboards-groupLeaderboard-get_to_one_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? + public var fieldsGameCenterGroups: [FieldsGameCenterGroups]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limitGameCenterLeaderboardSets: Int? + public var limitLocalizations: Int? + public var limitReleases: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardSets: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboards + case groupLeaderboardSet + case localizations + case referenceName + case releases + case vendorIdentifier + } + + public enum FieldsGameCenterGroups: String, Codable, CaseIterable { + case gameCenterAchievements + case gameCenterDetails + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case referenceName + } + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case releases + } + + public init(fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardSets: [FieldsGameCenterLeaderboardSets]? = nil, fieldsGameCenterGroups: [FieldsGameCenterGroups]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limitGameCenterLeaderboardSets: Int? = nil, limitLocalizations: Int? = nil, limitReleases: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardSets = fieldsGameCenterLeaderboardSets + self.fieldsGameCenterGroups = fieldsGameCenterGroups + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limitGameCenterLeaderboardSets = limitGameCenterLeaderboardSets + self.limitLocalizations = limitLocalizations + self.limitReleases = limitReleases + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardSets, forKey: "fields[gameCenterLeaderboardSets]") + encoder.encode(fieldsGameCenterGroups, forKey: "fields[gameCenterGroups]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limitGameCenterLeaderboardSets, forKey: "limit[gameCenterLeaderboardSets]") + encoder.encode(limitLocalizations, forKey: "limit[localizations]") + encoder.encode(limitReleases, forKey: "limit[releases]") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDLocalizations.swift new file mode 100644 index 00000000..eaa70b17 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDLocalizations.swift @@ -0,0 +1,91 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID { + public var localizations: Localizations { + Localizations(path: path + "/localizations") + } + + public struct Localizations { + /// Path: `/v1/gameCenterLeaderboards/{id}/localizations` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboards-localizations-get_to_many_related") + } + + public struct GetParameters { + public var fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? + public var fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterLeaderboardLocalizations: String, Codable, CaseIterable { + case formatterOverride + case formatterSuffix + case formatterSuffixSingular + case gameCenterLeaderboard + case gameCenterLeaderboardImage + case locale + case name + } + + public enum FieldsGameCenterLeaderboardImages: String, Codable, CaseIterable { + case assetDeliveryState + case fileName + case fileSize + case gameCenterLeaderboardLocalization + case imageAsset + case uploadOperations + case uploaded + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterLeaderboard + case gameCenterLeaderboardImage + } + + public init(fieldsGameCenterLeaderboardLocalizations: [FieldsGameCenterLeaderboardLocalizations]? = nil, fieldsGameCenterLeaderboardImages: [FieldsGameCenterLeaderboardImages]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.fieldsGameCenterLeaderboardLocalizations = fieldsGameCenterLeaderboardLocalizations + self.fieldsGameCenterLeaderboardImages = fieldsGameCenterLeaderboardImages + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsGameCenterLeaderboardLocalizations, forKey: "fields[gameCenterLeaderboardLocalizations]") + encoder.encode(fieldsGameCenterLeaderboardImages, forKey: "fields[gameCenterLeaderboardImages]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationships.swift new file mode 100644 index 00000000..fad56ca3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v1/gameCenterLeaderboards/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsGroupLeaderboard.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsGroupLeaderboard.swift new file mode 100644 index 00000000..40d327d1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsGroupLeaderboard.swift @@ -0,0 +1,24 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID.Relationships { + public var groupLeaderboard: GroupLeaderboard { + GroupLeaderboard(path: path + "/groupLeaderboard") + } + + public struct GroupLeaderboard { + /// Path: `/v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard` + public let path: String + + public var get: Request { + Request(path: path, method: "GET", id: "gameCenterLeaderboards-groupLeaderboard-get_to_one_relationship") + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardGroupLeaderboardLinkageRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "gameCenterLeaderboards-groupLeaderboard-update_to_one_relationship") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift new file mode 100644 index 00000000..d87f0746 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID.Relationships { + public var localizations: Localizations { + Localizations(path: path + "/localizations") + } + + public struct Localizations { + /// Path: `/v1/gameCenterLeaderboards/{id}/relationships/localizations` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsReleases.swift new file mode 100644 index 00000000..93056961 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsReleases.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID.Relationships { + public var releases: Releases { + Releases(path: path + "/releases") + } + + public struct Releases { + /// Path: `/v1/gameCenterLeaderboards/{id}/relationships/releases` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDReleases.swift new file mode 100644 index 00000000..07c77725 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDReleases.swift @@ -0,0 +1,99 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.GameCenterLeaderboards.WithID { + public var releases: Releases { + Releases(path: path + "/releases") + } + + public struct Releases { + /// Path: `/v1/gameCenterLeaderboards/{id}/releases` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "gameCenterLeaderboards-releases-get_to_many_related") + } + + public struct GetParameters { + public var filterLive: [String]? + public var filterGameCenterDetail: [String]? + public var fieldsGameCenterDetails: [FieldsGameCenterDetails]? + public var fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? + public var fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsGameCenterDetails: String, Codable, CaseIterable { + case achievementReleases + case app + case arcadeEnabled + case challengeEnabled + case defaultGroupLeaderboard + case defaultLeaderboard + case gameCenterAchievements + case gameCenterAppVersions + case gameCenterGroup + case gameCenterLeaderboardSets + case gameCenterLeaderboards + case leaderboardReleases + case leaderboardSetReleases + } + + public enum FieldsGameCenterLeaderboards: String, Codable, CaseIterable { + case archived + case defaultFormatter + case gameCenterDetail + case gameCenterGroup + case gameCenterLeaderboardSets + case groupLeaderboard + case localizations + case recurrenceDuration + case recurrenceRule + case recurrenceStartDate + case referenceName + case releases + case scoreRangeEnd + case scoreRangeStart + case scoreSortType + case submissionType + case vendorIdentifier + } + + public enum FieldsGameCenterLeaderboardReleases: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + case live + } + + public enum Include: String, Codable, CaseIterable { + case gameCenterDetail + case gameCenterLeaderboard + } + + public init(filterLive: [String]? = nil, filterGameCenterDetail: [String]? = nil, fieldsGameCenterDetails: [FieldsGameCenterDetails]? = nil, fieldsGameCenterLeaderboards: [FieldsGameCenterLeaderboards]? = nil, fieldsGameCenterLeaderboardReleases: [FieldsGameCenterLeaderboardReleases]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.filterLive = filterLive + self.filterGameCenterDetail = filterGameCenterDetail + self.fieldsGameCenterDetails = fieldsGameCenterDetails + self.fieldsGameCenterLeaderboards = fieldsGameCenterLeaderboards + self.fieldsGameCenterLeaderboardReleases = fieldsGameCenterLeaderboardReleases + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(filterLive, forKey: "filter[live]") + encoder.encode(filterGameCenterDetail, forKey: "filter[gameCenterDetail]") + encoder.encode(fieldsGameCenterDetails, forKey: "fields[gameCenterDetails]") + encoder.encode(fieldsGameCenterLeaderboards, forKey: "fields[gameCenterLeaderboards]") + encoder.encode(fieldsGameCenterLeaderboardReleases, forKey: "fields[gameCenterLeaderboardReleases]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshots.swift index 76fd66cc..d8711b3a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseAppStoreReviewScreenshotCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "inAppPurchaseAppStoreReviewScreenshots-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshotsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshotsWithID.swift index 9f0f60d9..b9515814 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshotsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAppStoreReviewScreenshotsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchaseAppStoreReviewScreenshots { public let path: String public func get(fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsInAppPurchaseAppStoreReviewScreenshots, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsInAppPurchaseAppStoreReviewScreenshots, include), id: "inAppPurchaseAppStoreReviewScreenshots-get_instance") } private func makeGetQuery(_ fieldsInAppPurchaseAppStoreReviewScreenshots: [FieldsInAppPurchaseAppStoreReviewScreenshots]?, _ include: [Include]?) -> [(String, String?)] { @@ -44,11 +42,11 @@ extension APIEndpoint.V1.InAppPurchaseAppStoreReviewScreenshots { } public func patch(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseAppStoreReviewScreenshotUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "inAppPurchaseAppStoreReviewScreenshots-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "inAppPurchaseAppStoreReviewScreenshots-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilities.swift index cb57b79b..f11c9e57 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilities.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseAvailabilityCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "inAppPurchaseAvailabilities-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithID.swift index 18d6b494..4b1c36d9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchaseAvailabilities { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchaseAvailabilities-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDAvailableTerritories.swift index 66bd9b09..9b2280ca 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchaseAvailabilities.WithID { public let path: String public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories, limit), id: "inAppPurchaseAvailabilities-availableTerritories-get_to_many_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationships.swift index 23621c2a..11d6ce70 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationshipsAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationshipsAvailableTerritories.swift index 671e79ae..be81ebb1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationshipsAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseAvailabilitiesWithIDRelationshipsAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContents.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContents.swift index 0e744ce0..9bac149e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContents.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContents.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContentsWithID.swift index 7c7c4f96..9f87cedd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseContentsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchaseContents { public let path: String public func get(fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsInAppPurchaseContents, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsInAppPurchaseContents, include), id: "inAppPurchaseContents-get_instance") } private func makeGetQuery(_ fieldsInAppPurchaseContents: [FieldsInAppPurchaseContents]?, _ include: [Include]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizations.swift index 3e2229c8..8edef487 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "inAppPurchaseLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizationsWithID.swift index 92c68463..3539c692 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchaseLocalizations { public let path: String public func get(fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsInAppPurchaseLocalizations, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsInAppPurchaseLocalizations, include), id: "inAppPurchaseLocalizations-get_instance") } private func makeGetQuery(_ fieldsInAppPurchaseLocalizations: [FieldsInAppPurchaseLocalizations]?, _ include: [Include]?) -> [(String, String?)] { @@ -39,11 +37,11 @@ extension APIEndpoint.V1.InAppPurchaseLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "inAppPurchaseLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "inAppPurchaseLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedules.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedules.swift index f9cb744d..203f0c18 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedules.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedules.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.InAppPurchasePriceScheduleCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "inAppPurchasePriceSchedules-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithID.swift index 01c4a044..56dd55ac 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchasePriceSchedules { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasePriceSchedules-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDAutomaticPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDAutomaticPrices.swift index eb0196a1..57387b18 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDAutomaticPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDAutomaticPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchasePriceSchedules.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasePriceSchedules-automaticPrices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDBaseTerritory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDBaseTerritory.swift index cde21022..a9777df0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDBaseTerritory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDBaseTerritory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchasePriceSchedules.WithID { public let path: String public func get(fieldsTerritories: [FieldsTerritories]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories), id: "inAppPurchasePriceSchedules-baseTerritory-get_to_one_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDManualPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDManualPrices.swift index 99589f56..fb1a0466 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDManualPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDManualPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.InAppPurchasePriceSchedules.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasePriceSchedules-manualPrices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationships.swift index ef978e67..de1eac82 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsAutomaticPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsAutomaticPrices.swift index b27f3c30..e8d57345 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsAutomaticPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsAutomaticPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsBaseTerritory.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsBaseTerritory.swift index dfe878a1..535fc37e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsBaseTerritory.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsBaseTerritory.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsManualPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsManualPrices.swift index 84fd5878..61c32613 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsManualPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasePriceSchedulesWithIDRelationshipsManualPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseSubmissions.swift index d0c50bc8..5c819863 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchaseSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseSubmissionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "inAppPurchaseSubmissions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchases.swift index 92613b66..ea4a5349 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift index 6380e40f..43326dfc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,9 @@ extension APIEndpoint.V1.InAppPurchases { /// Path: `/v1/inAppPurchases/{id}` public let path: String + @available(*, deprecated, message: "Deprecated") public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchases-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift index 5059c113..211af22e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "preReleaseVersions-get_collection") } public struct GetParameters { @@ -69,6 +67,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -88,6 +87,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift index efde5525..d9772e72 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.PreReleaseVersions { /// Path: `/v1/preReleaseVersions/{id}` public let path: String - public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "preReleaseVersions-get_instance") } public struct GetParameters { @@ -42,6 +40,7 @@ extension APIEndpoint.V1.PreReleaseVersions { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -61,6 +60,7 @@ extension APIEndpoint.V1.PreReleaseVersions { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift index d7d1f5f7..e148c093 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { /// Path: `/v1/preReleaseVersions/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps)) + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps), id: "preReleaseVersions-app-get_to_one_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?) -> [(String, String?)] { @@ -29,6 +27,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +47,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDBuilds.swift index dfcbc3fe..47c96d4e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { /// Path: `/v1/preReleaseVersions/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBuilds, limit)) + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBuilds, limit), id: "preReleaseVersions-builds-get_to_many_related") } private func makeGetQuery(_ fieldsBuilds: [FieldsBuilds]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationships.swift index 74a9ba1a..6ba6419e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsApp.swift index 8fa0d4a3..5b41d9ba 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsApp.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsBuilds.swift index 8f378c67..e769050d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDRelationshipsBuilds.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Profiles.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Profiles.swift index 385c5289..e0226341 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Profiles.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Profiles.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "profiles-get_collection") } public struct GetParameters { @@ -154,7 +152,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.ProfileCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "profiles-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithID.swift index f77c1aa0..75ac5e4c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Profiles { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "profiles-get_instance") } public struct GetParameters { @@ -103,7 +101,7 @@ extension APIEndpoint.V1.Profiles { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "profiles-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift index 3fbf549d..e9d7696d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Profiles.WithID { /// Path: `/v1/profiles/{id}/bundleId` public let path: String - public func get(fieldsBundleIDs: [FieldsBundleIDs]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsBundleIDs)) + public func get(fieldsBundleIDs: [FieldsBundleIDs]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsBundleIDs), id: "profiles-bundleId-get_to_one_related") } private func makeGetQuery(_ fieldsBundleIDs: [FieldsBundleIDs]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift index 041ff72a..13bea3d4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Profiles.WithID { /// Path: `/v1/profiles/{id}/certificates` public let path: String - public func get(fieldsCertificates: [FieldsCertificates]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsCertificates, limit)) + public func get(fieldsCertificates: [FieldsCertificates]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsCertificates, limit), id: "profiles-certificates-get_to_many_related") } private func makeGetQuery(_ fieldsCertificates: [FieldsCertificates]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift index 28b04dd7..d022bf68 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Profiles.WithID { /// Path: `/v1/profiles/{id}/devices` public let path: String - public func get(fieldsDevices: [FieldsDevices]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsDevices, limit)) + public func get(fieldsDevices: [FieldsDevices]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsDevices, limit), id: "profiles-devices-get_to_many_related") } private func makeGetQuery(_ fieldsDevices: [FieldsDevices]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationships.swift index 9ddc86a0..ca23f076 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsBundleID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsBundleID.swift index 38188705..58dd9fe1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsBundleID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsBundleID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsCertificates.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsCertificates.swift index 08ce4c11..7f424f1b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsCertificates.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsCertificates.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsDevices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsDevices.swift index cd60f550..571d5b97 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsDevices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDRelationshipsDevices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImages.swift index 616d01e6..448ea598 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.PromotedPurchaseImageCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "promotedPurchaseImages-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImagesWithID.swift index ece2e9c2..521160fb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImagesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchaseImagesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.PromotedPurchaseImages { public let path: String public func get(fieldsPromotedPurchaseImages: [FieldsPromotedPurchaseImages]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsPromotedPurchaseImages, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsPromotedPurchaseImages, include), id: "promotedPurchaseImages-get_instance") } private func makeGetQuery(_ fieldsPromotedPurchaseImages: [FieldsPromotedPurchaseImages]?, _ include: [Include]?) -> [(String, String?)] { @@ -44,11 +42,11 @@ extension APIEndpoint.V1.PromotedPurchaseImages { } public func patch(_ body: AppStoreConnect_Swift_SDK.PromotedPurchaseImageUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "promotedPurchaseImages-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "promotedPurchaseImages-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchases.swift index 1214af8a..94987123 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.PromotedPurchaseCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "promotedPurchases-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithID.swift index e60d70ce..04989840 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.PromotedPurchases { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "promotedPurchases-get_instance") } public struct GetParameters { @@ -72,11 +70,11 @@ extension APIEndpoint.V1.PromotedPurchases { } public func patch(_ body: AppStoreConnect_Swift_SDK.PromotedPurchaseUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "promotedPurchases-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "promotedPurchases-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDPromotionImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDPromotionImages.swift index fb3534d6..085a2fc3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDPromotionImages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDPromotionImages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.PromotedPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "promotedPurchases-promotionImages-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationships.swift index b36a4dea..d1bbc90b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationshipsPromotionImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationshipsPromotionImages.swift index 75ca54ab..88e4fc33 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationshipsPromotionImages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PromotedPurchasesWithIDRelationshipsPromotionImages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItems.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItems.swift index 5f7594b3..3f4c7b00 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItems.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItems.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.ReviewSubmissionItemCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "reviewSubmissionItems-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItemsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItemsWithID.swift index 0d7fc700..2528a7f9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItemsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionItemsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.ReviewSubmissionItems { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.ReviewSubmissionItemUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "reviewSubmissionItems-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "reviewSubmissionItems-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift index b01873cc..e716ab80 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters) -> Request { - .get(path, query: parameters.asQuery) + Request(path: path, method: "GET", query: parameters.asQuery, id: "reviewSubmissions-get_collection") } public struct GetParameters { @@ -104,7 +102,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.ReviewSubmissionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "reviewSubmissions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift index 1e140388..d32330a8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ReviewSubmissions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "reviewSubmissions-get_instance") } public struct GetParameters { @@ -76,7 +74,7 @@ extension APIEndpoint.V1.ReviewSubmissions { } public func patch(_ body: AppStoreConnect_Swift_SDK.ReviewSubmissionUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "reviewSubmissions-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift index d469a667..edac0d40 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ReviewSubmissions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "reviewSubmissions-items-get_to_many_related") } public struct GetParameters { @@ -30,6 +28,7 @@ extension APIEndpoint.V1.ReviewSubmissions.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationships.swift index bde74312..4557f77b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationshipsItems.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationshipsItems.swift index 8a70f807..54fd6b62 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationshipsItems.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDRelationshipsItems.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoverages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoverages.swift index 35a3f008..927fa1f7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoverages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoverages.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.RoutingAppCoverageCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "routingAppCoverages-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoveragesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoveragesWithID.swift index 1878b92d..02fbd453 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoveragesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1RoutingAppCoveragesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.RoutingAppCoverages { public let path: String public func get(fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsRoutingAppCoverages, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsRoutingAppCoverages, include), id: "routingAppCoverages-get_instance") } private func makeGetQuery(_ fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]?, _ include: [Include]?) -> [(String, String?)] { @@ -41,11 +39,11 @@ extension APIEndpoint.V1.RoutingAppCoverages { } public func patch(_ body: AppStoreConnect_Swift_SDK.RoutingAppCoverageUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "routingAppCoverages-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "routingAppCoverages-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift index 942c3767..49e75ffb 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SalesReports.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters) -> Request { - .get(path, query: parameters.asQuery) + Request(path: path, method: "GET", query: parameters.asQuery, id: "salesReports-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferences.swift index d53be69d..fc39ac35 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferencesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferencesWithID.swift index 4f7b4df0..8c99c85c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferencesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmGitReferencesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmGitReferences { public let path: String public func get(fieldsScmGitReferences: [FieldsScmGitReferences]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsScmGitReferences, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsScmGitReferences, include), id: "scmGitReferences-get_instance") } private func makeGetQuery(_ fieldsScmGitReferences: [FieldsScmGitReferences]?, _ include: [Include]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProviders.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProviders.swift index 059a174f..1e2a3f9f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProviders.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProviders.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "scmProviders-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithID.swift index cd35d1d2..d0594673 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmProviders { public let path: String public func get(fieldsScmProviders: [FieldsScmProviders]? = nil, fieldsScmRepositories: [FieldsScmRepositories]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsScmProviders, fieldsScmRepositories)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsScmProviders, fieldsScmRepositories), id: "scmProviders-get_instance") } private func makeGetQuery(_ fieldsScmProviders: [FieldsScmProviders]?, _ fieldsScmRepositories: [FieldsScmRepositories]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationships.swift index 2fba68e1..4778a2e5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationshipsRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationshipsRepositories.swift index 64ab0c46..59bc1bb8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationshipsRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRelationshipsRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRepositories.swift index ea27dd57..cde2430d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmProvidersWithIDRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmProviders.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "scmProviders-repositories-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequests.swift index 302f706f..993c7319 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequests.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequests.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequestsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequestsWithID.swift index 8692c05a..78289bd8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequestsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmPullRequestsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmPullRequests { public let path: String public func get(fieldsScmPullRequests: [FieldsScmPullRequests]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsScmPullRequests, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsScmPullRequests, include), id: "scmPullRequests-get_instance") } private func makeGetQuery(_ fieldsScmPullRequests: [FieldsScmPullRequests]?, _ include: [Include]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositories.swift index 1be2cb72..20584087 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "scmRepositories-get_collection") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithID.swift index c1caf981..e6b05c7a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmRepositories { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "scmRepositories-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDGitReferences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDGitReferences.swift index d211a42d..411d5ec0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDGitReferences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDGitReferences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmRepositories.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "scmRepositories-gitReferences-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDPullRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDPullRequests.swift index 24c6f5ef..a0165b0a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDPullRequests.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDPullRequests.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.ScmRepositories.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "scmRepositories-pullRequests-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationships.swift index fa6f2402..4adf697b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsGitReferences.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsGitReferences.swift index 5e9f148d..0969e5da 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsGitReferences.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsGitReferences.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsPullRequests.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsPullRequests.swift index 8cf815f5..524d06a6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsPullRequests.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ScmRepositoriesWithIDRelationshipsPullRequests.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshots.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshots.swift index 7b22dc3b..544038a1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshots.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshots.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionAppStoreReviewScreenshotCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionAppStoreReviewScreenshots-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshotsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshotsWithID.swift index 0c540e6a..dc6e0122 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshotsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAppStoreReviewScreenshotsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionAppStoreReviewScreenshots { public let path: String public func get(fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionAppStoreReviewScreenshots, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionAppStoreReviewScreenshots, include), id: "subscriptionAppStoreReviewScreenshots-get_instance") } private func makeGetQuery(_ fieldsSubscriptionAppStoreReviewScreenshots: [FieldsSubscriptionAppStoreReviewScreenshots]?, _ include: [Include]?) -> [(String, String?)] { @@ -44,11 +42,11 @@ extension APIEndpoint.V1.SubscriptionAppStoreReviewScreenshots { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionAppStoreReviewScreenshotUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionAppStoreReviewScreenshots-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionAppStoreReviewScreenshots-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilities.swift index 0e038a23..b98ee4af 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilities.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionAvailabilityCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionAvailabilities-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithID.swift index 04a1f6b2..a2aab996 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionAvailabilities { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionAvailabilities-get_instance") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDAvailableTerritories.swift index b6c5d690..2abddd75 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionAvailabilities.WithID { public let path: String public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories, limit), id: "subscriptionAvailabilities-availableTerritories-get_to_many_related") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationships.swift index a45eee4b..9639ad62 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationshipsAvailableTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationshipsAvailableTerritories.swift index 1c822de4..a71946ec 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationshipsAvailableTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionAvailabilitiesWithIDRelationshipsAvailableTerritories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriods.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriods.swift index ddc1029e..d0b21110 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriods.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriods.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriodsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriodsWithID.swift index ae699e77..d5e663dc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriodsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGracePeriodsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionGracePeriods { public let path: String public func get(fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionGracePeriods)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionGracePeriods), id: "subscriptionGracePeriods-get_instance") } private func makeGetQuery(_ fieldsSubscriptionGracePeriods: [FieldsSubscriptionGracePeriods]?) -> [(String, String?)] { @@ -33,7 +31,7 @@ extension APIEndpoint.V1.SubscriptionGracePeriods { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionGracePeriodUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionGracePeriods-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizations.swift index bdee038e..95c759d0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionGroupLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionGroupLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizationsWithID.swift index 173234fd..cd2476af 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionGroupLocalizations { public let path: String public func get(fieldsSubscriptionGroupLocalizations: [FieldsSubscriptionGroupLocalizations]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionGroupLocalizations, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionGroupLocalizations, include), id: "subscriptionGroupLocalizations-get_instance") } private func makeGetQuery(_ fieldsSubscriptionGroupLocalizations: [FieldsSubscriptionGroupLocalizations]?, _ include: [Include]?) -> [(String, String?)] { @@ -39,11 +37,11 @@ extension APIEndpoint.V1.SubscriptionGroupLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionGroupLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionGroupLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionGroupLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupSubmissions.swift index feae1c08..2089e85f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionGroupSubmissionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionGroupSubmissions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroups.swift index a55c3d1f..607451a0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroups.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionGroupCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionGroups-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift index b1367432..c4f928f8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionGroups { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionGroups-get_instance") } public struct GetParameters { @@ -90,11 +88,11 @@ extension APIEndpoint.V1.SubscriptionGroups { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionGroupUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionGroups-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionGroups-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationships.swift index da4767c3..8facc757 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptionGroupLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptionGroupLocalizations.swift index 9a6d5f65..c7511646 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptionGroupLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptionGroupLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptions.swift index b38d7b68..f12b256e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDRelationshipsSubscriptions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptionGroupLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptionGroupLocalizations.swift index 86a99147..7d36d4db 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptionGroupLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptionGroupLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionGroups-subscriptionGroupLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift index 1dfb0245..d760c560 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionGroupsWithIDSubscriptions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionGroups.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionGroups-subscriptions-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffers.swift index b85aa69c..6ef0c0ba 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionIntroductoryOfferCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionIntroductoryOffers-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffersWithID.swift index 65261dc8..7af71912 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionIntroductoryOffersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,11 +14,11 @@ extension APIEndpoint.V1.SubscriptionIntroductoryOffers { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionIntroductoryOfferUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionIntroductoryOffers-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionIntroductoryOffers-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizations.swift index f0f7840e..4ec7618f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionLocalizationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionLocalizations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizationsWithID.swift index 15a4774f..8125da2d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionLocalizationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionLocalizations { public let path: String public func get(fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionLocalizations, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionLocalizations, include), id: "subscriptionLocalizations-get_instance") } private func makeGetQuery(_ fieldsSubscriptionLocalizations: [FieldsSubscriptionLocalizations]?, _ include: [Include]?) -> [(String, String?)] { @@ -39,11 +37,11 @@ extension APIEndpoint.V1.SubscriptionLocalizations { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionLocalizationUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionLocalizations-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionLocalizations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodes.swift index 32628d4f..dacce979 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionOfferCodeCustomCodeCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionOfferCodeCustomCodes-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodesWithID.swift index b480c2e2..717ada5b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeCustomCodesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodeCustomCodes { public let path: String public func get(fieldsSubscriptionOfferCodeCustomCodes: [FieldsSubscriptionOfferCodeCustomCodes]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionOfferCodeCustomCodes, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionOfferCodeCustomCodes, include), id: "subscriptionOfferCodeCustomCodes-get_instance") } private func makeGetQuery(_ fieldsSubscriptionOfferCodeCustomCodes: [FieldsSubscriptionOfferCodeCustomCodes]?, _ include: [Include]?) -> [(String, String?)] { @@ -40,7 +38,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodeCustomCodes { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionOfferCodeCustomCodeUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionOfferCodeCustomCodes-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodes.swift index f8623e75..89a6e975 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionOfferCodeOneTimeUseCodeCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionOfferCodeOneTimeUseCodes-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift index 586695e6..f0e3f314 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,45 +13,32 @@ extension APIEndpoint.V1.SubscriptionOfferCodeOneTimeUseCodes { /// Path: `/v1/subscriptionOfferCodeOneTimeUseCodes/{id}` public let path: String - public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + public func get(fieldsSubscriptionOfferCodeOneTimeUseCodes: [FieldsSubscriptionOfferCodeOneTimeUseCodes]? = nil, include: [Include]? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionOfferCodeOneTimeUseCodes, include), id: "subscriptionOfferCodeOneTimeUseCodes-get_instance") } - public struct GetParameters { - public var fieldsSubscriptionOfferCodeOneTimeUseCodes: [FieldsSubscriptionOfferCodeOneTimeUseCodes]? - public var include: [Include]? - public var fieldsSubscriptionOfferCodeOneTimeUseCodeValues: [String]? - - public enum FieldsSubscriptionOfferCodeOneTimeUseCodes: String, Codable, CaseIterable { - case active - case createdDate - case expirationDate - case numberOfCodes - case offerCode - case values - } - - public enum Include: String, Codable, CaseIterable { - case offerCode - } - - public init(fieldsSubscriptionOfferCodeOneTimeUseCodes: [FieldsSubscriptionOfferCodeOneTimeUseCodes]? = nil, include: [Include]? = nil, fieldsSubscriptionOfferCodeOneTimeUseCodeValues: [String]? = nil) { - self.fieldsSubscriptionOfferCodeOneTimeUseCodes = fieldsSubscriptionOfferCodeOneTimeUseCodes - self.include = include - self.fieldsSubscriptionOfferCodeOneTimeUseCodeValues = fieldsSubscriptionOfferCodeOneTimeUseCodeValues - } - - public var asQuery: [(String, String?)] { - let encoder = URLQueryEncoder(explode: false) - encoder.encode(fieldsSubscriptionOfferCodeOneTimeUseCodes, forKey: "fields[subscriptionOfferCodeOneTimeUseCodes]") - encoder.encode(include, forKey: "include") - encoder.encode(fieldsSubscriptionOfferCodeOneTimeUseCodeValues, forKey: "fields[subscriptionOfferCodeOneTimeUseCodeValues]") - return encoder.items - } + private func makeGetQuery(_ fieldsSubscriptionOfferCodeOneTimeUseCodes: [FieldsSubscriptionOfferCodeOneTimeUseCodes]?, _ include: [Include]?) -> [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsSubscriptionOfferCodeOneTimeUseCodes, forKey: "fields[subscriptionOfferCodeOneTimeUseCodes]") + encoder.encode(include, forKey: "include") + return encoder.items + } + + public enum FieldsSubscriptionOfferCodeOneTimeUseCodes: String, Codable, CaseIterable { + case active + case createdDate + case expirationDate + case numberOfCodes + case offerCode + case values + } + + public enum Include: String, Codable, CaseIterable { + case offerCode } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionOfferCodeOneTimeUseCodeUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionOfferCodeOneTimeUseCodes-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithIDValues.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithIDValues.swift index ade902aa..74b72501 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithIDValues.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithIDValues.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodeOneTimeUseCodes.WithID { public let path: String public var get: Request { - .get(path) + Request(path: path, method: "GET", id: "subscriptionOfferCodeOneTimeUseCodes-values-get_to_one_related") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodes.swift index f7158c8a..e71bf37c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionOfferCodeCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionOfferCodes-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithID.swift index b4c2e8f0..59284b3b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodes { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionOfferCodes-get_instance") } public struct GetParameters { @@ -100,7 +98,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodes { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionOfferCodeUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionOfferCodes-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDCustomCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDCustomCodes.swift index d74b703e..5141c9c0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDCustomCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDCustomCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodes.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionOfferCodes-customCodes-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDOneTimeUseCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDOneTimeUseCodes.swift index 7b9cb41a..2d511ac9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDOneTimeUseCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDOneTimeUseCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodes.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionOfferCodes-oneTimeUseCodes-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDPrices.swift index fbaf2251..81b93bdf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionOfferCodes.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionOfferCodes-prices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationships.swift index 6f013080..5abd15b0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsCustomCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsCustomCodes.swift index fbafc1e1..28f17d08 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsCustomCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsCustomCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsOneTimeUseCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsOneTimeUseCodes.swift index 6a7b064f..9fa58b2d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsOneTimeUseCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsOneTimeUseCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsPrices.swift index d705a627..35896f9a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodesWithIDRelationshipsPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePoints.swift index d5c25296..55112aff 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithID.swift index e476768f..33da8db0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionPricePoints { public let path: String public func get(fieldsSubscriptionPricePoints: [FieldsSubscriptionPricePoints]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSubscriptionPricePoints, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSubscriptionPricePoints, include), id: "subscriptionPricePoints-get_instance") } private func makeGetQuery(_ fieldsSubscriptionPricePoints: [FieldsSubscriptionPricePoints]?, _ include: [Include]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDEqualizations.swift index 1c600ba9..690c9265 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDEqualizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionPricePoints.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionPricePoints-equalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationships.swift index ab19ef5c..40185aa0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationshipsEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationshipsEqualizations.swift index f6d99177..cf16d8d2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationshipsEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricePointsWithIDRelationshipsEqualizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPrices.swift index d59eee6c..efafa10b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionPriceCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionPrices-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricesWithID.swift index 90f70deb..2403a1e8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPricesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionPrices { public let path: String public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionPrices-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffers.swift index 59d846da..f53cad7c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionPromotionalOfferCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionPromotionalOffers-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithID.swift index 206d186f..af3cbf92 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionPromotionalOffers { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionPromotionalOffers-get_instance") } public struct GetParameters { @@ -63,11 +61,11 @@ extension APIEndpoint.V1.SubscriptionPromotionalOffers { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionPromotionalOfferUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptionPromotionalOffers-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptionPromotionalOffers-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDPrices.swift index 57efcd1c..b8a3babf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.SubscriptionPromotionalOffers.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptionPromotionalOffers-prices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationships.swift index 633b60b0..70c1d773 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationshipsPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationshipsPrices.swift index 55aa947a..efa07b79 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationshipsPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionPromotionalOffersWithIDRelationshipsPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionSubmissions.swift index b98552f0..4acdf100 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionSubmissions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionSubmissionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptionSubmissions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Subscriptions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Subscriptions.swift index 7ec0cbfb..e2b893c3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Subscriptions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Subscriptions.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SubscriptionCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "subscriptions-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift index b32adcb6..101bc7dd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-get_instance") } public struct GetParameters { @@ -203,11 +201,11 @@ extension APIEndpoint.V1.Subscriptions { } public func patch(_ body: AppStoreConnect_Swift_SDK.SubscriptionUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "subscriptions-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "subscriptions-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift index b36eee2e..babfe0ba 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDAppStoreReviewScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-appStoreReviewScreenshot-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift index 77f9e043..de17e4a1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDIntroductoryOffers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-introductoryOffers-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift index 021c5e3e..c2408e8d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDOfferCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-offerCodes-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPricePoints.swift index 20634e61..93091ab0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-pricePoints-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPrices.swift index 43c88a5c..ae0dfc51 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-prices-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift index 4f2f2da4..25c9c3b6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotedPurchase.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-promotedPurchase-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift index b3f118ae..eb6da416 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDPromotionalOffers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-promotionalOffers-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationships.swift index 3e0beae6..9ec61b0b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsAppStoreReviewScreenshot.swift index e02d8c5b..bac1be74 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsAppStoreReviewScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsIntroductoryOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsIntroductoryOffers.swift index 7935c0b9..c10750ed 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsIntroductoryOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsIntroductoryOffers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "subscriptions-introductoryOffers-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,7 +24,7 @@ extension APIEndpoint.V1.Subscriptions.WithID.Relationships { } public func delete(_ body: AppStoreConnect_Swift_SDK.SubscriptionIntroductoryOffersLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "subscriptions-introductoryOffers-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsOfferCodes.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsOfferCodes.swift index 2678eb58..89befacc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsOfferCodes.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsOfferCodes.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPricePoints.swift index 4b7569bd..20474ed1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPrices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPrices.swift index e20927d8..ee7c6c25 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPrices.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "subscriptions-prices-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,7 +24,7 @@ extension APIEndpoint.V1.Subscriptions.WithID.Relationships { } public func delete(_ body: AppStoreConnect_Swift_SDK.SubscriptionPricesLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "subscriptions-prices-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotedPurchase.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotedPurchase.swift index 0fa8a0d3..24b3f055 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotedPurchase.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotionalOffers.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotionalOffers.swift index 31e3cc51..b680746a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotionalOffers.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsPromotionalOffers.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift index 690371bd..215b6135 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionLocalizations.swift index df8cb830..035e779d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDRelationshipsSubscriptionLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift index 28452238..105e1c6a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-subscriptionAvailability-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift index 5f1f3dbc..f65bae53 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionsWithIDSubscriptionLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Subscriptions.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "subscriptions-subscriptionLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Territories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Territories.swift index 5dad8653..a6bb6431 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Territories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Territories.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsTerritories, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsTerritories, limit), id: "territories-get_collection") } private func makeGetQuery(_ fieldsTerritories: [FieldsTerritories]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift new file mode 100644 index 00000000..a73ff132 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1 { + public var territoryAvailabilities: TerritoryAvailabilities { + TerritoryAvailabilities(path: path + "/territoryAvailabilities") + } + + public struct TerritoryAvailabilities { + /// Path: `/v1/territoryAvailabilities` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilitiesWithID.swift new file mode 100644 index 00000000..8dba9da9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilitiesWithID.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V1.TerritoryAvailabilities { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v1/territoryAvailabilities/{id}` + public let path: String + + public func patch(_ body: AppStoreConnect_Swift_SDK.TerritoryAvailabilityUpdateRequest) -> Request { + Request(path: path, method: "PATCH", body: body, id: "territoryAvailabilities-update_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift index fd1f5300..09449faf 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "userInvitations-get_collection") } public struct GetParameters { @@ -72,6 +70,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -91,6 +90,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -141,7 +141,7 @@ extension APIEndpoint.V1 { } public func post(_ body: AppStoreConnect_Swift_SDK.UserInvitationCreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "userInvitations-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift index bb1b268c..b8253422 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.UserInvitations { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "userInvitations-get_instance") } public struct GetParameters { @@ -44,6 +42,7 @@ extension APIEndpoint.V1.UserInvitations { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -63,6 +62,7 @@ extension APIEndpoint.V1.UserInvitations { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -103,7 +103,7 @@ extension APIEndpoint.V1.UserInvitations { } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "userInvitations-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationships.swift index 22435d32..ed19a248 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationshipsVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationshipsVisibleApps.swift index ac8062e3..e405f5f8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationshipsVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDRelationshipsVisibleApps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift index 2f2ca0e0..4b8066d7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.UserInvitations.WithID { /// Path: `/v1/userInvitations/{id}/visibleApps` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps, limit)) + public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps, limit), id: "userInvitations-visibleApps-get_to_many_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?, _ limit: Int?) -> [(String, String?)] { @@ -30,6 +28,7 @@ extension APIEndpoint.V1.UserInvitations.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -49,6 +48,7 @@ extension APIEndpoint.V1.UserInvitations.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift index f5bea299..f1b4ed90 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1 { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "users-get_collection") } public struct GetParameters { @@ -71,6 +69,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -90,6 +89,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift index 038ff802..da56420a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Users { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "users-get_instance") } public struct GetParameters { @@ -43,6 +41,7 @@ extension APIEndpoint.V1.Users { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -62,6 +61,7 @@ extension APIEndpoint.V1.Users { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -102,11 +102,11 @@ extension APIEndpoint.V1.Users { } public func patch(_ body: AppStoreConnect_Swift_SDK.UserUpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "users-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "users-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationships.swift index 5e3eceaa..f990c23b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationshipsVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationshipsVisibleApps.swift index 675e4a77..18ccb40a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationshipsVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDRelationshipsVisibleApps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V1.Users.WithID.Relationships { public let path: String public func get(limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(limit)) + Request(path: path, method: "GET", query: makeGetQuery(limit), id: "users-visibleApps-get_to_many_relationship") } private func makeGetQuery(_ limit: Int?) -> [(String, String?)] { @@ -26,15 +24,15 @@ extension APIEndpoint.V1.Users.WithID.Relationships { } public func post(_ body: AppStoreConnect_Swift_SDK.UserVisibleAppsLinkagesRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "users-visibleApps-create_to_many_relationship") } public func patch(_ body: AppStoreConnect_Swift_SDK.UserVisibleAppsLinkagesRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "users-visibleApps-replace_to_many_relationship") } public func delete(_ body: AppStoreConnect_Swift_SDK.UserVisibleAppsLinkagesRequest) -> Request { - .delete(path, body: body) + Request(path: path, method: "DELETE", body: body, id: "users-visibleApps-delete_to_many_relationship") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift index 051cec9a..06e741d3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -15,8 +13,8 @@ extension APIEndpoint.V1.Users.WithID { /// Path: `/v1/users/{id}/visibleApps` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsApps, limit)) + public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { + Request(path: path, method: "GET", query: makeGetQuery(fieldsApps, limit), id: "users-visibleApps-get_to_many_related") } private func makeGetQuery(_ fieldsApps: [FieldsApps]?, _ limit: Int?) -> [(String, String?)] { @@ -30,6 +28,7 @@ extension APIEndpoint.V1.Users.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -49,6 +48,7 @@ extension APIEndpoint.V1.Users.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV2.swift index 04d2177f..d7253733 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilities.swift new file mode 100644 index 00000000..0b30775a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilities.swift @@ -0,0 +1,20 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2 { + public var appAvailabilities: AppAvailabilities { + AppAvailabilities(path: path + "/appAvailabilities") + } + + public struct AppAvailabilities { + /// Path: `/v2/appAvailabilities` + public let path: String + + public func post(_ body: AppStoreConnect_Swift_SDK.AppAvailabilityV2CreateRequest) -> Request { + Request(path: path, method: "POST", body: body, id: "appAvailabilitiesV2-create_instance") + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift new file mode 100644 index 00000000..0da18181 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift @@ -0,0 +1,62 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppAvailabilities { + public func id(_ id: String) -> WithID { + WithID(path: "\(path)/\(id)") + } + + public struct WithID { + /// Path: `/v2/appAvailabilities/{id}` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appAvailabilitiesV2-get_instance") + } + + public struct GetParameters { + public var fieldsAppAvailabilities: [FieldsAppAvailabilities]? + public var include: [Include]? + public var fieldsTerritoryAvailabilities: [FieldsTerritoryAvailabilities]? + public var limitTerritoryAvailabilities: Int? + + public enum FieldsAppAvailabilities: String, Codable, CaseIterable { + case app + case availableInNewTerritories + case territoryAvailabilities + } + + public enum Include: String, Codable, CaseIterable { + case territoryAvailabilities + } + + public enum FieldsTerritoryAvailabilities: String, Codable, CaseIterable { + case available + case contentStatuses + case preOrderEnabled + case preOrderPublishDate + case releaseDate + case territory + } + + public init(fieldsAppAvailabilities: [FieldsAppAvailabilities]? = nil, include: [Include]? = nil, fieldsTerritoryAvailabilities: [FieldsTerritoryAvailabilities]? = nil, limitTerritoryAvailabilities: Int? = nil) { + self.fieldsAppAvailabilities = fieldsAppAvailabilities + self.include = include + self.fieldsTerritoryAvailabilities = fieldsTerritoryAvailabilities + self.limitTerritoryAvailabilities = limitTerritoryAvailabilities + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsAppAvailabilities, forKey: "fields[appAvailabilities]") + encoder.encode(include, forKey: "include") + encoder.encode(fieldsTerritoryAvailabilities, forKey: "fields[territoryAvailabilities]") + encoder.encode(limitTerritoryAvailabilities, forKey: "limit[territoryAvailabilities]") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationships.swift new file mode 100644 index 00000000..a788527f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationships.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppAvailabilities.WithID { + public var relationships: Relationships { + Relationships(path: path + "/relationships") + } + + public struct Relationships { + /// Path: `/v2/appAvailabilities/{id}/relationships` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationshipsTerritoryAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationshipsTerritoryAvailabilities.swift new file mode 100644 index 00000000..37764de0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationshipsTerritoryAvailabilities.swift @@ -0,0 +1,16 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppAvailabilities.WithID.Relationships { + public var territoryAvailabilities: TerritoryAvailabilities { + TerritoryAvailabilities(path: path + "/territoryAvailabilities") + } + + public struct TerritoryAvailabilities { + /// Path: `/v2/appAvailabilities/{id}/relationships/territoryAvailabilities` + public let path: String + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDTerritoryAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDTerritoryAvailabilities.swift new file mode 100644 index 00000000..e62e2a2f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDTerritoryAvailabilities.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI + +import Foundation +import URLQueryEncoder + +extension APIEndpoint.V2.AppAvailabilities.WithID { + public var territoryAvailabilities: TerritoryAvailabilities { + TerritoryAvailabilities(path: path + "/territoryAvailabilities") + } + + public struct TerritoryAvailabilities { + /// Path: `/v2/appAvailabilities/{id}/territoryAvailabilities` + public let path: String + + public func get(parameters: GetParameters? = nil) -> Request { + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appAvailabilitiesV2-territoryAvailabilities-get_to_many_related") + } + + public struct GetParameters { + public var fieldsTerritoryAvailabilities: [FieldsTerritoryAvailabilities]? + public var fieldsTerritories: [FieldsTerritories]? + public var limit: Int? + public var include: [Include]? + + public enum FieldsTerritoryAvailabilities: String, Codable, CaseIterable { + case available + case contentStatuses + case preOrderEnabled + case preOrderPublishDate + case releaseDate + case territory + } + + public enum FieldsTerritories: String, Codable, CaseIterable { + case currency + } + + public enum Include: String, Codable, CaseIterable { + case territory + } + + public init(fieldsTerritoryAvailabilities: [FieldsTerritoryAvailabilities]? = nil, fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil, include: [Include]? = nil) { + self.fieldsTerritoryAvailabilities = fieldsTerritoryAvailabilities + self.fieldsTerritories = fieldsTerritories + self.limit = limit + self.include = include + } + + public var asQuery: [(String, String?)] { + let encoder = URLQueryEncoder(explode: false) + encoder.encode(fieldsTerritoryAvailabilities, forKey: "fields[territoryAvailabilities]") + encoder.encode(fieldsTerritories, forKey: "fields[territories]") + encoder.encode(limit, forKey: "limit") + encoder.encode(include, forKey: "include") + return encoder.items + } + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift index a8ed7163..ad68bfc4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperiments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentV2CreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "appStoreVersionExperimentsV2-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift index cf1bdb59..eb929212 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.AppStoreVersionExperiments { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentsV2-get_instance") } public struct GetParameters { @@ -78,11 +76,11 @@ extension APIEndpoint.V2.AppStoreVersionExperiments { } public func patch(_ body: AppStoreConnect_Swift_SDK.AppStoreVersionExperimentV2UpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "appStoreVersionExperimentsV2-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "appStoreVersionExperimentsV2-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift index 68191fb3..74c4cc02 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.AppStoreVersionExperiments.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appStoreVersionExperimentsV2-appStoreVersionExperimentTreatments-get_to_many_related") } public struct GetParameters { @@ -29,6 +27,7 @@ extension APIEndpoint.V2.AppStoreVersionExperiments.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift index 1f141ea7..445d7bb5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift index e340bdd4..1d42abaa 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDRelationshipsAppStoreVersionExperimentTreatments.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchases.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchases.swift index f6926b09..70a90f20 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchases.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseV2CreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "inAppPurchasesV2-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift index ae753f47..4acc4264 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-get_instance") } public struct GetParameters { @@ -153,11 +151,11 @@ extension APIEndpoint.V2.InAppPurchases { } public func patch(_ body: AppStoreConnect_Swift_SDK.InAppPurchaseV2UpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "inAppPurchasesV2-update_instance") } public var delete: Request { - .delete(path) + Request(path: path, method: "DELETE", id: "inAppPurchasesV2-delete_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift index 1cd31a4a..1479c709 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDAppStoreReviewScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-appStoreReviewScreenshot-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift index 5b96f4ef..d613f3a3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDContent.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-content-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift index 7509d1d9..9ef86aba 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDIapPriceSchedule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-iapPriceSchedule-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift index b8d0b8b8..309d0cb6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-inAppPurchaseAvailability-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift index 7653244b..a8aac3fd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDInAppPurchaseLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-inAppPurchaseLocalizations-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPricePoints.swift index e6c5dfa0..7cefcb15 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-pricePoints-get_to_many_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift index 75db555a..8328040e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDPromotedPurchase.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.InAppPurchases.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "inAppPurchasesV2-promotedPurchase-get_to_one_related") } public struct GetParameters { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationships.swift index e44acf9e..37cebb67 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsAppStoreReviewScreenshot.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsAppStoreReviewScreenshot.swift index 7ef694f2..01cfa384 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsAppStoreReviewScreenshot.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsContent.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsContent.swift index f7551ed6..8a31d6f9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsContent.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsContent.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsIapPriceSchedule.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsIapPriceSchedule.swift index d19d6335..5444a500 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsIapPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsIapPriceSchedule.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift index ea44191c..3dd6d204 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseAvailability.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseLocalizations.swift index 70743bad..ec3c54b2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsInAppPurchaseLocalizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPricePoints.swift index a5326bdf..78581104 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPromotedPurchase.swift b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPromotedPurchase.swift index f4e6be1d..93722917 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2InAppPurchasesWithIDRelationshipsPromotedPurchase.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTesters.swift index b90b9b14..b3e34821 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTesters.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2 { public let path: String public func get(fieldsSandboxTesters: [FieldsSandboxTesters]? = nil, limit: Int? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsSandboxTesters, limit)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsSandboxTesters, limit), id: "sandboxTestersV2-get_collection") } private func makeGetQuery(_ fieldsSandboxTesters: [FieldsSandboxTesters]?, _ limit: Int?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersClearPurchaseHistoryRequest.swift b/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersClearPurchaseHistoryRequest.swift index 1f678ca6..e381660b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersClearPurchaseHistoryRequest.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersClearPurchaseHistoryRequest.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2 { public let path: String public func post(_ body: AppStoreConnect_Swift_SDK.SandboxTestersClearPurchaseHistoryRequestV2CreateRequest) -> Request { - .post(path, body: body) + Request(path: path, method: "POST", body: body, id: "sandboxTestersClearPurchaseHistoryRequestV2-create_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersWithID.swift index 34bfdcd6..eeeb88fc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2SandboxTestersWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V2.SandboxTesters { public let path: String public func patch(_ body: AppStoreConnect_Swift_SDK.SandboxTesterV2UpdateRequest) -> Request { - .patch(path, body: body) + Request(path: path, method: "PATCH", body: body, id: "sandboxTestersV2-update_instance") } } } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3.swift b/Sources/OpenAPI/Generated/Paths/PathsV3.swift index bd5bce1c..b2ab3bed 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePoints.swift index 3ed54415..92201d56 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePoints.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithID.swift index 88f72f89..8d9e1bc5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithID.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V3.AppPricePoints { public let path: String public func get(fieldsAppPricePoints: [FieldsAppPricePoints]? = nil, include: [Include]? = nil) -> Request { - .get(path, query: makeGetQuery(fieldsAppPricePoints, include)) + Request(path: path, method: "GET", query: makeGetQuery(fieldsAppPricePoints, include), id: "appPricePointsV3-get_instance") } private func makeGetQuery(_ fieldsAppPricePoints: [FieldsAppPricePoints]?, _ include: [Include]?) -> [(String, String?)] { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift index 72d4a92e..9a55e9d2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder @@ -16,7 +14,7 @@ extension APIEndpoint.V3.AppPricePoints.WithID { public let path: String public func get(parameters: GetParameters? = nil) -> Request { - .get(path, query: parameters?.asQuery) + Request(path: path, method: "GET", query: parameters?.asQuery, id: "appPricePointsV3-equalizations-get_to_many_related") } public struct GetParameters { @@ -39,6 +37,7 @@ extension APIEndpoint.V3.AppPricePoints.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +57,7 @@ extension APIEndpoint.V3.AppPricePoints.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationships.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationships.swift index ce8a8412..f08ca0f5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationships.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationships.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationshipsEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationshipsEqualizations.swift index ee5d3531..c22b4e14 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationshipsEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDRelationshipsEqualizations.swift @@ -1,7 +1,5 @@ // Generated by Create API // https://github.com/CreateAPI/CreateAPI -// -// swiftlint:disable all import Foundation import URLQueryEncoder diff --git a/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json b/Sources/OpenAPI/app_store_connect_api.json similarity index 81% rename from Sources/OpenAPI/app_store_connect_api_2.3_openapi.json rename to Sources/OpenAPI/app_store_connect_api.json index d0ce5904..9b978adb 100644 --- a/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json +++ b/Sources/OpenAPI/app_store_connect_api.json @@ -2,7 +2,7 @@ "openapi": "3.0.1", "info": { "title": "App Store Connect API", - "version": "2.4", + "version": "3.0", "x-platform": "app_store_connect_api" }, "servers": [ @@ -266,6 +266,200 @@ } ] }, + "/v2/appAvailabilities": { + "post": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilitiesV2-create_instance", + "requestBody": { + "description": "AppAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAvailabilityV2CreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single AppAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAvailabilityV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v2/appAvailabilities/{id}": { + "get": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilitiesV2-get_instance", + "parameters": [ + { + "name": "fields[appAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type appAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "availableInNewTerritories", + "territoryAvailabilities" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[territoryAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type territoryAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "available", + "contentStatuses", + "preOrderEnabled", + "preOrderPublishDate", + "releaseDate", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[territoryAvailabilities]", + "in": "query", + "description": "maximum number of related territoryAvailabilities returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppAvailabilityV2Response" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, "/v1/appAvailabilities": { "post": { "tags": [ @@ -3759,6 +3953,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -3778,6 +3973,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -3947,6 +4143,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -3966,6 +4163,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -6709,7 +6907,7 @@ "tags": [ "AppPricePoints" ], - "operationId": "appPricePoints-get_instance", + "operationId": "appPricePointsV3-get_instance", "parameters": [ { "name": "fields[appPricePoints]", @@ -9357,7 +9555,7 @@ "tags": [ "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionExperiments-create_instance", + "operationId": "appStoreVersionExperimentsV2-create_instance", "requestBody": { "description": "AppStoreVersionExperiment representation", "content": { @@ -9418,7 +9616,7 @@ "tags": [ "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionExperiments-get_instance", + "operationId": "appStoreVersionExperimentsV2-get_instance", "parameters": [ { "name": "fields[appStoreVersionExperiments]", @@ -9561,7 +9759,7 @@ "tags": [ "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionExperiments-update_instance", + "operationId": "appStoreVersionExperimentsV2-update_instance", "requestBody": { "description": "AppStoreVersionExperiment representation", "content": { @@ -9630,7 +9828,7 @@ "tags": [ "AppStoreVersionExperiments" ], - "operationId": "appStoreVersionExperiments-delete_instance", + "operationId": "appStoreVersionExperimentsV2-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -10956,6 +11154,7 @@ "type": "string", "enum": [ "app", + "appStoreVersion", "appStoreVersionExperimentTreatments", "controlVersions", "endDate", @@ -10974,32 +11173,6 @@ "explode": false, "required": false }, - { - "name": "fields[appStoreVersionExperiments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] - } - }, - "style": "form", - "explode": false, - "required": false, - "deprecated": true - }, { "name": "fields[appStoreVersionSubmissions]", "in": "query", @@ -11584,7 +11757,8 @@ }, "style": "form", "explode": false, - "required": false + "required": false, + "deprecated": true }, { "name": "sort", @@ -11620,6 +11794,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -11639,6 +11814,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -11687,6 +11863,7 @@ "enum": [ "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appStoreVersionExperimentsV2", @@ -11699,6 +11876,7 @@ "builds", "ciProduct", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -11741,6 +11919,35 @@ "explode": false, "required": false }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[appPriceSchedules]", "in": "query", @@ -12066,28 +12273,6 @@ "explode": false, "required": false }, - { - "name": "fields[appPricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "customerPrice", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false, - "required": false, - "deprecated": true - }, { "name": "fields[appPricePoints]", "in": "query", @@ -12100,6 +12285,7 @@ "app", "customerPrice", "equalizations", + "priceTier", "proceeds", "territory" ] @@ -12118,18 +12304,30 @@ "items": { "type": "string", "enum": [ + "app", + "appStoreReviewScreenshot", "apps", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", "inAppPurchaseType", + "name", + "pricePoints", "productId", + "promotedPurchase", "referenceName", + "reviewNote", "state" ] } }, "style": "form", "explode": false, - "required": false, - "deprecated": true + "required": false }, { "name": "fields[preReleaseVersions]", @@ -12151,38 +12349,6 @@ "explode": false, "required": false }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, { "name": "fields[subscriptionGroups]", "in": "query", @@ -12288,7 +12454,8 @@ }, "style": "form", "explode": false, - "required": false + "required": false, + "deprecated": true }, { "name": "fields[subscriptionGracePeriods]", @@ -12388,6 +12555,39 @@ "explode": false, "required": false }, + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appDescription", + "appEncryptionDeclarationDocument", + "appEncryptionDeclarationState", + "availableOnFrenchStore", + "builds", + "codeValue", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "createdDate", + "documentName", + "documentType", + "documentUrl", + "exempt", + "platform", + "uploadedDate", + "usesEncryption" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[territories]", "in": "query", @@ -12447,6 +12647,17 @@ "style": "form", "required": false }, + { + "name": "limit[appEncryptionDeclarations]", + "in": "query", + "description": "maximum number of related appEncryptionDeclarations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, { "name": "limit[appEvents]", "in": "query", @@ -12544,7 +12755,8 @@ "maximum": 50 }, "style": "form", - "required": false + "required": false, + "deprecated": true }, { "name": "limit[inAppPurchases]", @@ -12555,7 +12767,8 @@ "maximum": 50 }, "style": "form", - "required": false + "required": false, + "deprecated": true }, { "name": "limit[inAppPurchasesV2]", @@ -12678,6 +12891,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -12697,6 +12911,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -12735,6 +12950,7 @@ "enum": [ "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appStoreVersionExperimentsV2", @@ -12747,6 +12963,7 @@ "builds", "ciProduct", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -12789,6 +13006,35 @@ "explode": false, "required": false }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[appPriceSchedules]", "in": "query", @@ -13114,28 +13360,6 @@ "explode": false, "required": false }, - { - "name": "fields[appPricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "customerPrice", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false, - "required": false, - "deprecated": true - }, { "name": "fields[appPricePoints]", "in": "query", @@ -13148,6 +13372,7 @@ "app", "customerPrice", "equalizations", + "priceTier", "proceeds", "territory" ] @@ -13166,18 +13391,30 @@ "items": { "type": "string", "enum": [ + "app", + "appStoreReviewScreenshot", "apps", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", "inAppPurchaseType", + "name", + "pricePoints", "productId", + "promotedPurchase", "referenceName", + "reviewNote", "state" ] } }, "style": "form", "explode": false, - "required": false, - "deprecated": true + "required": false }, { "name": "fields[preReleaseVersions]", @@ -13199,38 +13436,6 @@ "explode": false, "required": false }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, { "name": "fields[subscriptionGroups]", "in": "query", @@ -13336,7 +13541,8 @@ }, "style": "form", "explode": false, - "required": false + "required": false, + "deprecated": true }, { "name": "fields[subscriptionGracePeriods]", @@ -13436,6 +13642,39 @@ "explode": false, "required": false }, + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appDescription", + "appEncryptionDeclarationDocument", + "appEncryptionDeclarationState", + "availableOnFrenchStore", + "builds", + "codeValue", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "createdDate", + "documentName", + "documentType", + "documentUrl", + "exempt", + "platform", + "uploadedDate", + "usesEncryption" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, { "name": "fields[territories]", "in": "query", @@ -13495,6 +13734,17 @@ "style": "form", "required": false }, + { + "name": "limit[appEncryptionDeclarations]", + "in": "query", + "description": "maximum number of related appEncryptionDeclarations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, { "name": "limit[appEvents]", "in": "query", @@ -13592,7 +13842,8 @@ "maximum": 50 }, "style": "form", - "required": false + "required": false, + "deprecated": true }, { "name": "limit[inAppPurchases]", @@ -13603,7 +13854,8 @@ "maximum": 50 }, "style": "form", - "required": false + "required": false, + "deprecated": true }, { "name": "limit[inAppPurchasesV2]", @@ -14382,6 +14634,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -14401,6 +14654,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -14581,6 +14835,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -14600,6 +14855,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -14889,6 +15145,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -14908,6 +15165,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -15031,6 +15289,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -15050,6 +15309,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -16276,6 +16536,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -16295,6 +16556,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -16569,6 +16831,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -16588,6 +16851,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -16932,6 +17196,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -16951,6 +17216,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -17067,6 +17333,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -17086,6 +17353,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -17511,6 +17779,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -17530,6 +17799,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -17815,6 +18085,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -17834,6 +18105,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -19033,6 +19305,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -19052,6 +19325,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -19483,6 +19757,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -19502,6 +19777,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -20141,6 +20417,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -20160,6 +20437,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -20410,6 +20688,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -20429,6 +20708,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -22086,6 +22366,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -22105,6 +22386,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -22336,6 +22618,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -22355,6 +22638,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -23953,6 +24237,67 @@ } ] }, + "/v1/endAppAvailabilityPreOrders": { + "post": { + "tags": [ + "EndAppAvailabilityPreOrders" + ], + "operationId": "endAppAvailabilityPreOrders-create_instance", + "requestBody": { + "description": "EndAppAvailabilityPreOrder representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndAppAvailabilityPreOrderCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single EndAppAvailabilityPreOrder", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/EndAppAvailabilityPreOrderResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, "/v1/endUserLicenseAgreements": { "post": { "tags": [ @@ -24365,18 +24710,18 @@ } } }, - "/v1/inAppPurchaseAppStoreReviewScreenshots": { + "/v1/gameCenterAchievementImages": { "post": { "tags": [ - "InAppPurchaseAppStoreReviewScreenshots" + "GameCenterAchievementImages" ], - "operationId": "inAppPurchaseAppStoreReviewScreenshots-create_instance", + "operationId": "gameCenterAchievementImages-create_instance", "requestBody": { - "description": "InAppPurchaseAppStoreReviewScreenshot representation", + "description": "GameCenterAchievementImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotCreateRequest" + "$ref": "#/components/schemas/GameCenterAchievementImageCreateRequest" } } }, @@ -24404,11 +24749,11 @@ } }, "201": { - "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "description": "Single GameCenterAchievementImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" } } } @@ -24426,30 +24771,27 @@ } } }, - "/v1/inAppPurchaseAppStoreReviewScreenshots/{id}": { + "/v1/gameCenterAchievementImages/{id}": { "get": { "tags": [ - "InAppPurchaseAppStoreReviewScreenshots" + "GameCenterAchievementImages" ], - "operationId": "inAppPurchaseAppStoreReviewScreenshots-get_instance", + "operationId": "gameCenterAchievementImages-get_instance", "parameters": [ { - "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "name": "fields[gameCenterAchievementImages]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ "assetDeliveryState", - "assetToken", - "assetType", "fileName", "fileSize", + "gameCenterAchievementLocalization", "imageAsset", - "inAppPurchaseV2", - "sourceFileChecksum", "uploadOperations", "uploaded" ] @@ -24468,7 +24810,7 @@ "items": { "type": "string", "enum": [ - "inAppPurchaseV2" + "gameCenterAchievementLocalization" ] } }, @@ -24509,11 +24851,11 @@ } }, "200": { - "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "description": "Single GameCenterAchievementImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" } } } @@ -24522,15 +24864,15 @@ }, "patch": { "tags": [ - "InAppPurchaseAppStoreReviewScreenshots" + "GameCenterAchievementImages" ], - "operationId": "inAppPurchaseAppStoreReviewScreenshots-update_instance", + "operationId": "gameCenterAchievementImages-update_instance", "requestBody": { - "description": "InAppPurchaseAppStoreReviewScreenshot representation", + "description": "GameCenterAchievementImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotUpdateRequest" + "$ref": "#/components/schemas/GameCenterAchievementImageUpdateRequest" } } }, @@ -24568,11 +24910,11 @@ } }, "200": { - "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "description": "Single GameCenterAchievementImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" } } } @@ -24591,9 +24933,9 @@ }, "delete": { "tags": [ - "InAppPurchaseAppStoreReviewScreenshots" + "GameCenterAchievementImages" ], - "operationId": "inAppPurchaseAppStoreReviewScreenshots-delete_instance", + "operationId": "gameCenterAchievementImages-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -24653,18 +24995,18 @@ } ] }, - "/v1/inAppPurchaseAvailabilities": { + "/v1/gameCenterAchievementLocalizations": { "post": { "tags": [ - "InAppPurchaseAvailabilities" + "GameCenterAchievementLocalizations" ], - "operationId": "inAppPurchaseAvailabilities-create_instance", + "operationId": "gameCenterAchievementLocalizations-create_instance", "requestBody": { - "description": "InAppPurchaseAvailability representation", + "description": "GameCenterAchievementLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAvailabilityCreateRequest" + "$ref": "#/components/schemas/GameCenterAchievementLocalizationCreateRequest" } } }, @@ -24692,11 +25034,11 @@ } }, "201": { - "description": "Single InAppPurchaseAvailability", + "description": "Single GameCenterAchievementLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" + "$ref": "#/components/schemas/GameCenterAchievementLocalizationResponse" } } } @@ -24714,25 +25056,28 @@ } } }, - "/v1/inAppPurchaseAvailabilities/{id}": { + "/v1/gameCenterAchievementLocalizations/{id}": { "get": { "tags": [ - "InAppPurchaseAvailabilities" + "GameCenterAchievementLocalizations" ], - "operationId": "inAppPurchaseAvailabilities-get_instance", + "operationId": "gameCenterAchievementLocalizations-get_instance", "parameters": [ { - "name": "fields[inAppPurchaseAvailabilities]", + "name": "fields[gameCenterAchievementLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "availableInNewTerritories", - "availableTerritories", - "inAppPurchase" + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" ] } }, @@ -24749,7 +25094,8 @@ "items": { "type": "string", "enum": [ - "availableTerritories" + "gameCenterAchievement", + "gameCenterAchievementImage" ] } }, @@ -24758,15 +25104,21 @@ "required": false }, { - "name": "fields[territories]", + "name": "fields[gameCenterAchievementImages]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterAchievementLocalization", + "imageAsset", + "uploadOperations", + "uploaded" ] } }, @@ -24775,14 +25127,30 @@ "required": false }, { - "name": "limit[availableTerritories]", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "maximum number of related availableTerritories returned (when they are included)", + "description": "the fields to include for returned resources of type gameCenterAchievements", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } }, "style": "form", + "explode": false, "required": false } ], @@ -24818,76 +25186,91 @@ } }, "200": { - "description": "Single InAppPurchaseAvailability", + "description": "Single GameCenterAchievementLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" + "$ref": "#/components/schemas/GameCenterAchievementLocalizationResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/inAppPurchaseContents/{id}": { - "get": { + "patch": { "tags": [ - "InAppPurchaseContents" + "GameCenterAchievementLocalizations" ], - "operationId": "inAppPurchaseContents-get_instance", - "parameters": [ - { - "name": "fields[inAppPurchaseContents]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseContents", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "fileName", - "fileSize", - "inAppPurchaseV2", - "lastModifiedDate", - "url" - ] + "operationId": "gameCenterAchievementLocalizations-update_instance", + "requestBody": { + "description": "GameCenterAchievementLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationUpdateRequest" } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchaseV2" - ] + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false, - "required": false + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievementLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } + } + }, + "delete": { + "tags": [ + "GameCenterAchievementLocalizations" ], + "operationId": "gameCenterAchievementLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -24919,15 +25302,18 @@ } } }, - "200": { - "description": "Single InAppPurchaseContent", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseContentResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -24944,18 +25330,18 @@ } ] }, - "/v1/inAppPurchaseLocalizations": { + "/v1/gameCenterAchievementReleases": { "post": { "tags": [ - "InAppPurchaseLocalizations" + "GameCenterAchievementReleases" ], - "operationId": "inAppPurchaseLocalizations-create_instance", + "operationId": "gameCenterAchievementReleases-create_instance", "requestBody": { - "description": "InAppPurchaseLocalization representation", + "description": "GameCenterAchievementRelease representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseLocalizationCreateRequest" + "$ref": "#/components/schemas/GameCenterAchievementReleaseCreateRequest" } } }, @@ -24983,11 +25369,11 @@ } }, "201": { - "description": "Single InAppPurchaseLocalization", + "description": "Single GameCenterAchievementRelease", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" + "$ref": "#/components/schemas/GameCenterAchievementReleaseResponse" } } } @@ -25005,27 +25391,25 @@ } } }, - "/v1/inAppPurchaseLocalizations/{id}": { + "/v1/gameCenterAchievementReleases/{id}": { "get": { "tags": [ - "InAppPurchaseLocalizations" + "GameCenterAchievementReleases" ], - "operationId": "inAppPurchaseLocalizations-get_instance", + "operationId": "gameCenterAchievementReleases-get_instance", "parameters": [ { - "name": "fields[inAppPurchaseLocalizations]", + "name": "fields[gameCenterAchievementReleases]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "description", - "inAppPurchaseV2", - "locale", - "name", - "state" + "gameCenterAchievement", + "gameCenterDetail", + "live" ] } }, @@ -25042,7 +25426,8 @@ "items": { "type": "string", "enum": [ - "inAppPurchaseV2" + "gameCenterAchievement", + "gameCenterDetail" ] } }, @@ -25083,33 +25468,22 @@ } }, "200": { - "description": "Single InAppPurchaseLocalization", + "description": "Single GameCenterAchievementRelease", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" + "$ref": "#/components/schemas/GameCenterAchievementReleaseResponse" } } } } } }, - "patch": { + "delete": { "tags": [ - "InAppPurchaseLocalizations" + "GameCenterAchievementReleases" ], - "operationId": "inAppPurchaseLocalizations-update_instance", - "requestBody": { - "description": "InAppPurchaseLocalization representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InAppPurchaseLocalizationUpdateRequest" - } - } - }, - "required": true - }, + "operationId": "gameCenterAchievementReleases-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -25141,16 +25515,6 @@ } } }, - "200": { - "description": "Single InAppPurchaseLocalization", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" - } - } - } - }, "409": { "description": "Request entity error(s)", "content": { @@ -25160,90 +25524,42 @@ } } } + }, + "204": { + "description": "Success (no content)" } } }, - "delete": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAchievements": { + "post": { "tags": [ - "InAppPurchaseLocalizations" + "GameCenterAchievements" ], - "operationId": "inAppPurchaseLocalizations-delete_instance", - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/inAppPurchasePriceSchedules": { - "post": { - "tags": [ - "InAppPurchasePriceSchedules" - ], - "operationId": "inAppPurchasePriceSchedules-create_instance", - "requestBody": { - "description": "InAppPurchasePriceSchedule representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InAppPurchasePriceScheduleCreateRequest" - } - } - }, - "required": true - }, + "operationId": "gameCenterAchievements-create_instance", + "requestBody": { + "description": "GameCenterAchievement representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementCreateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -25266,11 +25582,11 @@ } }, "201": { - "description": "Single InAppPurchasePriceSchedule", + "description": "Single GameCenterAchievement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" + "$ref": "#/components/schemas/GameCenterAchievementResponse" } } } @@ -25288,26 +25604,33 @@ } } }, - "/v1/inAppPurchasePriceSchedules/{id}": { + "/v1/gameCenterAchievements/{id}": { "get": { "tags": [ - "InAppPurchasePriceSchedules" + "GameCenterAchievements" ], - "operationId": "inAppPurchasePriceSchedules-get_instance", + "operationId": "gameCenterAchievements-get_instance", "parameters": [ { - "name": "fields[inAppPurchasePriceSchedules]", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "description": "the fields to include for returned resources of type gameCenterAchievements", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" ] } }, @@ -25324,10 +25647,11 @@ "items": { "type": "string", "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases" ] } }, @@ -25336,20 +25660,17 @@ "required": false }, { - "name": "fields[inAppPurchasePrices]", + "name": "fields[gameCenterAchievementReleases]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePrices", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "endDate", - "inAppPurchasePricePoint", - "inAppPurchaseV2", - "manual", - "startDate", - "territory" + "gameCenterAchievement", + "gameCenterDetail", + "live" ] } }, @@ -25358,15 +25679,20 @@ "required": false }, { - "name": "fields[territories]", + "name": "fields[gameCenterAchievementLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" ] } }, @@ -25375,9 +25701,9 @@ "required": false }, { - "name": "limit[automaticPrices]", + "name": "limit[localizations]", "in": "query", - "description": "maximum number of related automaticPrices returned (when they are included)", + "description": "maximum number of related localizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -25386,9 +25712,9 @@ "required": false }, { - "name": "limit[manualPrices]", + "name": "limit[releases]", "in": "query", - "description": "maximum number of related manualPrices returned (when they are included)", + "description": "maximum number of related releases returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -25429,42 +25755,28 @@ } }, "200": { - "description": "Single InAppPurchasePriceSchedule", + "description": "Single GameCenterAchievement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" + "$ref": "#/components/schemas/GameCenterAchievementResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/inAppPurchaseSubmissions": { - "post": { + "patch": { "tags": [ - "InAppPurchaseSubmissions" + "GameCenterAchievements" ], - "operationId": "inAppPurchaseSubmissions-create_instance", + "operationId": "gameCenterAchievements-update_instance", "requestBody": { - "description": "InAppPurchaseSubmission representation", + "description": "GameCenterAchievement representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseSubmissionCreateRequest" + "$ref": "#/components/schemas/GameCenterAchievementUpdateRequest" } } }, @@ -25491,12 +25803,22 @@ } } }, - "201": { - "description": "Single InAppPurchaseSubmission", + "404": { + "description": "Not found error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseSubmissionResponse" + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementResponse" } } } @@ -25512,65 +25834,12 @@ } } } - } - }, - "/v1/inAppPurchases/{id}": { - "get": { + }, + "delete": { "tags": [ - "InAppPurchases" - ], - "operationId": "inAppPurchases-get_instance", - "parameters": [ - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "apps", - "inAppPurchaseType", - "productId", - "referenceName", - "state" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "apps" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "limit[apps]", - "in": "query", - "description": "maximum number of related apps returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - } + "GameCenterAchievements" ], + "operationId": "gameCenterAchievements-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -25602,15 +25871,18 @@ } } }, - "200": { - "description": "Single InAppPurchase", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -25627,18 +25899,18 @@ } ] }, - "/v2/inAppPurchases": { + "/v1/gameCenterAppVersions": { "post": { "tags": [ - "InAppPurchases" + "GameCenterAppVersions" ], - "operationId": "inAppPurchases-create_instance", + "operationId": "gameCenterAppVersions-create_instance", "requestBody": { - "description": "InAppPurchase representation", + "description": "GameCenterAppVersion representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseV2CreateRequest" + "$ref": "#/components/schemas/GameCenterAppVersionCreateRequest" } } }, @@ -25666,11 +25938,11 @@ } }, "201": { - "description": "Single InAppPurchase", + "description": "Single GameCenterAppVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseV2Response" + "$ref": "#/components/schemas/GameCenterAppVersionResponse" } } } @@ -25688,38 +25960,25 @@ } } }, - "/v2/inAppPurchases/{id}": { + "/v1/gameCenterAppVersions/{id}": { "get": { "tags": [ - "InAppPurchases" + "GameCenterAppVersions" ], - "operationId": "inAppPurchases-get_instance", + "operationId": "gameCenterAppVersions-get_instance", "parameters": [ { - "name": "fields[inAppPurchases]", + "name": "fields[gameCenterAppVersions]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "the fields to include for returned resources of type gameCenterAppVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" + "appStoreVersion", + "compatibilityVersions", + "enabled" ] } }, @@ -25736,58 +25995,8 @@ "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "content", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "pricePoints", - "promotedPurchase" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[inAppPurchaseAvailabilities]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "availableInNewTerritories", - "availableTerritories", - "inAppPurchase" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "inAppPurchaseV2", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "appStoreVersion", + "compatibilityVersions" ] } }, @@ -25796,104 +26005,34 @@ "required": false }, { - "name": "fields[promotedPurchases]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "ageRatingDeclaration", "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[inAppPurchasePricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customerPrice", - "inAppPurchaseV2", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[inAppPurchaseLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "description", - "inAppPurchaseV2", - "locale", - "name", - "state" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[inAppPurchasePriceSchedules]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[inAppPurchaseContents]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseContents", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "fileName", - "fileSize", - "inAppPurchaseV2", - "lastModifiedDate", - "url" + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" ] } }, @@ -25902,26 +26041,15 @@ "required": false }, { - "name": "limit[inAppPurchaseLocalizations]", + "name": "limit[compatibilityVersions]", "in": "query", - "description": "maximum number of related inAppPurchaseLocalizations returned (when they are included)", + "description": "maximum number of related compatibilityVersions returned (when they are included)", "schema": { "type": "integer", "maximum": 50 }, "style": "form", "required": false - }, - { - "name": "limit[pricePoints]", - "in": "query", - "description": "maximum number of related pricePoints returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 8000 - }, - "style": "form", - "required": false } ], "responses": { @@ -25956,11 +26084,11 @@ } }, "200": { - "description": "Single InAppPurchase", + "description": "Single GameCenterAppVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseV2Response" + "$ref": "#/components/schemas/GameCenterAppVersionResponse" } } } @@ -25969,15 +26097,15 @@ }, "patch": { "tags": [ - "InAppPurchases" + "GameCenterAppVersions" ], - "operationId": "inAppPurchases-update_instance", + "operationId": "gameCenterAppVersions-update_instance", "requestBody": { - "description": "InAppPurchase representation", + "description": "GameCenterAppVersion representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseV2UpdateRequest" + "$ref": "#/components/schemas/GameCenterAppVersionUpdateRequest" } } }, @@ -26015,11 +26143,11 @@ } }, "200": { - "description": "Single InAppPurchase", + "description": "Single GameCenterAppVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseV2Response" + "$ref": "#/components/schemas/GameCenterAppVersionResponse" } } } @@ -26036,11 +26164,36 @@ } } }, - "delete": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails": { + "post": { "tags": [ - "InAppPurchases" + "GameCenterDetails" ], - "operationId": "inAppPurchases-delete_instance", + "operationId": "gameCenterDetails-create_instance", + "requestBody": { + "description": "GameCenterDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailCreateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -26062,12 +26215,12 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single GameCenterDetail", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GameCenterDetailResponse" } } } @@ -26081,40 +26234,40 @@ } } } - }, - "204": { - "description": "Success (no content)" } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/preReleaseVersions": { + "/v1/gameCenterDetails/{id}": { "get": { "tags": [ - "PreReleaseVersions" + "GameCenterDetails" ], - "operationId": "preReleaseVersions-get_collection", + "operationId": "gameCenterDetails-get_instance", "parameters": [ { - "name": "filter[builds.expired]", + "name": "fields[gameCenterDetails]", "in": "query", - "description": "filter by attribute 'builds.expired'", + "description": "the fields to include for returned resources of type gameCenterDetails", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] } }, "style": "form", @@ -26122,18 +26275,25 @@ "required": false }, { - "name": "filter[builds.processingState]", + "name": "include", "in": "query", - "description": "filter by attribute 'builds.processingState'", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "PROCESSING", - "FAILED", - "INVALID", - "VALID" + "achievementReleases", + "app", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" ] } }, @@ -26142,13 +26302,18 @@ "required": false }, { - "name": "filter[builds.version]", + "name": "fields[gameCenterAchievementReleases]", "in": "query", - "description": "filter by attribute 'builds.version'", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] } }, "style": "form", @@ -26156,17 +26321,17 @@ "required": false }, { - "name": "filter[platform]", + "name": "fields[gameCenterLeaderboardSetReleases]", "in": "query", - "description": "filter by attribute 'platform'", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IOS", - "MAC_OS", - "TV_OS" + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" ] } }, @@ -26175,27 +26340,23 @@ "required": false }, { - "name": "filter[version]", + "name": "fields[gameCenterLeaderboardSets]", "in": "query", - "description": "filter by attribute 'version'", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", "schema": { "type": "array", "items": { - "type": "string" - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "filter[app]", - "in": "query", - "description": "filter by id(s) of related 'app'", - "schema": { - "type": "array", - "items": { - "type": "string" + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] } }, "style": "form", @@ -26203,13 +26364,20 @@ "required": false }, { - "name": "filter[builds]", + "name": "fields[gameCenterGroups]", "in": "query", - "description": "filter by id(s) of related 'builds'", + "description": "the fields to include for returned resources of type gameCenterGroups", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] } }, "style": "form", @@ -26217,16 +26385,31 @@ "required": false }, { - "name": "sort", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "version", - "-version" + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" ] } }, @@ -26235,18 +26418,25 @@ "required": false }, { - "name": "fields[preReleaseVersions]", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "the fields to include for returned resources of type preReleaseVersions", + "description": "the fields to include for returned resources of type gameCenterAchievements", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "builds", - "platform", - "version" + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" ] } }, @@ -26255,26 +26445,17 @@ "required": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[gameCenterAppVersions]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type gameCenterAppVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "builds" + "appStoreVersion", + "compatibilityVersions", + "enabled" ] } }, @@ -26283,56 +26464,17 @@ "required": false }, { - "name": "fields[apps]", + "name": "fields[gameCenterLeaderboardReleases]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "gameCenterDetail", + "gameCenterLeaderboard", + "live" ] } }, @@ -26341,238 +26483,75 @@ "required": false }, { - "name": "fields[builds]", + "name": "limit[achievementReleases]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "maximum number of related achievementReleases returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "limit[builds]", + "name": "limit[gameCenterAchievements]", "in": "query", - "description": "maximum number of related builds returned (when they are included)", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", "schema": { "type": "integer", "maximum": 50 }, "style": "form", "required": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "200": { - "description": "List of PreReleaseVersions", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PreReleaseVersionsResponse" - } - } - } - } - } - } - }, - "/v1/preReleaseVersions/{id}": { - "get": { - "tags": [ - "PreReleaseVersions" - ], - "operationId": "preReleaseVersions-get_instance", - "parameters": [ { - "name": "fields[preReleaseVersions]", + "name": "limit[gameCenterAppVersions]", "in": "query", - "description": "the fields to include for returned resources of type preReleaseVersions", + "description": "maximum number of related gameCenterAppVersions returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "builds", - "platform", - "version" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "include", + "name": "limit[gameCenterLeaderboardSets]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "builds" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "fields[apps]", + "name": "limit[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "fields[builds]", + "name": "limit[leaderboardReleases]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "maximum number of related leaderboardReleases returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "limit[builds]", + "name": "limit[leaderboardSetReleases]", "in": "query", - "description": "maximum number of related builds returned (when they are included)", + "description": "maximum number of related leaderboardSetReleases returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -26613,11 +26592,80 @@ } }, "200": { - "description": "Single PreReleaseVersion", + "description": "Single GameCenterDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-update_instance", + "requestBody": { + "description": "GameCenterDetail representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PreReleaseVersionResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -26637,17 +26685,17 @@ } ] }, - "/v1/profiles": { + "/v1/gameCenterGroups": { "get": { "tags": [ - "Profiles" + "GameCenterGroups" ], - "operationId": "profiles-get_collection", + "operationId": "gameCenterGroups-get_collection", "parameters": [ { - "name": "filter[name]", + "name": "filter[gameCenterDetails]", "in": "query", - "description": "filter by attribute 'name'", + "description": "filter by id(s) of related 'gameCenterDetails'", "schema": { "type": "array", "items": { @@ -26659,16 +26707,19 @@ "required": false }, { - "name": "filter[profileState]", + "name": "fields[gameCenterGroups]", "in": "query", - "description": "filter by attribute 'profileState'", + "description": "the fields to include for returned resources of type gameCenterGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ACTIVE", - "INVALID" + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" ] } }, @@ -26677,43 +26728,29 @@ "required": false }, { - "name": "filter[profileType]", + "name": "limit", "in": "query", - "description": "filter by attribute 'profileType'", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IOS_APP_DEVELOPMENT", - "IOS_APP_STORE", - "IOS_APP_ADHOC", - "IOS_APP_INHOUSE", - "MAC_APP_DEVELOPMENT", - "MAC_APP_STORE", - "MAC_APP_DIRECT", - "TVOS_APP_DEVELOPMENT", - "TVOS_APP_STORE", - "TVOS_APP_ADHOC", - "TVOS_APP_INHOUSE", - "MAC_CATALYST_APP_DEVELOPMENT", - "MAC_CATALYST_APP_STORE", - "MAC_CATALYST_APP_DIRECT" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false, - "required": false + "style": "form" }, { - "name": "filter[id]", + "name": "include", "in": "query", - "description": "filter by id(s)", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards" + ] } }, "style": "form", @@ -26721,22 +26758,22 @@ "required": false }, { - "name": "sort", + "name": "fields[gameCenterLeaderboardSets]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "id", - "-id", - "name", - "-name", - "profileState", - "-profileState", - "profileType", - "-profileType" + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" ] } }, @@ -26745,25 +26782,27 @@ "required": false }, { - "name": "fields[profiles]", + "name": "fields[gameCenterDetails]", "in": "query", - "description": "the fields to include for returned resources of type profiles", + "description": "the fields to include for returned resources of type gameCenterDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "bundleId", - "certificates", - "createdDate", - "devices", - "expirationDate", - "name", - "platform", - "profileContent", - "profileState", - "profileType", - "uuid" + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" ] } }, @@ -26772,27 +26811,31 @@ "required": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "bundleId", - "certificates", - "devices" + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" ] } }, @@ -26801,22 +26844,25 @@ "required": false }, { - "name": "fields[certificates]", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "the fields to include for returned resources of type certificates", + "description": "the fields to include for returned resources of type gameCenterAchievements", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "certificateContent", - "certificateType", - "csrContent", - "displayName", - "expirationDate", - "name", - "platform", - "serialNumber" + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" ] } }, @@ -26825,55 +26871,31 @@ "required": false }, { - "name": "fields[devices]", + "name": "limit[gameCenterAchievements]", "in": "query", - "description": "the fields to include for returned resources of type devices", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "addedDate", - "deviceClass", - "model", - "name", - "platform", - "status", - "udid" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "fields[bundleIds]", + "name": "limit[gameCenterDetails]", "in": "query", - "description": "the fields to include for returned resources of type bundleIds", + "description": "maximum number of related gameCenterDetails returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "bundleIdCapabilities", - "identifier", - "name", - "platform", - "profiles", - "seedId" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "limit[certificates]", + "name": "limit[gameCenterLeaderboardSets]", "in": "query", - "description": "maximum number of related certificates returned (when they are included)", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -26882,9 +26904,9 @@ "required": false }, { - "name": "limit[devices]", + "name": "limit[gameCenterLeaderboards]", "in": "query", - "description": "maximum number of related devices returned (when they are included)", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -26915,11 +26937,11 @@ } }, "200": { - "description": "List of Profiles", + "description": "List of GameCenterGroups", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProfilesResponse" + "$ref": "#/components/schemas/GameCenterGroupsResponse" } } } @@ -26928,15 +26950,15 @@ }, "post": { "tags": [ - "Profiles" + "GameCenterGroups" ], - "operationId": "profiles-create_instance", + "operationId": "gameCenterGroups-create_instance", "requestBody": { - "description": "Profile representation", + "description": "GameCenterGroup representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProfileCreateRequest" + "$ref": "#/components/schemas/GameCenterGroupCreateRequest" } } }, @@ -26964,11 +26986,11 @@ } }, "201": { - "description": "Single Profile", + "description": "Single GameCenterGroup", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProfileResponse" + "$ref": "#/components/schemas/GameCenterGroupResponse" } } } @@ -26986,33 +27008,27 @@ } } }, - "/v1/profiles/{id}": { + "/v1/gameCenterGroups/{id}": { "get": { "tags": [ - "Profiles" + "GameCenterGroups" ], - "operationId": "profiles-get_instance", + "operationId": "gameCenterGroups-get_instance", "parameters": [ { - "name": "fields[profiles]", + "name": "fields[gameCenterGroups]", "in": "query", - "description": "the fields to include for returned resources of type profiles", + "description": "the fields to include for returned resources of type gameCenterGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "bundleId", - "certificates", - "createdDate", - "devices", - "expirationDate", - "name", - "platform", - "profileContent", - "profileState", - "profileType", - "uuid" + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" ] } }, @@ -27029,9 +27045,10 @@ "items": { "type": "string", "enum": [ - "bundleId", - "certificates", - "devices" + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards" ] } }, @@ -27040,22 +27057,22 @@ "required": false }, { - "name": "fields[certificates]", + "name": "fields[gameCenterLeaderboardSets]", "in": "query", - "description": "the fields to include for returned resources of type certificates", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "certificateContent", - "certificateType", - "csrContent", - "displayName", - "expirationDate", - "name", - "platform", - "serialNumber" + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" ] } }, @@ -27064,21 +27081,27 @@ "required": false }, { - "name": "fields[devices]", + "name": "fields[gameCenterDetails]", "in": "query", - "description": "the fields to include for returned resources of type devices", + "description": "the fields to include for returned resources of type gameCenterDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "addedDate", - "deviceClass", - "model", - "name", - "platform", - "status", - "udid" + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" ] } }, @@ -27087,21 +27110,31 @@ "required": false }, { - "name": "fields[bundleIds]", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type bundleIds", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "bundleIdCapabilities", - "identifier", - "name", - "platform", - "profiles", - "seedId" + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" ] } }, @@ -27110,9 +27143,36 @@ "required": false }, { - "name": "limit[certificates]", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "maximum number of related certificates returned (when they are included)", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[gameCenterAchievements]", + "in": "query", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -27121,9 +27181,31 @@ "required": false }, { - "name": "limit[devices]", + "name": "limit[gameCenterDetails]", "in": "query", - "description": "maximum number of related devices returned (when they are included)", + "description": "maximum number of related gameCenterDetails returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -27164,11 +27246,80 @@ } }, "200": { - "description": "Single Profile", + "description": "Single GameCenterGroup", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ProfileResponse" + "$ref": "#/components/schemas/GameCenterGroupResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-update_instance", + "requestBody": { + "description": "GameCenterGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -27177,9 +27328,9 @@ }, "delete": { "tags": [ - "Profiles" + "GameCenterGroups" ], - "operationId": "profiles-delete_instance", + "operationId": "gameCenterGroups-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -27239,18 +27390,18 @@ } ] }, - "/v1/promotedPurchaseImages": { + "/v1/gameCenterLeaderboardImages": { "post": { "tags": [ - "PromotedPurchaseImages" + "GameCenterLeaderboardImages" ], - "operationId": "promotedPurchaseImages-create_instance", + "operationId": "gameCenterLeaderboardImages-create_instance", "requestBody": { - "description": "PromotedPurchaseImage representation", + "description": "GameCenterLeaderboardImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseImageCreateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardImageCreateRequest" } } }, @@ -27278,11 +27429,11 @@ } }, "201": { - "description": "Single PromotedPurchaseImage", + "description": "Single GameCenterLeaderboardImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseImageResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardImageResponse" } } } @@ -27300,30 +27451,27 @@ } } }, - "/v1/promotedPurchaseImages/{id}": { + "/v1/gameCenterLeaderboardImages/{id}": { "get": { "tags": [ - "PromotedPurchaseImages" + "GameCenterLeaderboardImages" ], - "operationId": "promotedPurchaseImages-get_instance", + "operationId": "gameCenterLeaderboardImages-get_instance", "parameters": [ { - "name": "fields[promotedPurchaseImages]", + "name": "fields[gameCenterLeaderboardImages]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchaseImages", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetToken", - "assetType", + "assetDeliveryState", "fileName", "fileSize", + "gameCenterLeaderboardLocalization", "imageAsset", - "promotedPurchase", - "sourceFileChecksum", - "state", "uploadOperations", "uploaded" ] @@ -27342,7 +27490,7 @@ "items": { "type": "string", "enum": [ - "promotedPurchase" + "gameCenterLeaderboardLocalization" ] } }, @@ -27383,11 +27531,11 @@ } }, "200": { - "description": "Single PromotedPurchaseImage", + "description": "Single GameCenterLeaderboardImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseImageResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardImageResponse" } } } @@ -27396,15 +27544,15 @@ }, "patch": { "tags": [ - "PromotedPurchaseImages" + "GameCenterLeaderboardImages" ], - "operationId": "promotedPurchaseImages-update_instance", + "operationId": "gameCenterLeaderboardImages-update_instance", "requestBody": { - "description": "PromotedPurchaseImage representation", + "description": "GameCenterLeaderboardImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseImageUpdateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardImageUpdateRequest" } } }, @@ -27442,11 +27590,11 @@ } }, "200": { - "description": "Single PromotedPurchaseImage", + "description": "Single GameCenterLeaderboardImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseImageResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardImageResponse" } } } @@ -27465,9 +27613,9 @@ }, "delete": { "tags": [ - "PromotedPurchaseImages" + "GameCenterLeaderboardImages" ], - "operationId": "promotedPurchaseImages-delete_instance", + "operationId": "gameCenterLeaderboardImages-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -27527,18 +27675,18 @@ } ] }, - "/v1/promotedPurchases": { + "/v1/gameCenterLeaderboardLocalizations": { "post": { "tags": [ - "PromotedPurchases" + "GameCenterLeaderboardLocalizations" ], - "operationId": "promotedPurchases-create_instance", + "operationId": "gameCenterLeaderboardLocalizations-create_instance", "requestBody": { - "description": "PromotedPurchase representation", + "description": "GameCenterLeaderboardLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseCreateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationCreateRequest" } } }, @@ -27566,11 +27714,11 @@ } }, "201": { - "description": "Single PromotedPurchase", + "description": "Single GameCenterLeaderboardLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationResponse" } } } @@ -27588,29 +27736,29 @@ } } }, - "/v1/promotedPurchases/{id}": { + "/v1/gameCenterLeaderboardLocalizations/{id}": { "get": { "tags": [ - "PromotedPurchases" + "GameCenterLeaderboardLocalizations" ], - "operationId": "promotedPurchases-get_instance", + "operationId": "gameCenterLeaderboardLocalizations-get_instance", "parameters": [ { - "name": "fields[promotedPurchases]", + "name": "fields[gameCenterLeaderboardLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" ] } }, @@ -27627,9 +27775,8 @@ "items": { "type": "string", "enum": [ - "inAppPurchaseV2", - "promotionImages", - "subscription" + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" ] } }, @@ -27638,22 +27785,19 @@ "required": false }, { - "name": "fields[promotedPurchaseImages]", + "name": "fields[gameCenterLeaderboardImages]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchaseImages", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetToken", - "assetType", + "assetDeliveryState", "fileName", "fileSize", + "gameCenterLeaderboardLocalization", "imageAsset", - "promotedPurchase", - "sourceFileChecksum", - "state", "uploadOperations", "uploaded" ] @@ -27662,19 +27806,67 @@ "style": "form", "explode": false, "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "limit[promotionImages]", - "in": "query", - "description": "maximum number of related promotionImages returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationResponse" + } + } + } } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardLocalizations" ], + "operationId": "gameCenterLeaderboardLocalizations-update_instance", + "requestBody": { + "description": "GameCenterLeaderboardLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationUpdateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -27707,70 +27899,11 @@ } }, "200": { - "description": "Single PromotedPurchase", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PromotedPurchaseResponse" - } - } - } - } - } - }, - "patch": { - "tags": [ - "PromotedPurchases" - ], - "operationId": "promotedPurchases-update_instance", - "requestBody": { - "description": "PromotedPurchase representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PromotedPurchaseUpdateRequest" - } - } - }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single PromotedPurchase", + "description": "Single GameCenterLeaderboardLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationResponse" } } } @@ -27789,9 +27922,9 @@ }, "delete": { "tags": [ - "PromotedPurchases" + "GameCenterLeaderboardLocalizations" ], - "operationId": "promotedPurchases-delete_instance", + "operationId": "gameCenterLeaderboardLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -27851,18 +27984,18 @@ } ] }, - "/v1/reviewSubmissionItems": { + "/v1/gameCenterLeaderboardReleases": { "post": { "tags": [ - "ReviewSubmissionItems" + "GameCenterLeaderboardReleases" ], - "operationId": "reviewSubmissionItems-create_instance", + "operationId": "gameCenterLeaderboardReleases-create_instance", "requestBody": { - "description": "ReviewSubmissionItem representation", + "description": "GameCenterLeaderboardRelease representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionItemCreateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardReleaseCreateRequest" } } }, @@ -27890,11 +28023,11 @@ } }, "201": { - "description": "Single ReviewSubmissionItem", + "description": "Single GameCenterLeaderboardRelease", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionItemResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardReleaseResponse" } } } @@ -27912,23 +28045,51 @@ } } }, - "/v1/reviewSubmissionItems/{id}": { - "patch": { + "/v1/gameCenterLeaderboardReleases/{id}": { + "get": { "tags": [ - "ReviewSubmissionItems" + "GameCenterLeaderboardReleases" ], - "operationId": "reviewSubmissionItems-update_instance", - "requestBody": { - "description": "ReviewSubmissionItem representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReviewSubmissionItemUpdateRequest" + "operationId": "gameCenterLeaderboardReleases-get_instance", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "required": true - }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], "responses": { "400": { "description": "Parameter error(s)", @@ -27961,21 +28122,11 @@ } }, "200": { - "description": "Single ReviewSubmissionItem", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReviewSubmissionItemResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "description": "Single GameCenterLeaderboardRelease", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardReleaseResponse" } } } @@ -27984,9 +28135,9 @@ }, "delete": { "tags": [ - "ReviewSubmissionItems" + "GameCenterLeaderboardReleases" ], - "operationId": "reviewSubmissionItems-delete_instance", + "operationId": "gameCenterLeaderboardReleases-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -28046,207 +28197,18 @@ } ] }, - "/v1/reviewSubmissions": { - "get": { - "tags": [ - "ReviewSubmissions" - ], - "operationId": "reviewSubmissions-get_collection", - "parameters": [ - { - "name": "filter[platform]", - "in": "query", - "description": "filter by attribute 'platform'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IOS", - "MAC_OS", - "TV_OS" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "filter[state]", - "in": "query", - "description": "filter by attribute 'state'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "UNRESOLVED_ISSUES", - "CANCELING", - "COMPLETING", - "COMPLETE" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "filter[app]", - "in": "query", - "description": "filter by id(s) of related 'app'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false, - "required": true - }, - { - "name": "fields[reviewSubmissions]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionForReview", - "canceled", - "items", - "lastUpdatedByActor", - "platform", - "state", - "submitted", - "submittedByActor", - "submittedDate" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionForReview", - "items", - "lastUpdatedByActor", - "submittedByActor" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[reviewSubmissionItems]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissionItems", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appEvent", - "appStoreVersion", - "appStoreVersionExperiment", - "appStoreVersionExperimentV2", - "removed", - "resolved", - "reviewSubmission", - "state" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "limit[items]", - "in": "query", - "description": "maximum number of related items returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of ReviewSubmissions", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ReviewSubmissionsResponse" - } - } - } - } - } - }, + "/v1/gameCenterLeaderboardSetImages": { "post": { "tags": [ - "ReviewSubmissions" + "GameCenterLeaderboardSetImages" ], - "operationId": "reviewSubmissions-create_instance", + "operationId": "gameCenterLeaderboardSetImages-create_instance", "requestBody": { - "description": "ReviewSubmission representation", + "description": "GameCenterLeaderboardSetImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionCreateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageCreateRequest" } } }, @@ -28274,11 +28236,11 @@ } }, "201": { - "description": "Single ReviewSubmission", + "description": "Single GameCenterLeaderboardSetImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageResponse" } } } @@ -28296,32 +28258,29 @@ } } }, - "/v1/reviewSubmissions/{id}": { + "/v1/gameCenterLeaderboardSetImages/{id}": { "get": { "tags": [ - "ReviewSubmissions" + "GameCenterLeaderboardSetImages" ], - "operationId": "reviewSubmissions-get_instance", + "operationId": "gameCenterLeaderboardSetImages-get_instance", "parameters": [ { - "name": "fields[reviewSubmissions]", + "name": "fields[gameCenterLeaderboardSetImages]", "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissions", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreVersionForReview", - "canceled", - "items", - "lastUpdatedByActor", - "platform", - "state", - "submitted", - "submittedByActor", - "submittedDate" + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterLeaderboardSetLocalization", + "imageAsset", + "uploadOperations", + "uploaded" ] } }, @@ -28338,53 +28297,13 @@ "items": { "type": "string", "enum": [ - "app", - "appStoreVersionForReview", - "items", - "lastUpdatedByActor", - "submittedByActor" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[reviewSubmissionItems]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissionItems", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appEvent", - "appStoreVersion", - "appStoreVersionExperiment", - "appStoreVersionExperimentV2", - "removed", - "resolved", - "reviewSubmission", - "state" + "gameCenterLeaderboardSetLocalization" ] } }, "style": "form", "explode": false, "required": false - }, - { - "name": "limit[items]", - "in": "query", - "description": "maximum number of related items returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false } ], "responses": { @@ -28419,11 +28338,11 @@ } }, "200": { - "description": "Single ReviewSubmission", + "description": "Single GameCenterLeaderboardSetImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageResponse" } } } @@ -28432,15 +28351,15 @@ }, "patch": { "tags": [ - "ReviewSubmissions" + "GameCenterLeaderboardSetImages" ], - "operationId": "reviewSubmissions-update_instance", + "operationId": "gameCenterLeaderboardSetImages-update_instance", "requestBody": { - "description": "ReviewSubmission representation", + "description": "GameCenterLeaderboardSetImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionUpdateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageUpdateRequest" } } }, @@ -28478,11 +28397,59 @@ } }, "200": { - "description": "Single ReviewSubmission", + "description": "Single GameCenterLeaderboardSetImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSetImages" + ], + "operationId": "gameCenterLeaderboardSetImages-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -28496,6 +28463,9 @@ } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -28512,18 +28482,18 @@ } ] }, - "/v1/routingAppCoverages": { + "/v1/gameCenterLeaderboardSetLocalizations": { "post": { "tags": [ - "RoutingAppCoverages" + "GameCenterLeaderboardSetLocalizations" ], - "operationId": "routingAppCoverages-create_instance", + "operationId": "gameCenterLeaderboardSetLocalizations-create_instance", "requestBody": { - "description": "RoutingAppCoverage representation", + "description": "GameCenterLeaderboardSetLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoutingAppCoverageCreateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationCreateRequest" } } }, @@ -28551,11 +28521,11 @@ } }, "201": { - "description": "Single RoutingAppCoverage", + "description": "Single GameCenterLeaderboardSetLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoutingAppCoverageResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationResponse" } } } @@ -28573,29 +28543,26 @@ } } }, - "/v1/routingAppCoverages/{id}": { + "/v1/gameCenterLeaderboardSetLocalizations/{id}": { "get": { "tags": [ - "RoutingAppCoverages" + "GameCenterLeaderboardSetLocalizations" ], - "operationId": "routingAppCoverages-get_instance", + "operationId": "gameCenterLeaderboardSetLocalizations-get_instance", "parameters": [ { - "name": "fields[routingAppCoverages]", + "name": "fields[gameCenterLeaderboardSetLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type routingAppCoverages", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "assetDeliveryState", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" ] } }, @@ -28612,7 +28579,31 @@ "items": { "type": "string", "enum": [ - "appStoreVersion" + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterLeaderboardSetLocalization", + "imageAsset", + "uploadOperations", + "uploaded" ] } }, @@ -28653,11 +28644,11 @@ } }, "200": { - "description": "Single RoutingAppCoverage", + "description": "Single GameCenterLeaderboardSetLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoutingAppCoverageResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationResponse" } } } @@ -28666,15 +28657,15 @@ }, "patch": { "tags": [ - "RoutingAppCoverages" + "GameCenterLeaderboardSetLocalizations" ], - "operationId": "routingAppCoverages-update_instance", + "operationId": "gameCenterLeaderboardSetLocalizations-update_instance", "requestBody": { - "description": "RoutingAppCoverage representation", + "description": "GameCenterLeaderboardSetLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoutingAppCoverageUpdateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationUpdateRequest" } } }, @@ -28712,11 +28703,11 @@ } }, "200": { - "description": "Single RoutingAppCoverage", + "description": "Single GameCenterLeaderboardSetLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoutingAppCoverageResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationResponse" } } } @@ -28735,9 +28726,9 @@ }, "delete": { "tags": [ - "RoutingAppCoverages" + "GameCenterLeaderboardSetLocalizations" ], - "operationId": "routingAppCoverages-delete_instance", + "operationId": "gameCenterLeaderboardSetLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -28797,27 +28788,21 @@ } ] }, - "/v1/salesReports": { + "/v1/gameCenterLeaderboardSetMemberLocalizations": { "get": { "tags": [ - "SalesReports" + "GameCenterLeaderboardSetMemberLocalizations" ], - "operationId": "salesReports-get_collection", + "operationId": "gameCenterLeaderboardSetMemberLocalizations-get_collection", "parameters": [ { - "name": "filter[frequency]", + "name": "filter[gameCenterLeaderboard]", "in": "query", - "description": "filter by attribute 'frequency'", + "description": "filter by id(s) of related 'gameCenterLeaderboard'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "DAILY", - "WEEKLY", - "MONTHLY", - "YEARLY" - ] + "type": "string" } }, "style": "form", @@ -28825,9 +28810,9 @@ "required": true }, { - "name": "filter[reportDate]", + "name": "filter[gameCenterLeaderboardSet]", "in": "query", - "description": "filter by attribute 'reportDate'", + "description": "filter by id(s) of related 'gameCenterLeaderboardSet'", "schema": { "type": "array", "items": { @@ -28836,71 +28821,107 @@ }, "style": "form", "explode": false, - "required": false + "required": true }, { - "name": "filter[reportSubType]", + "name": "fields[gameCenterLeaderboardSetMemberLocalizations]", "in": "query", - "description": "filter by attribute 'reportSubType'", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetMemberLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "SUMMARY", - "DETAILED" + "gameCenterLeaderboard", + "gameCenterLeaderboardSet", + "locale", + "name" ] } }, "style": "form", "explode": false, - "required": true + "required": false }, { - "name": "filter[reportType]", + "name": "limit", "in": "query", - "description": "filter by attribute 'reportType'", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "SALES", - "PRE_ORDER", - "NEWSSTAND", - "SUBSCRIPTION", - "SUBSCRIPTION_EVENT", - "SUBSCRIBER", - "SUBSCRIPTION_OFFER_CODE_REDEMPTION" + "gameCenterLeaderboard", + "gameCenterLeaderboardSet" ] } }, "style": "form", "explode": false, - "required": true + "required": false }, { - "name": "filter[vendorNumber]", + "name": "fields[gameCenterLeaderboardSets]", "in": "query", - "description": "filter by attribute 'vendorNumber'", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] } }, "style": "form", "explode": false, - "required": true + "required": false }, { - "name": "filter[version]", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "filter by attribute 'version'", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] } }, "style": "form", @@ -28930,59 +28951,33 @@ } }, "200": { - "description": "List of SalesReports", + "description": "List of GameCenterLeaderboardSetMemberLocalizations", "content": { - "application/a-gzip": { + "application/json": { "schema": { - "$ref": "#/components/schemas/gzip" + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationsResponse" } } } } } - } - }, - "/v2/sandboxTesters": { - "get": { + }, + "post": { "tags": [ - "SandboxTesters" + "GameCenterLeaderboardSetMemberLocalizations" ], - "operationId": "sandboxTesters-get_collection", - "parameters": [ - { - "name": "fields[sandboxTesters]", - "in": "query", - "description": "the fields to include for returned resources of type sandboxTesters", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "acAccountName", - "applePayCompatible", - "firstName", - "interruptPurchases", - "lastName", - "subscriptionRenewalRate", - "territory" - ] + "operationId": "gameCenterLeaderboardSetMemberLocalizations-create_instance", + "requestBody": { + "description": "GameCenterLeaderboardSetMemberLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationCreateRequest" } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -29004,12 +28999,22 @@ } } }, - "200": { - "description": "List of SandboxTesters", + "201": { + "description": "Single GameCenterLeaderboardSetMemberLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SandboxTestersV2Response" + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -29017,18 +29022,18 @@ } } }, - "/v2/sandboxTesters/{id}": { + "/v1/gameCenterLeaderboardSetMemberLocalizations/{id}": { "patch": { "tags": [ - "SandboxTesters" + "GameCenterLeaderboardSetMemberLocalizations" ], - "operationId": "sandboxTesters-update_instance", + "operationId": "gameCenterLeaderboardSetMemberLocalizations-update_instance", "requestBody": { - "description": "SandboxTester representation", + "description": "GameCenterLeaderboardSetMemberLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SandboxTesterV2UpdateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationUpdateRequest" } } }, @@ -29066,11 +29071,11 @@ } }, "200": { - "description": "Single SandboxTester", + "description": "Single GameCenterLeaderboardSetMemberLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SandboxTesterV2Response" + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalizationResponse" } } } @@ -29087,36 +29092,11 @@ } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v2/sandboxTestersClearPurchaseHistoryRequest": { - "post": { + "delete": { "tags": [ - "SandboxTestersClearPurchaseHistoryRequest" + "GameCenterLeaderboardSetMemberLocalizations" ], - "operationId": "sandboxTestersClearPurchaseHistoryRequest-create_instance", - "requestBody": { - "description": "SandboxTestersClearPurchaseHistoryRequest representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest" - } - } - }, - "required": true - }, + "operationId": "gameCenterLeaderboardSetMemberLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -29138,12 +29118,12 @@ } } }, - "201": { - "description": "Single SandboxTestersClearPurchaseHistoryRequest", + "404": { + "description": "Not found error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SandboxTestersClearPurchaseHistoryRequestV2Response" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -29157,56 +29137,42 @@ } } } + }, + "204": { + "description": "Success (no content)" } } - } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] }, - "/v1/scmGitReferences/{id}": { - "get": { + "/v1/gameCenterLeaderboardSetReleases": { + "post": { "tags": [ - "ScmGitReferences" + "GameCenterLeaderboardSetReleases" ], - "operationId": "scmGitReferences-get_instance", - "parameters": [ - { - "name": "fields[scmGitReferences]", - "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" - ] + "operationId": "gameCenterLeaderboardSetReleases-create_instance", + "requestBody": { + "description": "GameCenterLeaderboardSetRelease representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleaseCreateRequest" } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "repository" - ] - } - }, - "style": "form", - "explode": false, - "required": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -29228,60 +29194,48 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single GameCenterLeaderboardSetRelease", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleaseResponse" } } } }, - "200": { - "description": "Single ScmGitReference", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmGitReferenceResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/scmProviders": { + "/v1/gameCenterLeaderboardSetReleases/{id}": { "get": { "tags": [ - "ScmProviders" + "GameCenterLeaderboardSetReleases" ], - "operationId": "scmProviders-get_collection", + "operationId": "gameCenterLeaderboardSetReleases-get_instance", "parameters": [ { - "name": "fields[scmProviders]", + "name": "fields[gameCenterLeaderboardSetReleases]", "in": "query", - "description": "the fields to include for returned resources of type scmProviders", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "repositories", - "scmProviderType", - "url" + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" ] } }, @@ -29290,33 +29244,16 @@ "required": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "fields[scmRepositories]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" + "gameCenterDetail", + "gameCenterLeaderboardSet" ] } }, @@ -29346,71 +29283,33 @@ } } }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "200": { - "description": "List of ScmProviders", + "description": "Single GameCenterLeaderboardSetRelease", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmProvidersResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleaseResponse" } } } } } - } - }, - "/v1/scmProviders/{id}": { - "get": { + }, + "delete": { "tags": [ - "ScmProviders" - ], - "operationId": "scmProviders-get_instance", - "parameters": [ - { - "name": "fields[scmProviders]", - "in": "query", - "description": "the fields to include for returned resources of type scmProviders", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "repositories", - "scmProviderType", - "url" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[scmRepositories]", - "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" - ] - } - }, - "style": "form", - "explode": false, - "required": false - } + "GameCenterLeaderboardSetReleases" ], + "operationId": "gameCenterLeaderboardSetReleases-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -29442,15 +29341,18 @@ } } }, - "200": { - "description": "Single ScmProvider", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmProviderResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -29467,59 +29369,23 @@ } ] }, - "/v1/scmPullRequests/{id}": { - "get": { + "/v1/gameCenterLeaderboardSets": { + "post": { "tags": [ - "ScmPullRequests" + "GameCenterLeaderboardSets" ], - "operationId": "scmPullRequests-get_instance", - "parameters": [ - { - "name": "fields[scmPullRequests]", - "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" - ] + "operationId": "gameCenterLeaderboardSets-create_instance", + "requestBody": { + "description": "GameCenterLeaderboardSet representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetCreateRequest" } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "repository" - ] - } - }, - "style": "form", - "explode": false, - "required": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -29541,56 +29407,54 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single GameCenterLeaderboardSet", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" } } } }, - "200": { - "description": "Single ScmPullRequest", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmPullRequestResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/scmRepositories": { + "/v1/gameCenterLeaderboardSets/{id}": { "get": { "tags": [ - "ScmRepositories" + "GameCenterLeaderboardSets" ], - "operationId": "scmRepositories-get_collection", + "operationId": "gameCenterLeaderboardSets-get_instance", "parameters": [ { - "name": "filter[id]", + "name": "fields[gameCenterLeaderboardSets]", "in": "query", - "description": "filter by id(s)", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] } }, "style": "form", @@ -29598,23 +29462,20 @@ "required": false }, { - "name": "fields[scmRepositories]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "releases" ] } }, @@ -29623,26 +29484,18 @@ "required": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[gameCenterLeaderboardSetLocalizations]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "scmProvider" + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" ] } }, @@ -29651,19 +29504,17 @@ "required": false }, { - "name": "fields[scmGitReferences]", + "name": "fields[gameCenterLeaderboardSetReleases]", "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" ] } }, @@ -29672,132 +29523,31 @@ "required": false }, { - "name": "fields[scmPullRequests]", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" - ] - } - }, - "style": "form", - "explode": false, - "required": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of ScmRepositories", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScmRepositoriesResponse" - } - } - } - } - } - } - }, - "/v1/scmRepositories/{id}": { - "get": { - "tags": [ - "ScmRepositories" - ], - "operationId": "scmRepositories-get_instance", - "parameters": [ - { - "name": "fields[scmRepositories]", - "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "scmProvider" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[scmGitReferences]", - "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" ] } }, @@ -29806,199 +29556,36 @@ "required": false }, { - "name": "fields[scmPullRequests]", + "name": "limit[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single ScmRepository", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScmRepositoryResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionAppStoreReviewScreenshots": { - "post": { - "tags": [ - "SubscriptionAppStoreReviewScreenshots" - ], - "operationId": "subscriptionAppStoreReviewScreenshots-create_instance", - "requestBody": { - "description": "SubscriptionAppStoreReviewScreenshot representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotCreateRequest" - } - } - }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "201": { - "description": "Single SubscriptionAppStoreReviewScreenshot", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/v1/subscriptionAppStoreReviewScreenshots/{id}": { - "get": { - "tags": [ - "SubscriptionAppStoreReviewScreenshots" - ], - "operationId": "subscriptionAppStoreReviewScreenshots-get_instance", - "parameters": [ { - "name": "fields[subscriptionAppStoreReviewScreenshots]", + "name": "limit[localizations]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "description": "maximum number of related localizations returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "subscription", - "uploadOperations", - "uploaded" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false }, { - "name": "include", + "name": "limit[releases]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "maximum number of related releases returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "subscription" - ] - } + "type": "integer", + "maximum": 50 }, "style": "form", - "explode": false, "required": false } ], @@ -30034,11 +29621,11 @@ } }, "200": { - "description": "Single SubscriptionAppStoreReviewScreenshot", + "description": "Single GameCenterLeaderboardSet", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" } } } @@ -30047,15 +29634,15 @@ }, "patch": { "tags": [ - "SubscriptionAppStoreReviewScreenshots" + "GameCenterLeaderboardSets" ], - "operationId": "subscriptionAppStoreReviewScreenshots-update_instance", + "operationId": "gameCenterLeaderboardSets-update_instance", "requestBody": { - "description": "SubscriptionAppStoreReviewScreenshot representation", + "description": "GameCenterLeaderboardSet representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotUpdateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardSetUpdateRequest" } } }, @@ -30093,11 +29680,11 @@ } }, "200": { - "description": "Single SubscriptionAppStoreReviewScreenshot", + "description": "Single GameCenterLeaderboardSet", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" } } } @@ -30116,9 +29703,9 @@ }, "delete": { "tags": [ - "SubscriptionAppStoreReviewScreenshots" + "GameCenterLeaderboardSets" ], - "operationId": "subscriptionAppStoreReviewScreenshots-delete_instance", + "operationId": "gameCenterLeaderboardSets-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -30178,18 +29765,18 @@ } ] }, - "/v1/subscriptionAvailabilities": { + "/v1/gameCenterLeaderboards": { "post": { "tags": [ - "SubscriptionAvailabilities" + "GameCenterLeaderboards" ], - "operationId": "subscriptionAvailabilities-create_instance", + "operationId": "gameCenterLeaderboards-create_instance", "requestBody": { - "description": "SubscriptionAvailability representation", + "description": "GameCenterLeaderboard representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAvailabilityCreateRequest" + "$ref": "#/components/schemas/GameCenterLeaderboardCreateRequest" } } }, @@ -30217,11 +29804,11 @@ } }, "201": { - "description": "Single SubscriptionAvailability", + "description": "Single GameCenterLeaderboard", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" } } } @@ -30239,25 +29826,39 @@ } } }, - "/v1/subscriptionAvailabilities/{id}": { + "/v1/gameCenterLeaderboards/{id}": { "get": { "tags": [ - "SubscriptionAvailabilities" + "GameCenterLeaderboards" ], - "operationId": "subscriptionAvailabilities-get_instance", + "operationId": "gameCenterLeaderboards-get_instance", "parameters": [ { - "name": "fields[subscriptionAvailabilities]", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionAvailabilities", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "availableInNewTerritories", - "availableTerritories", - "subscription" + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" ] } }, @@ -30274,8 +29875,12 @@ "items": { "type": "string", "enum": [ - "availableTerritories", - "subscription" + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "releases" ] } }, @@ -30284,15 +29889,21 @@ "required": false }, { - "name": "fields[territories]", + "name": "fields[gameCenterLeaderboardLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" ] } }, @@ -30301,9 +29912,50 @@ "required": false }, { - "name": "limit[availableTerritories]", + "name": "fields[gameCenterLeaderboardReleases]", "in": "query", - "description": "maximum number of related availableTerritories returned (when they are included)", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -30344,58 +29996,33 @@ } }, "200": { - "description": "Single SubscriptionAvailability", + "description": "Single GameCenterLeaderboard", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionGracePeriods/{id}": { - "get": { + "patch": { "tags": [ - "SubscriptionGracePeriods" + "GameCenterLeaderboards" ], - "operationId": "subscriptionGracePeriods-get_instance", - "parameters": [ - { - "name": "fields[subscriptionGracePeriods]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionGracePeriods", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "duration", - "optIn", - "renewalType", - "sandboxOptIn" - ] + "operationId": "gameCenterLeaderboards-update_instance", + "requestBody": { + "description": "GameCenterLeaderboard representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardUpdateRequest" } - }, - "style": "form", - "explode": false, - "required": false - } - ], + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -30428,33 +30055,32 @@ } }, "200": { - "description": "Single SubscriptionGracePeriod", + "description": "Single GameCenterLeaderboard", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } } } }, - "patch": { + "delete": { "tags": [ - "SubscriptionGracePeriods" + "GameCenterLeaderboards" ], - "operationId": "subscriptionGracePeriods-update_instance", - "requestBody": { - "description": "SubscriptionGracePeriod representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionGracePeriodUpdateRequest" - } - } - }, - "required": true - }, + "operationId": "gameCenterLeaderboards-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -30486,16 +30112,6 @@ } } }, - "200": { - "description": "Single SubscriptionGracePeriod", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" - } - } - } - }, "409": { "description": "Request entity error(s)", "content": { @@ -30505,6 +30121,9 @@ } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -30521,18 +30140,18 @@ } ] }, - "/v1/subscriptionGroupLocalizations": { + "/v1/inAppPurchaseAppStoreReviewScreenshots": { "post": { "tags": [ - "SubscriptionGroupLocalizations" + "InAppPurchaseAppStoreReviewScreenshots" ], - "operationId": "subscriptionGroupLocalizations-create_instance", + "operationId": "inAppPurchaseAppStoreReviewScreenshots-create_instance", "requestBody": { - "description": "SubscriptionGroupLocalization representation", + "description": "InAppPurchaseAppStoreReviewScreenshot representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupLocalizationCreateRequest" + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotCreateRequest" } } }, @@ -30560,11 +30179,11 @@ } }, "201": { - "description": "Single SubscriptionGroupLocalization", + "description": "Single InAppPurchaseAppStoreReviewScreenshot", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" } } } @@ -30582,27 +30201,32 @@ } } }, - "/v1/subscriptionGroupLocalizations/{id}": { + "/v1/inAppPurchaseAppStoreReviewScreenshots/{id}": { "get": { "tags": [ - "SubscriptionGroupLocalizations" + "InAppPurchaseAppStoreReviewScreenshots" ], - "operationId": "subscriptionGroupLocalizations-get_instance", + "operationId": "inAppPurchaseAppStoreReviewScreenshots-get_instance", "parameters": [ { - "name": "fields[subscriptionGroupLocalizations]", + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customAppName", - "locale", - "name", - "state", - "subscriptionGroup" + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "inAppPurchaseV2", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, @@ -30619,7 +30243,7 @@ "items": { "type": "string", "enum": [ - "subscriptionGroup" + "inAppPurchaseV2" ] } }, @@ -30660,11 +30284,11 @@ } }, "200": { - "description": "Single SubscriptionGroupLocalization", + "description": "Single InAppPurchaseAppStoreReviewScreenshot", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" } } } @@ -30673,15 +30297,15 @@ }, "patch": { "tags": [ - "SubscriptionGroupLocalizations" + "InAppPurchaseAppStoreReviewScreenshots" ], - "operationId": "subscriptionGroupLocalizations-update_instance", + "operationId": "inAppPurchaseAppStoreReviewScreenshots-update_instance", "requestBody": { - "description": "SubscriptionGroupLocalization representation", + "description": "InAppPurchaseAppStoreReviewScreenshot representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupLocalizationUpdateRequest" + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotUpdateRequest" } } }, @@ -30719,11 +30343,11 @@ } }, "200": { - "description": "Single SubscriptionGroupLocalization", + "description": "Single InAppPurchaseAppStoreReviewScreenshot", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" } } } @@ -30742,9 +30366,9 @@ }, "delete": { "tags": [ - "SubscriptionGroupLocalizations" + "InAppPurchaseAppStoreReviewScreenshots" ], - "operationId": "subscriptionGroupLocalizations-delete_instance", + "operationId": "inAppPurchaseAppStoreReviewScreenshots-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -30804,18 +30428,18 @@ } ] }, - "/v1/subscriptionGroupSubmissions": { + "/v1/inAppPurchaseAvailabilities": { "post": { "tags": [ - "SubscriptionGroupSubmissions" + "InAppPurchaseAvailabilities" ], - "operationId": "subscriptionGroupSubmissions-create_instance", + "operationId": "inAppPurchaseAvailabilities-create_instance", "requestBody": { - "description": "SubscriptionGroupSubmission representation", + "description": "InAppPurchaseAvailability representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupSubmissionCreateRequest" + "$ref": "#/components/schemas/InAppPurchaseAvailabilityCreateRequest" } } }, @@ -30843,11 +30467,11 @@ } }, "201": { - "description": "Single SubscriptionGroupSubmission", + "description": "Single InAppPurchaseAvailability", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupSubmissionResponse" + "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" } } } @@ -30865,87 +30489,25 @@ } } }, - "/v1/subscriptionGroups": { - "post": { + "/v1/inAppPurchaseAvailabilities/{id}": { + "get": { "tags": [ - "SubscriptionGroups" - ], - "operationId": "subscriptionGroups-create_instance", - "requestBody": { - "description": "SubscriptionGroup representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionGroupCreateRequest" - } - } - }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "201": { - "description": "Single SubscriptionGroup", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionGroupResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/v1/subscriptionGroups/{id}": { - "get": { - "tags": [ - "SubscriptionGroups" + "InAppPurchaseAvailabilities" ], - "operationId": "subscriptionGroups-get_instance", + "operationId": "inAppPurchaseAvailabilities-get_instance", "parameters": [ { - "name": "fields[subscriptionGroups]", + "name": "fields[inAppPurchaseAvailabilities]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroups", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "referenceName", - "subscriptionGroupLocalizations", - "subscriptions" + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" ] } }, @@ -30962,42 +30524,7 @@ "items": { "type": "string", "enum": [ - "subscriptionGroupLocalizations", - "subscriptions" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptions]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "availableTerritories" ] } }, @@ -31006,19 +30533,15 @@ "required": false }, { - "name": "fields[subscriptionGroupLocalizations]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customAppName", - "locale", - "name", - "state", - "subscriptionGroup" + "currency" ] } }, @@ -31027,20 +30550,9 @@ "required": false }, { - "name": "limit[subscriptionGroupLocalizations]", - "in": "query", - "description": "maximum number of related subscriptionGroupLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - }, - { - "name": "limit[subscriptions]", + "name": "limit[availableTerritories]", "in": "query", - "description": "maximum number of related subscriptions returned (when they are included)", + "description": "maximum number of related availableTerritories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -31081,33 +30593,76 @@ } }, "200": { - "description": "Single SubscriptionGroup", + "description": "Single InAppPurchaseAvailability", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupResponse" + "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" } } } } } }, - "patch": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchaseContents/{id}": { + "get": { "tags": [ - "SubscriptionGroups" + "InAppPurchaseContents" ], - "operationId": "subscriptionGroups-update_instance", - "requestBody": { - "description": "SubscriptionGroup representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionGroupUpdateRequest" + "operationId": "inAppPurchaseContents-get_instance", + "parameters": [ + { + "name": "fields[inAppPurchaseContents]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseContents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileName", + "fileSize", + "inAppPurchaseV2", + "lastModifiedDate", + "url" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "required": true - }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], "responses": { "400": { "description": "Parameter error(s)", @@ -31140,32 +30695,47 @@ } }, "200": { - "description": "Single SubscriptionGroup", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionGroupResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "description": "Single InAppPurchaseContent", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/InAppPurchaseContentResponse" } } } } } }, - "delete": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchaseLocalizations": { + "post": { "tags": [ - "SubscriptionGroups" + "InAppPurchaseLocalizations" ], - "operationId": "subscriptionGroups-delete_instance", + "operationId": "inAppPurchaseLocalizations-create_instance", + "requestBody": { + "description": "InAppPurchaseLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationCreateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -31187,12 +30757,12 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single InAppPurchaseLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" } } } @@ -31206,42 +30776,56 @@ } } } - }, - "204": { - "description": "Success (no content)" } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/subscriptionIntroductoryOffers": { - "post": { + "/v1/inAppPurchaseLocalizations/{id}": { + "get": { "tags": [ - "SubscriptionIntroductoryOffers" + "InAppPurchaseLocalizations" ], - "operationId": "subscriptionIntroductoryOffers-create_instance", - "requestBody": { - "description": "SubscriptionIntroductoryOffer representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOfferCreateRequest" + "operationId": "inAppPurchaseLocalizations-get_instance", + "parameters": [ + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "inAppPurchaseV2", + "locale", + "name", + "state" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "required": true - }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "explode": false, + "required": false + } + ], "responses": { "400": { "description": "Parameter error(s)", @@ -31263,41 +30847,39 @@ } } }, - "201": { - "description": "Single SubscriptionIntroductoryOffer", + "404": { + "description": "Not found error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOfferResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Single InAppPurchaseLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" } } } } } - } - }, - "/v1/subscriptionIntroductoryOffers/{id}": { + }, "patch": { "tags": [ - "SubscriptionIntroductoryOffers" + "InAppPurchaseLocalizations" ], - "operationId": "subscriptionIntroductoryOffers-update_instance", + "operationId": "inAppPurchaseLocalizations-update_instance", "requestBody": { - "description": "SubscriptionIntroductoryOffer representation", + "description": "InAppPurchaseLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOfferUpdateRequest" + "$ref": "#/components/schemas/InAppPurchaseLocalizationUpdateRequest" } } }, @@ -31335,11 +30917,11 @@ } }, "200": { - "description": "Single SubscriptionIntroductoryOffer", + "description": "Single InAppPurchaseLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOfferResponse" + "$ref": "#/components/schemas/InAppPurchaseLocalizationResponse" } } } @@ -31358,9 +30940,9 @@ }, "delete": { "tags": [ - "SubscriptionIntroductoryOffers" + "InAppPurchaseLocalizations" ], - "operationId": "subscriptionIntroductoryOffers-delete_instance", + "operationId": "inAppPurchaseLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -31420,18 +31002,18 @@ } ] }, - "/v1/subscriptionLocalizations": { + "/v1/inAppPurchasePriceSchedules": { "post": { "tags": [ - "SubscriptionLocalizations" + "InAppPurchasePriceSchedules" ], - "operationId": "subscriptionLocalizations-create_instance", + "operationId": "inAppPurchasePriceSchedules-create_instance", "requestBody": { - "description": "SubscriptionLocalization representation", + "description": "InAppPurchasePriceSchedule representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionLocalizationCreateRequest" + "$ref": "#/components/schemas/InAppPurchasePriceScheduleCreateRequest" } } }, @@ -31459,11 +31041,11 @@ } }, "201": { - "description": "Single SubscriptionLocalization", + "description": "Single InAppPurchasePriceSchedule", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionLocalizationResponse" + "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" } } } @@ -31481,27 +31063,26 @@ } } }, - "/v1/subscriptionLocalizations/{id}": { + "/v1/inAppPurchasePriceSchedules/{id}": { "get": { "tags": [ - "SubscriptionLocalizations" + "InAppPurchasePriceSchedules" ], - "operationId": "subscriptionLocalizations-get_instance", + "operationId": "inAppPurchasePriceSchedules-get_instance", "parameters": [ { - "name": "fields[subscriptionLocalizations]", + "name": "fields[inAppPurchasePriceSchedules]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionLocalizations", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "description", - "locale", - "name", - "state", - "subscription" + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" ] } }, @@ -31518,13 +31099,77 @@ "items": { "type": "string", "enum": [ - "subscription" + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "endDate", + "inAppPurchasePricePoint", + "inAppPurchaseV2", + "manual", + "startDate", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" ] } }, "style": "form", "explode": false, "required": false + }, + { + "name": "limit[automaticPrices]", + "in": "query", + "description": "maximum number of related automaticPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[manualPrices]", + "in": "query", + "description": "maximum number of related manualPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -31559,28 +31204,42 @@ } }, "200": { - "description": "Single SubscriptionLocalization", + "description": "Single InAppPurchasePriceSchedule", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionLocalizationResponse" + "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" } } } } } }, - "patch": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchaseSubmissions": { + "post": { "tags": [ - "SubscriptionLocalizations" + "InAppPurchaseSubmissions" ], - "operationId": "subscriptionLocalizations-update_instance", + "operationId": "inAppPurchaseSubmissions-create_instance", "requestBody": { - "description": "SubscriptionLocalization representation", + "description": "InAppPurchaseSubmission representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionLocalizationUpdateRequest" + "$ref": "#/components/schemas/InAppPurchaseSubmissionCreateRequest" } } }, @@ -31607,146 +31266,12 @@ } } }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single SubscriptionLocalization", + "201": { + "description": "Single InAppPurchaseSubmission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionLocalizationResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - }, - "delete": { - "tags": [ - "SubscriptionLocalizations" - ], - "operationId": "subscriptionLocalizations-delete_instance", - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodeCustomCodes": { - "post": { - "tags": [ - "SubscriptionOfferCodeCustomCodes" - ], - "operationId": "subscriptionOfferCodeCustomCodes-create_instance", - "requestBody": { - "description": "SubscriptionOfferCodeCustomCode representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeCreateRequest" - } - } - }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "201": { - "description": "Single SubscriptionOfferCodeCustomCode", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" + "$ref": "#/components/schemas/InAppPurchaseSubmissionResponse" } } } @@ -31764,28 +31289,28 @@ } } }, - "/v1/subscriptionOfferCodeCustomCodes/{id}": { + "/v1/inAppPurchases/{id}": { "get": { "tags": [ - "SubscriptionOfferCodeCustomCodes" + "InAppPurchases" ], - "operationId": "subscriptionOfferCodeCustomCodes-get_instance", + "operationId": "inAppPurchases-get_instance", + "deprecated": true, "parameters": [ { - "name": "fields[subscriptionOfferCodeCustomCodes]", + "name": "fields[inAppPurchases]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "description": "the fields to include for returned resources of type inAppPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "customCode", - "expirationDate", - "numberOfCodes", - "offerCode" + "apps", + "inAppPurchaseType", + "productId", + "referenceName", + "state" ] } }, @@ -31802,74 +31327,26 @@ "items": { "type": "string", "enum": [ - "offerCode" + "apps" ] } }, "style": "form", "explode": false, "required": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "200": { - "description": "Single SubscriptionOfferCodeCustomCode", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" - } - } - } + { + "name": "limit[apps]", + "in": "query", + "description": "maximum number of related apps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } - } - }, - "patch": { - "tags": [ - "SubscriptionOfferCodeCustomCodes" ], - "operationId": "subscriptionOfferCodeCustomCodes-update_instance", - "requestBody": { - "description": "SubscriptionOfferCodeCustomCode representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeUpdateRequest" - } - } - }, - "required": true - }, "responses": { "400": { "description": "Parameter error(s)", @@ -31902,21 +31379,11 @@ } }, "200": { - "description": "Single SubscriptionOfferCodeCustomCode", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "description": "Single InAppPurchase", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/InAppPurchaseResponse" } } } @@ -31936,18 +31403,18 @@ } ] }, - "/v1/subscriptionOfferCodeOneTimeUseCodes": { + "/v2/inAppPurchases": { "post": { "tags": [ - "SubscriptionOfferCodeOneTimeUseCodes" + "InAppPurchases" ], - "operationId": "subscriptionOfferCodeOneTimeUseCodes-create_instance", + "operationId": "inAppPurchasesV2-create_instance", "requestBody": { - "description": "SubscriptionOfferCodeOneTimeUseCode representation", + "description": "InAppPurchase representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeCreateRequest" + "$ref": "#/components/schemas/InAppPurchaseV2CreateRequest" } } }, @@ -31975,11 +31442,11 @@ } }, "201": { - "description": "Single SubscriptionOfferCodeOneTimeUseCode", + "description": "Single InAppPurchase", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + "$ref": "#/components/schemas/InAppPurchaseV2Response" } } } @@ -31997,28 +31464,38 @@ } } }, - "/v1/subscriptionOfferCodeOneTimeUseCodes/{id}": { + "/v2/inAppPurchases/{id}": { "get": { "tags": [ - "SubscriptionOfferCodeOneTimeUseCodes" + "InAppPurchases" ], - "operationId": "subscriptionOfferCodeOneTimeUseCodes-get_instance", + "operationId": "inAppPurchasesV2-get_instance", "parameters": [ { - "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "name": "fields[inAppPurchases]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "description": "the fields to include for returned resources of type inAppPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "expirationDate", - "numberOfCodes", - "offerCode", - "values" + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" ] } }, @@ -32035,7 +31512,13 @@ "items": { "type": "string", "enum": [ - "offerCode" + "appStoreReviewScreenshot", + "content", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "pricePoints", + "promotedPurchase" ] } }, @@ -32044,18 +31527,177 @@ "required": false }, { - "name": "fields[subscriptionOfferCodeOneTimeUseCodeValues]", + "name": "fields[inAppPurchaseAvailabilities]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodeValues", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "inAppPurchaseV2", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchasePricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "inAppPurchaseV2", + "priceTier", + "proceeds", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "inAppPurchaseV2", + "locale", + "name", + "state" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchasePriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[inAppPurchaseContents]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseContents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileName", + "fileSize", + "inAppPurchaseV2", + "lastModifiedDate", + "url" + ] } }, "style": "form", "explode": false, "required": false + }, + { + "name": "limit[inAppPurchaseLocalizations]", + "in": "query", + "description": "maximum number of related inAppPurchaseLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[pricePoints]", + "in": "query", + "description": "maximum number of related pricePoints returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form", + "required": false } ], "responses": { @@ -32090,11 +31732,11 @@ } }, "200": { - "description": "Single SubscriptionOfferCodeOneTimeUseCode", + "description": "Single InAppPurchase", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + "$ref": "#/components/schemas/InAppPurchaseV2Response" } } } @@ -32103,15 +31745,15 @@ }, "patch": { "tags": [ - "SubscriptionOfferCodeOneTimeUseCodes" + "InAppPurchases" ], - "operationId": "subscriptionOfferCodeOneTimeUseCodes-update_instance", + "operationId": "inAppPurchasesV2-update_instance", "requestBody": { - "description": "SubscriptionOfferCodeOneTimeUseCode representation", + "description": "InAppPurchase representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest" + "$ref": "#/components/schemas/InAppPurchaseV2UpdateRequest" } } }, @@ -32149,11 +31791,11 @@ } }, "200": { - "description": "Single SubscriptionOfferCodeOneTimeUseCode", + "description": "Single InAppPurchase", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + "$ref": "#/components/schemas/InAppPurchaseV2Response" } } } @@ -32170,36 +31812,11 @@ } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodes": { - "post": { + "delete": { "tags": [ - "SubscriptionOfferCodes" + "InAppPurchases" ], - "operationId": "subscriptionOfferCodes-create_instance", - "requestBody": { - "description": "SubscriptionOfferCode representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCreateRequest" - } - } - }, - "required": true - }, + "operationId": "inAppPurchasesV2-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -32221,12 +31838,12 @@ } } }, - "201": { - "description": "Single SubscriptionOfferCode", + "404": { + "description": "Not found error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -32240,38 +31857,59 @@ } } } + }, + "204": { + "description": "Success (no content)" } } - } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] }, - "/v1/subscriptionOfferCodes/{id}": { + "/v1/preReleaseVersions": { "get": { "tags": [ - "SubscriptionOfferCodes" + "PreReleaseVersions" ], - "operationId": "subscriptionOfferCodes-get_instance", + "operationId": "preReleaseVersions-get_collection", "parameters": [ { - "name": "fields[subscriptionOfferCodes]", + "name": "filter[builds.expired]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "description": "filter by attribute 'builds.expired'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[builds.processingState]", + "in": "query", + "description": "filter by attribute 'builds.processingState'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "customCodes", - "customerEligibilities", - "duration", - "name", - "numberOfPeriods", - "offerEligibility", - "offerMode", - "oneTimeUseCodes", - "prices", - "subscription", - "totalNumberOfCodes" + "PROCESSING", + "FAILED", + "INVALID", + "VALID" ] } }, @@ -32280,18 +31918,31 @@ "required": false }, { - "name": "include", + "name": "filter[builds.version]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "filter by attribute 'builds.version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customCodes", - "oneTimeUseCodes", - "prices", - "subscription" + "IOS", + "MAC_OS", + "TV_OS" ] } }, @@ -32300,20 +31951,58 @@ "required": false }, { - "name": "fields[subscriptionOfferCodeCustomCodes]", + "name": "filter[version]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "description": "filter by attribute 'version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[app]", + "in": "query", + "description": "filter by id(s) of related 'app'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[builds]", + "in": "query", + "description": "filter by id(s) of related 'builds'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "customCode", - "expirationDate", - "numberOfCodes", - "offerCode" + "version", + "-version" ] } }, @@ -32322,20 +32011,18 @@ "required": false }, { - "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "name": "fields[preReleaseVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "description": "the fields to include for returned resources of type preReleaseVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "expirationDate", - "numberOfCodes", - "offerCode", - "values" + "app", + "builds", + "platform", + "version" ] } }, @@ -32344,16 +32031,26 @@ "required": false }, { - "name": "fields[subscriptionOfferCodePrices]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "app", + "builds" ] } }, @@ -32362,31 +32059,109 @@ "required": false }, { - "name": "limit[customCodes]", + "name": "fields[apps]", "in": "query", - "description": "maximum number of related customCodes returned (when they are included)", + "description": "the fields to include for returned resources of type apps", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } }, "style": "form", + "explode": false, "required": false }, { - "name": "limit[oneTimeUseCodes]", + "name": "fields[builds]", "in": "query", - "description": "maximum number of related oneTimeUseCodes returned (when they are included)", + "description": "the fields to include for returned resources of type builds", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } }, "style": "form", + "explode": false, "required": false }, { - "name": "limit[prices]", + "name": "limit[builds]", "in": "query", - "description": "maximum number of related prices returned (when they are included)", + "description": "maximum number of related builds returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -32416,132 +32191,39 @@ } } }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single SubscriptionOfferCode", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeResponse" - } - } - } - } - } - }, - "patch": { - "tags": [ - "SubscriptionOfferCodes" - ], - "operationId": "subscriptionOfferCodes-update_instance", - "requestBody": { - "description": "SubscriptionOfferCode representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeUpdateRequest" - } - } - }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, "200": { - "description": "Single SubscriptionOfferCode", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "description": "List of PreReleaseVersions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/PreReleaseVersionsResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/subscriptionPricePoints/{id}": { + "/v1/preReleaseVersions/{id}": { "get": { "tags": [ - "SubscriptionPricePoints" + "PreReleaseVersions" ], - "operationId": "subscriptionPricePoints-get_instance", + "operationId": "preReleaseVersions-get_instance", "parameters": [ { - "name": "fields[subscriptionPricePoints]", + "name": "fields[preReleaseVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", + "description": "the fields to include for returned resources of type preReleaseVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" + "app", + "builds", + "platform", + "version" ] } }, @@ -32558,13 +32240,125 @@ "items": { "type": "string", "enum": [ - "territory" + "app", + "builds" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" ] } }, "style": "form", "explode": false, "required": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -32599,11 +32393,11 @@ } }, "200": { - "description": "Single SubscriptionPricePoint", + "description": "Single PrereleaseVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPricePointResponse" + "$ref": "#/components/schemas/PrereleaseVersionResponse" } } } @@ -32623,73 +32417,262 @@ } ] }, - "/v1/subscriptionPrices": { - "post": { + "/v1/profiles": { + "get": { "tags": [ - "SubscriptionPrices" + "Profiles" ], - "operationId": "subscriptionPrices-create_instance", - "requestBody": { - "description": "SubscriptionPrice representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPriceCreateRequest" + "operationId": "profiles-get_collection", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" } - } + }, + "style": "form", + "explode": false, + "required": false }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "filter[profileState]", + "in": "query", + "description": "filter by attribute 'profileState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ACTIVE", + "INVALID" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "filter[profileType]", + "in": "query", + "description": "filter by attribute 'profileType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS_APP_DEVELOPMENT", + "IOS_APP_STORE", + "IOS_APP_ADHOC", + "IOS_APP_INHOUSE", + "MAC_APP_DEVELOPMENT", + "MAC_APP_STORE", + "MAC_APP_DIRECT", + "TVOS_APP_DEVELOPMENT", + "TVOS_APP_STORE", + "TVOS_APP_ADHOC", + "TVOS_APP_INHOUSE", + "MAC_CATALYST_APP_DEVELOPMENT", + "MAC_CATALYST_APP_STORE", + "MAC_CATALYST_APP_DIRECT" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "201": { - "description": "Single SubscriptionPrice", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPriceResponse" - } + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" } - } + }, + "style": "form", + "explode": false, + "required": false }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "id", + "-id", + "name", + "-name", + "profileState", + "-profileState", + "profileType", + "-profileType" + ] } - } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[profiles]", + "in": "query", + "description": "the fields to include for returned resources of type profiles", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "certificates", + "createdDate", + "devices", + "expirationDate", + "name", + "platform", + "profileContent", + "profileState", + "profileType", + "uuid" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "bundleId", + "certificates", + "devices" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "certificateContent", + "certificateType", + "csrContent", + "displayName", + "expirationDate", + "name", + "platform", + "serialNumber" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[devices]", + "in": "query", + "description": "the fields to include for returned resources of type devices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "addedDate", + "deviceClass", + "model", + "name", + "platform", + "status", + "udid" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[bundleIds]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "bundleIdCapabilities", + "identifier", + "name", + "platform", + "profiles", + "seedId" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[certificates]", + "in": "query", + "description": "maximum number of related certificates returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[devices]", + "in": "query", + "description": "maximum number of related devices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } - } - } - }, - "/v1/subscriptionPrices/{id}": { - "delete": { - "tags": [ - "SubscriptionPrices" ], - "operationId": "subscriptionPrices-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -32711,56 +32694,29 @@ } } }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "List of Profiles", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ProfilesResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionPromotionalOffers": { "post": { "tags": [ - "SubscriptionPromotionalOffers" + "Profiles" ], - "operationId": "subscriptionPromotionalOffers-create_instance", + "operationId": "profiles-create_instance", "requestBody": { - "description": "SubscriptionPromotionalOffer representation", + "description": "Profile representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferCreateRequest" + "$ref": "#/components/schemas/ProfileCreateRequest" } } }, @@ -32788,11 +32744,11 @@ } }, "201": { - "description": "Single SubscriptionPromotionalOffer", + "description": "Single Profile", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" + "$ref": "#/components/schemas/ProfileResponse" } } } @@ -32810,29 +32766,33 @@ } } }, - "/v1/subscriptionPromotionalOffers/{id}": { + "/v1/profiles/{id}": { "get": { "tags": [ - "SubscriptionPromotionalOffers" + "Profiles" ], - "operationId": "subscriptionPromotionalOffers-get_instance", + "operationId": "profiles-get_instance", "parameters": [ { - "name": "fields[subscriptionPromotionalOffers]", + "name": "fields[profiles]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", + "description": "the fields to include for returned resources of type profiles", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "duration", + "bundleId", + "certificates", + "createdDate", + "devices", + "expirationDate", "name", - "numberOfPeriods", - "offerCode", - "offerMode", - "prices", - "subscription" + "platform", + "profileContent", + "profileState", + "profileType", + "uuid" ] } }, @@ -32849,8 +32809,9 @@ "items": { "type": "string", "enum": [ - "prices", - "subscription" + "bundleId", + "certificates", + "devices" ] } }, @@ -32859,16 +32820,22 @@ "required": false }, { - "name": "fields[subscriptionPromotionalOfferPrices]", + "name": "fields[certificates]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", + "description": "the fields to include for returned resources of type certificates", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "certificateContent", + "certificateType", + "csrContent", + "displayName", + "expirationDate", + "name", + "platform", + "serialNumber" ] } }, @@ -32877,76 +32844,74 @@ "required": false }, { - "name": "limit[prices]", + "name": "fields[devices]", "in": "query", - "description": "maximum number of related prices returned (when they are included)", + "description": "the fields to include for returned resources of type devices", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "addedDate", + "deviceClass", + "model", + "name", + "platform", + "status", + "udid" + ] + } }, "style": "form", + "explode": false, "required": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[bundleIds]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "bundleIdCapabilities", + "identifier", + "name", + "platform", + "profiles", + "seedId" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + { + "name": "limit[certificates]", + "in": "query", + "description": "maximum number of related certificates returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false }, - "200": { - "description": "Single SubscriptionPromotionalOffer", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" - } - } - } + { + "name": "limit[devices]", + "in": "query", + "description": "maximum number of related devices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } - } - }, - "patch": { - "tags": [ - "SubscriptionPromotionalOffers" ], - "operationId": "subscriptionPromotionalOffers-update_instance", - "requestBody": { - "description": "SubscriptionPromotionalOffer representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferUpdateRequest" - } - } - }, - "required": true - }, "responses": { "400": { "description": "Parameter error(s)", @@ -32979,21 +32944,11 @@ } }, "200": { - "description": "Single SubscriptionPromotionalOffer", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "description": "Single Profile", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ProfileResponse" } } } @@ -33002,9 +32957,9 @@ }, "delete": { "tags": [ - "SubscriptionPromotionalOffers" + "Profiles" ], - "operationId": "subscriptionPromotionalOffers-delete_instance", + "operationId": "profiles-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -33064,18 +33019,18 @@ } ] }, - "/v1/subscriptionSubmissions": { + "/v1/promotedPurchaseImages": { "post": { "tags": [ - "SubscriptionSubmissions" + "PromotedPurchaseImages" ], - "operationId": "subscriptionSubmissions-create_instance", + "operationId": "promotedPurchaseImages-create_instance", "requestBody": { - "description": "SubscriptionSubmission representation", + "description": "PromotedPurchaseImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionSubmissionCreateRequest" + "$ref": "#/components/schemas/PromotedPurchaseImageCreateRequest" } } }, @@ -33103,11 +33058,11 @@ } }, "201": { - "description": "Single SubscriptionSubmission", + "description": "Single PromotedPurchaseImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionSubmissionResponse" + "$ref": "#/components/schemas/PromotedPurchaseImageResponse" } } } @@ -33125,246 +33080,30 @@ } } }, - "/v1/subscriptions": { - "post": { + "/v1/promotedPurchaseImages/{id}": { + "get": { "tags": [ - "Subscriptions" + "PromotedPurchaseImages" ], - "operationId": "subscriptions-create_instance", - "requestBody": { - "description": "Subscription representation", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionCreateRequest" - } - } - }, - "required": true - }, - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "201": { - "description": "Single Subscription", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - } - } - } - }, - "/v1/subscriptions/{id}": { - "get": { - "tags": [ - "Subscriptions" - ], - "operationId": "subscriptions-get_instance", + "operationId": "promotedPurchaseImages-get_instance", "parameters": [ { - "name": "fields[subscriptions]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "group", - "introductoryOffers", - "offerCodes", - "prices", - "promotedPurchase", - "promotionalOffers", - "subscriptionAvailability", - "subscriptionLocalizations" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[promotedPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionPricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionPromotionalOffers]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "duration", - "name", - "numberOfPeriods", - "offerCode", - "offerMode", - "prices", - "subscription" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionOfferCodes]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodes", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "active", - "customCodes", - "customerEligibilities", - "duration", - "name", - "numberOfPeriods", - "offerEligibility", - "offerMode", - "oneTimeUseCodes", - "prices", - "subscription", - "totalNumberOfCodes" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionAppStoreReviewScreenshots]", + "name": "fields[promotedPurchaseImages]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "description": "the fields to include for returned resources of type promotedPurchaseImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetDeliveryState", "assetToken", "assetType", "fileName", "fileSize", "imageAsset", + "promotedPurchase", "sourceFileChecksum", - "subscription", + "state", "uploadOperations", "uploaded" ] @@ -33375,145 +33114,21 @@ "required": false }, { - "name": "fields[subscriptionAvailabilities]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionAvailabilities", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "availableInNewTerritories", - "availableTerritories", - "subscription" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionPrices]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionPrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "preserveCurrentPrice", - "preserved", - "startDate", - "subscription", - "subscriptionPricePoint", - "territory" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionIntroductoryOffers]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "duration", - "endDate", - "numberOfPeriods", - "offerMode", - "startDate", - "subscription", - "subscriptionPricePoint", - "territory" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[subscriptionLocalizations]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type subscriptionLocalizations", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "description", - "locale", - "name", - "state", - "subscription" + "promotedPurchase" ] } }, "style": "form", "explode": false, "required": false - }, - { - "name": "limit[introductoryOffers]", - "in": "query", - "description": "maximum number of related introductoryOffers returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - }, - { - "name": "limit[offerCodes]", - "in": "query", - "description": "maximum number of related offerCodes returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - }, - { - "name": "limit[prices]", - "in": "query", - "description": "maximum number of related prices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - }, - { - "name": "limit[promotionalOffers]", - "in": "query", - "description": "maximum number of related promotionalOffers returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false - }, - { - "name": "limit[subscriptionLocalizations]", - "in": "query", - "description": "maximum number of related subscriptionLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false } ], "responses": { @@ -33548,11 +33163,11 @@ } }, "200": { - "description": "Single Subscription", + "description": "Single PromotedPurchaseImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionResponse" + "$ref": "#/components/schemas/PromotedPurchaseImageResponse" } } } @@ -33561,15 +33176,15 @@ }, "patch": { "tags": [ - "Subscriptions" + "PromotedPurchaseImages" ], - "operationId": "subscriptions-update_instance", + "operationId": "promotedPurchaseImages-update_instance", "requestBody": { - "description": "Subscription representation", + "description": "PromotedPurchaseImage representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionUpdateRequest" + "$ref": "#/components/schemas/PromotedPurchaseImageUpdateRequest" } } }, @@ -33607,11 +33222,11 @@ } }, "200": { - "description": "Single Subscription", + "description": "Single PromotedPurchaseImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionResponse" + "$ref": "#/components/schemas/PromotedPurchaseImageResponse" } } } @@ -33630,9 +33245,9 @@ }, "delete": { "tags": [ - "Subscriptions" + "PromotedPurchaseImages" ], - "operationId": "subscriptions-delete_instance", + "operationId": "promotedPurchaseImages-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -33692,41 +33307,23 @@ } ] }, - "/v1/territories": { - "get": { + "/v1/promotedPurchases": { + "post": { "tags": [ - "Territories" + "PromotedPurchases" ], - "operationId": "territories-get_collection", - "parameters": [ - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] + "operationId": "promotedPurchases-create_instance", + "requestBody": { + "description": "PromotedPurchase representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseCreateRequest" } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -33748,12 +33345,22 @@ } } }, - "200": { - "description": "List of Territories", + "201": { + "description": "Single PromotedPurchase", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoriesResponse" + "$ref": "#/components/schemas/PromotedPurchaseResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -33761,49 +33368,29 @@ } } }, - "/v1/userInvitations": { + "/v1/promotedPurchases/{id}": { "get": { "tags": [ - "UserInvitations" + "PromotedPurchases" ], - "operationId": "userInvitations-get_collection", + "operationId": "promotedPurchases-get_instance", "parameters": [ { - "name": "filter[email]", - "in": "query", - "description": "filter by attribute 'email'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "filter[roles]", + "name": "fields[promotedPurchases]", "in": "query", - "description": "filter by attribute 'roles'", + "description": "the fields to include for returned resources of type promotedPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ADMIN", - "FINANCE", - "ACCOUNT_HOLDER", - "SALES", - "MARKETING", - "APP_MANAGER", - "DEVELOPER", - "ACCESS_TO_REPORTS", - "CUSTOMER_SUPPORT", - "IMAGE_MANAGER", - "CREATE_APPS", - "CLOUD_MANAGED_DEVELOPER_ID", - "CLOUD_MANAGED_APP_DISTRIBUTION" + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" ] } }, @@ -33812,13 +33399,18 @@ "required": false }, { - "name": "filter[visibleApps]", + "name": "include", "in": "query", - "description": "filter by id(s) of related 'visibleApps'", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "inAppPurchaseV2", + "promotionImages", + "subscription" + ] } }, "style": "form", @@ -33826,18 +33418,24 @@ "required": false }, { - "name": "sort", + "name": "fields[promotedPurchaseImages]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type promotedPurchaseImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "email", - "-email", - "lastName", - "-lastName" + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "promotedPurchase", + "sourceFileChecksum", + "state", + "uploadOperations", + "uploaded" ] } }, @@ -33846,118 +33444,9 @@ "required": false }, { - "name": "fields[userInvitations]", + "name": "limit[promotionImages]", "in": "query", - "description": "the fields to include for returned resources of type userInvitations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "allAppsVisible", - "email", - "expirationDate", - "firstName", - "lastName", - "provisioningAllowed", - "roles", - "visibleApps" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "visibleApps" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] - } - }, - "style": "form", - "explode": false, - "required": false - }, - { - "name": "limit[visibleApps]", - "in": "query", - "description": "maximum number of related visibleApps returned (when they are included)", + "description": "maximum number of related promotionImages returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -33987,29 +33476,39 @@ } } }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "200": { - "description": "List of UserInvitations", + "description": "Single PromotedPurchase", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserInvitationsResponse" + "$ref": "#/components/schemas/PromotedPurchaseResponse" } } } } } }, - "post": { + "patch": { "tags": [ - "UserInvitations" + "PromotedPurchases" ], - "operationId": "userInvitations-create_instance", + "operationId": "promotedPurchases-update_instance", "requestBody": { - "description": "UserInvitation representation", + "description": "PromotedPurchase representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserInvitationCreateRequest" + "$ref": "#/components/schemas/PromotedPurchaseUpdateRequest" } } }, @@ -34036,12 +33535,22 @@ } } }, - "201": { - "description": "Single UserInvitation", + "404": { + "description": "Not found error", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserInvitationResponse" + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single PromotedPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseResponse" } } } @@ -34057,126 +33566,149 @@ } } } - } + }, + "delete": { + "tags": [ + "PromotedPurchases" + ], + "operationId": "promotedPurchases-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] }, - "/v1/userInvitations/{id}": { - "get": { + "/v1/reviewSubmissionItems": { + "post": { "tags": [ - "UserInvitations" + "ReviewSubmissionItems" ], - "operationId": "userInvitations-get_instance", - "parameters": [ - { - "name": "fields[userInvitations]", - "in": "query", - "description": "the fields to include for returned resources of type userInvitations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "allAppsVisible", - "email", - "expirationDate", - "firstName", - "lastName", - "provisioningAllowed", - "roles", - "visibleApps" - ] + "operationId": "reviewSubmissionItems-create_instance", + "requestBody": { + "description": "ReviewSubmissionItem representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionItemCreateRequest" } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "visibleApps" - ] + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false, - "required": false + } }, - { - "name": "limit[visibleApps]", - "in": "query", - "description": "maximum number of related visibleApps returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "required": false + "201": { + "description": "Single ReviewSubmissionItem", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionItemResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } } + } + } + }, + "/v1/reviewSubmissionItems/{id}": { + "patch": { + "tags": [ + "ReviewSubmissionItems" ], + "operationId": "reviewSubmissionItems-update_instance", + "requestBody": { + "description": "ReviewSubmissionItem representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionItemUpdateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -34209,11 +33741,21 @@ } }, "200": { - "description": "Single UserInvitation", + "description": "Single ReviewSubmissionItem", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserInvitationResponse" + "$ref": "#/components/schemas/ReviewSubmissionItemResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -34222,9 +33764,9 @@ }, "delete": { "tags": [ - "UserInvitations" + "ReviewSubmissionItems" ], - "operationId": "userInvitations-delete_instance", + "operationId": "reviewSubmissionItems-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -34284,35 +33826,25 @@ } ] }, - "/v1/users": { + "/v1/reviewSubmissions": { "get": { "tags": [ - "Users" + "ReviewSubmissions" ], - "operationId": "users-get_collection", + "operationId": "reviewSubmissions-get_collection", "parameters": [ { - "name": "filter[roles]", + "name": "filter[platform]", "in": "query", - "description": "filter by attribute 'roles'", + "description": "filter by attribute 'platform'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ADMIN", - "FINANCE", - "ACCOUNT_HOLDER", - "SALES", - "MARKETING", - "APP_MANAGER", - "DEVELOPER", - "ACCESS_TO_REPORTS", - "CUSTOMER_SUPPORT", - "IMAGE_MANAGER", - "CREATE_APPS", - "CLOUD_MANAGED_DEVELOPER_ID", - "CLOUD_MANAGED_APP_DISTRIBUTION" + "IOS", + "MAC_OS", + "TV_OS" ] } }, @@ -34321,13 +33853,22 @@ "required": false }, { - "name": "filter[username]", + "name": "filter[state]", "in": "query", - "description": "filter by attribute 'username'", + "description": "filter by attribute 'state'", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "UNRESOLVED_ISSUES", + "CANCELING", + "COMPLETING", + "COMPLETE" + ] } }, "style": "form", @@ -34335,9 +33876,9 @@ "required": false }, { - "name": "filter[visibleApps]", + "name": "filter[app]", "in": "query", - "description": "filter by id(s) of related 'visibleApps'", + "description": "filter by id(s) of related 'app'", "schema": { "type": "array", "items": { @@ -34346,44 +33887,27 @@ }, "style": "form", "explode": false, - "required": false - }, - { - "name": "sort", - "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "lastName", - "-lastName", - "username", - "-username" - ] - } - }, - "style": "form", - "explode": false, - "required": false + "required": true }, { - "name": "fields[users]", + "name": "fields[reviewSubmissions]", "in": "query", - "description": "the fields to include for returned resources of type users", + "description": "the fields to include for returned resources of type reviewSubmissions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "allAppsVisible", - "firstName", - "lastName", - "provisioningAllowed", - "roles", - "username", - "visibleApps" + "app", + "appStoreVersionForReview", + "canceled", + "items", + "lastUpdatedByActor", + "platform", + "state", + "submitted", + "submittedByActor", + "submittedDate" ] } }, @@ -34410,7 +33934,11 @@ "items": { "type": "string", "enum": [ - "visibleApps" + "app", + "appStoreVersionForReview", + "items", + "lastUpdatedByActor", + "submittedByActor" ] } }, @@ -34419,56 +33947,23 @@ "required": false }, { - "name": "fields[apps]", + "name": "fields[reviewSubmissionItems]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type reviewSubmissionItems", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "appCustomProductPageVersion", + "appEvent", + "appStoreVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "removed", + "resolved", + "reviewSubmission", + "state" ] } }, @@ -34477,9 +33972,9 @@ "required": false }, { - "name": "limit[visibleApps]", + "name": "limit[items]", "in": "query", - "description": "maximum number of related visibleApps returned (when they are included)", + "description": "maximum number of related items returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -34510,11 +34005,70 @@ } }, "200": { - "description": "List of Users", + "description": "List of ReviewSubmissions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UsersResponse" + "$ref": "#/components/schemas/ReviewSubmissionsResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions-create_instance", + "requestBody": { + "description": "ReviewSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single ReviewSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -34522,29 +34076,32 @@ } } }, - "/v1/users/{id}": { + "/v1/reviewSubmissions/{id}": { "get": { "tags": [ - "Users" + "ReviewSubmissions" ], - "operationId": "users-get_instance", + "operationId": "reviewSubmissions-get_instance", "parameters": [ { - "name": "fields[users]", + "name": "fields[reviewSubmissions]", "in": "query", - "description": "the fields to include for returned resources of type users", + "description": "the fields to include for returned resources of type reviewSubmissions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "allAppsVisible", - "firstName", - "lastName", - "provisioningAllowed", - "roles", - "username", - "visibleApps" + "app", + "appStoreVersionForReview", + "canceled", + "items", + "lastUpdatedByActor", + "platform", + "state", + "submitted", + "submittedByActor", + "submittedDate" ] } }, @@ -34561,7 +34118,11 @@ "items": { "type": "string", "enum": [ - "visibleApps" + "app", + "appStoreVersionForReview", + "items", + "lastUpdatedByActor", + "submittedByActor" ] } }, @@ -34570,56 +34131,23 @@ "required": false }, { - "name": "fields[apps]", + "name": "fields[reviewSubmissionItems]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type reviewSubmissionItems", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "appCustomProductPageVersion", + "appEvent", + "appStoreVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "removed", + "resolved", + "reviewSubmission", + "state" ] } }, @@ -34628,9 +34156,9 @@ "required": false }, { - "name": "limit[visibleApps]", + "name": "limit[items]", "in": "query", - "description": "maximum number of related visibleApps returned (when they are included)", + "description": "maximum number of related items returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -34671,11 +34199,11 @@ } }, "200": { - "description": "Single User", + "description": "Single ReviewSubmission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserResponse" + "$ref": "#/components/schemas/ReviewSubmissionResponse" } } } @@ -34684,15 +34212,15 @@ }, "patch": { "tags": [ - "Users" + "ReviewSubmissions" ], - "operationId": "users-update_instance", + "operationId": "reviewSubmissions-update_instance", "requestBody": { - "description": "User representation", + "description": "ReviewSubmission representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserUpdateRequest" + "$ref": "#/components/schemas/ReviewSubmissionUpdateRequest" } } }, @@ -34730,11 +34258,11 @@ } }, "200": { - "description": "Single User", + "description": "Single ReviewSubmission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserResponse" + "$ref": "#/components/schemas/ReviewSubmissionResponse" } } } @@ -34751,11 +34279,36 @@ } } }, - "delete": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/routingAppCoverages": { + "post": { "tags": [ - "Users" + "RoutingAppCoverages" ], - "operationId": "users-delete_instance", + "operationId": "routingAppCoverages-create_instance", + "requestBody": { + "description": "RoutingAppCoverage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageCreateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -34777,12 +34330,12 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single RoutingAppCoverage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/RoutingAppCoverageResponse" } } } @@ -34796,71 +34349,56 @@ } } } - }, - "204": { - "description": "Success (no content)" } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appAvailabilities/{id}/relationships/availableTerritories": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appAvailabilities/{id}/availableTerritories": { + "/v1/routingAppCoverages/{id}": { "get": { "tags": [ - "AppAvailabilities" + "RoutingAppCoverages" ], - "operationId": "appAvailabilities-availableTerritories-get_to_many_related", + "operationId": "routingAppCoverages-get_instance", "parameters": [ { - "name": "fields[territories]", + "name": "fields[routingAppCoverages]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type routingAppCoverages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "appStoreVersion", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "limit", + "name": "include", "in": "query", - "description": "maximum resources per page", + "description": "comma-separated list of relationships to include", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion" + ] + } }, - "style": "form" + "style": "form", + "explode": false, + "required": false } ], "responses": { @@ -34895,70 +34433,33 @@ } }, "200": { - "description": "List of Territories", + "description": "Single RoutingAppCoverage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoriesResponse" + "$ref": "#/components/schemas/RoutingAppCoverageResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCategories/{id}/relationships/parent": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCategories/{id}/parent": { - "get": { + "patch": { "tags": [ - "AppCategories" + "RoutingAppCoverages" ], - "operationId": "appCategories-parent-get_to_one_related", - "parameters": [ - { - "name": "fields[appCategories]", - "in": "query", - "description": "the fields to include for returned resources of type appCategories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "platforms", - "subcategories" - ] + "operationId": "routingAppCoverages-update_instance", + "requestBody": { + "description": "RoutingAppCoverage representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageUpdateRequest" } - }, - "style": "form", - "explode": false - } - ], + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -34991,80 +34492,32 @@ } }, "200": { - "description": "Single AppCategory", + "description": "Single RoutingAppCoverage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/RoutingAppCoverageResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCategories/{id}/relationships/subcategories": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCategories/{id}/subcategories": { - "get": { + "delete": { "tags": [ - "AppCategories" - ], - "operationId": "appCategories-subcategories-get_to_many_related", - "parameters": [ - { - "name": "fields[appCategories]", - "in": "query", - "description": "the fields to include for returned resources of type appCategories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "platforms", - "subcategories" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } + "RoutingAppCoverages" ], + "operationId": "routingAppCoverages-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -35096,15 +34549,18 @@ } } }, - "200": { - "description": "List of AppCategories", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoriesResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -35121,86 +34577,243 @@ } ] }, - "/v1/appClipDefaultExperienceLocalizations/{id}/relationships/appClipHeaderImage": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appClipDefaultExperienceLocalizations/{id}/appClipHeaderImage": { + "/v1/salesReports": { "get": { "tags": [ - "AppClipDefaultExperienceLocalizations" + "SalesReports" ], - "operationId": "appClipDefaultExperienceLocalizations-appClipHeaderImage-get_to_one_related", + "operationId": "salesReports-get_collection", "parameters": [ { - "name": "fields[appClipHeaderImages]", + "name": "filter[frequency]", "in": "query", - "description": "the fields to include for returned resources of type appClipHeaderImages", + "description": "filter by attribute 'frequency'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperienceLocalization", - "assetDeliveryState", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "DAILY", + "WEEKLY", + "MONTHLY", + "YEARLY" ] } }, "style": "form", - "explode": false + "explode": false, + "required": true }, { - "name": "fields[appClipDefaultExperienceLocalizations]", + "name": "filter[reportDate]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "description": "filter by attribute 'reportDate'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "filter[reportSubType]", + "in": "query", + "description": "filter by attribute 'reportSubType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperience", - "appClipHeaderImage", - "locale", - "subtitle" + "SUMMARY", + "DETAILED" ] } }, "style": "form", - "explode": false + "explode": false, + "required": true }, { - "name": "include", + "name": "filter[reportType]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "filter by attribute 'reportType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperienceLocalization" + "SALES", + "PRE_ORDER", + "NEWSSTAND", + "SUBSCRIPTION", + "SUBSCRIPTION_EVENT", + "SUBSCRIBER", + "SUBSCRIPTION_OFFER_CODE_REDEMPTION" ] } }, "style": "form", - "explode": false + "explode": false, + "required": true + }, + { + "name": "filter[vendorNumber]", + "in": "query", + "description": "filter by attribute 'vendorNumber'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": true + }, + { + "name": "filter[version]", + "in": "query", + "description": "filter by attribute 'version'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SalesReports", + "content": { + "application/a-gzip": { + "schema": { + "$ref": "#/components/schemas/gzip" + } + } + } + } + } + } + }, + "/v2/sandboxTesters": { + "get": { + "tags": [ + "SandboxTesters" + ], + "operationId": "sandboxTestersV2-get_collection", + "parameters": [ + { + "name": "fields[sandboxTesters]", + "in": "query", + "description": "the fields to include for returned resources of type sandboxTesters", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "acAccountName", + "applePayCompatible", + "firstName", + "interruptPurchases", + "lastName", + "subscriptionRenewalRate", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SandboxTesters", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTestersV2Response" + } + } + } } + } + } + }, + "/v2/sandboxTesters/{id}": { + "patch": { + "tags": [ + "SandboxTesters" ], + "operationId": "sandboxTestersV2-update_instance", + "requestBody": { + "description": "SandboxTester representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTesterV2UpdateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -35233,11 +34846,21 @@ } }, "200": { - "description": "Single AppClipHeaderImage", + "description": "Single SandboxTester", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipHeaderImageResponse" + "$ref": "#/components/schemas/SandboxTesterV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -35257,64 +34880,94 @@ } ] }, - "/v1/appClipDefaultExperiences/{id}/relationships/appClipAppStoreReviewDetail": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "/v2/sandboxTestersClearPurchaseHistoryRequest": { + "post": { + "tags": [ + "SandboxTestersClearPurchaseHistoryRequest" + ], + "operationId": "sandboxTestersClearPurchaseHistoryRequestV2-create_instance", + "requestBody": { + "description": "SandboxTestersClearPurchaseHistoryRequest representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTestersClearPurchaseHistoryRequestV2CreateRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SandboxTestersClearPurchaseHistoryRequest", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SandboxTestersClearPurchaseHistoryRequestV2Response" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ] + } }, - "/v1/appClipDefaultExperiences/{id}/appClipAppStoreReviewDetail": { + "/v1/scmGitReferences/{id}": { "get": { "tags": [ - "AppClipDefaultExperiences" + "ScmGitReferences" ], - "operationId": "appClipDefaultExperiences-appClipAppStoreReviewDetail-get_to_one_related", + "operationId": "scmGitReferences-get_instance", "parameters": [ { - "name": "fields[appClipAppStoreReviewDetails]", - "in": "query", - "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appClipDefaultExperience", - "invocationUrls" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appClipDefaultExperiences]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { "name": "include", @@ -35325,12 +34978,13 @@ "items": { "type": "string", "enum": [ - "appClipDefaultExperience" + "repository" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -35365,11 +35019,11 @@ } }, "200": { - "description": "Single AppClipAppStoreReviewDetail", + "description": "Single ScmGitReference", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipAppStoreReviewDetailResponse" + "$ref": "#/components/schemas/ScmGitReferenceResponse" } } } @@ -35389,129 +35043,152 @@ } ] }, - "/v1/appClipDefaultExperiences/{id}/relationships/appClipDefaultExperienceLocalizations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appClipDefaultExperiences/{id}/appClipDefaultExperienceLocalizations": { + "/v1/scmProviders": { "get": { "tags": [ - "AppClipDefaultExperiences" + "ScmProviders" ], - "operationId": "appClipDefaultExperiences-appClipDefaultExperienceLocalizations-get_to_many_related", + "operationId": "scmProviders-get_collection", "parameters": [ { - "name": "filter[locale]", + "name": "fields[scmProviders]", "in": "query", - "description": "filter by attribute 'locale'", + "description": "the fields to include for returned resources of type scmProviders", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "repositories", + "scmProviderType", + "url" + ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appClipDefaultExperiences]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appClipDefaultExperienceLocalizations]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperience", - "appClipHeaderImage", - "locale", - "subtitle" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, + "200": { + "description": "List of ScmProviders", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmProvidersResponse" + } + } + } + } + } + } + }, + "/v1/scmProviders/{id}": { + "get": { + "tags": [ + "ScmProviders" + ], + "operationId": "scmProviders-get_instance", + "parameters": [ { - "name": "fields[appClipHeaderImages]", + "name": "fields[scmProviders]", "in": "query", - "description": "the fields to include for returned resources of type appClipHeaderImages", + "description": "the fields to include for returned resources of type scmProviders", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperienceLocalization", - "assetDeliveryState", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "repositories", + "scmProviderType", + "url" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "explode": false, + "required": false }, { - "name": "include", + "name": "fields[scmRepositories]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperience", - "appClipHeaderImage" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -35546,11 +35223,11 @@ } }, "200": { - "description": "List of AppClipDefaultExperienceLocalizations", + "description": "Single ScmProvider", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationsResponse" + "$ref": "#/components/schemas/ScmProviderResponse" } } } @@ -35570,73 +35247,70 @@ } ] }, - "/v1/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion": { + "/v1/scmPullRequests/{id}": { "get": { "tags": [ - "AppClipDefaultExperiences" + "ScmPullRequests" ], - "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_relationship", - "parameters": [], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "operationId": "scmPullRequests-get_instance", + "parameters": [ + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" + ] } - } + }, + "style": "form", + "explode": false, + "required": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "repository" + ] } - } - }, - "200": { - "description": "Related linkage", + }, + "style": "form", + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } - } - } - }, - "patch": { - "tags": [ - "AppClipDefaultExperiences" - ], - "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-update_to_one_relationship", - "requestBody": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest" - } - } }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -35657,18 +35331,15 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Single ScmPullRequest", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/ScmPullRequestResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, @@ -35685,386 +35356,413 @@ } ] }, - "/v1/appClipDefaultExperiences/{id}/releaseWithAppStoreVersion": { + "/v1/scmRepositories": { "get": { "tags": [ - "AppClipDefaultExperiences" + "ScmRepositories" ], - "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_related", + "operationId": "scmRepositories-get_collection", "parameters": [ { - "name": "fields[appStoreVersionExperiments]", + "name": "filter[id]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "filter by id(s)", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] + "type": "string" } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[ageRatingDeclarations]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type ageRatingDeclarations", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "alcoholTobaccoOrDrugUseOrReferences", - "contests", - "gambling", - "gamblingAndContests", - "gamblingSimulated", - "horrorOrFearThemes", - "kidsAgeBand", - "matureOrSuggestiveThemes", - "medicalOrTreatmentInformation", - "profanityOrCrudeHumor", - "seventeenPlus", - "sexualContentGraphicAndNudity", - "sexualContentOrNudity", - "unrestrictedWebAccess", - "violenceCartoonOrFantasy", - "violenceRealistic", - "violenceRealisticProlongedGraphicOrSadistic" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appStoreVersionSubmissions]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionSubmissions", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion" + "defaultBranch", + "scmProvider" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appStoreReviewDetails]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewDetails", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewAttachments", - "appStoreVersion", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appStoreVersions]", + "name": "fields[scmPullRequests]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "the fields to include for returned resources of type scmPullRequests", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, + "200": { + "description": "List of ScmRepositories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmRepositoriesResponse" + } + } + } + } + } + } + }, + "/v1/scmRepositories/{id}": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories-get_instance", + "parameters": [ { - "name": "fields[routingAppCoverages]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type routingAppCoverages", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "assetDeliveryState", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appClipDefaultExperiences]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" + "defaultBranch", + "scmProvider" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appStoreVersionPhasedReleases]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "currentDayNumber", - "phasedReleaseState", - "startDate", - "totalPauseDuration" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[builds]", + "name": "fields[scmPullRequests]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type scmPullRequests", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appStoreVersionLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "limit[appStoreVersionLocalizations]", - "in": "query", - "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "limit[appStoreVersionExperiments]", - "in": "query", - "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "deprecated": true + "200": { + "description": "Single ScmRepository", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmRepositoryResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionAppStoreReviewScreenshots": { + "post": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots-create_instance", + "requestBody": { + "description": "SubscriptionAppStoreReviewScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionAppStoreReviewScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" + } + } + } }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionAppStoreReviewScreenshots/{id}": { + "get": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots-get_instance", + "parameters": [ { - "name": "limit[appStoreVersionExperimentsV2]", + "name": "fields[subscriptionAppStoreReviewScreenshots]", "in": "query", - "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "subscription", + "uploadOperations", + "uploaded" + ] + } }, - "style": "form" + "style": "form", + "explode": false, + "required": false }, { "name": "include", @@ -36075,22 +35773,13 @@ "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "routingAppCoverage" + "subscription" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -36125,31 +35814,137 @@ } }, "200": { - "description": "Single AppStoreVersion", + "description": "Single SubscriptionAppStoreReviewScreenshot", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionResponse" + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "patch": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots-update_instance", + "requestBody": { + "description": "SubscriptionAppStoreReviewScreenshot representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotUpdateRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionAppStoreReviewScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ] - }, - "/v1/appClips/{id}/relationships/appClipAdvancedExperiences": { + }, + "delete": { + "tags": [ + "SubscriptionAppStoreReviewScreenshots" + ], + "operationId": "subscriptionAppStoreReviewScreenshots-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, "parameters": [ { "name": "id", @@ -36163,191 +35958,138 @@ } ] }, - "/v1/appClips/{id}/appClipAdvancedExperiences": { - "get": { + "/v1/subscriptionAvailabilities": { + "post": { "tags": [ - "AppClips" + "SubscriptionAvailabilities" ], - "operationId": "appClips-appClipAdvancedExperiences-get_to_many_related", - "parameters": [ - { - "name": "filter[action]", - "in": "query", - "description": "filter by attribute 'action'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "OPEN", - "VIEW", - "PLAY" - ] + "operationId": "subscriptionAvailabilities-create_instance", + "requestBody": { + "description": "SubscriptionAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAvailabilityCreateRequest" } - }, - "style": "form", - "explode": false + } }, - { - "name": "filter[placeStatus]", - "in": "query", - "description": "filter by attribute 'placeStatus'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "PENDING", - "MATCHED", - "NO_MATCH" - ] + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "filter[status]", - "in": "query", - "description": "filter by attribute 'status'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "RECEIVED", - "DEACTIVATED", - "APP_TRANSFER_IN_PROGRESS" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appClipAdvancedExperiences]", - "in": "query", - "description": "the fields to include for returned resources of type appClipAdvancedExperiences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "action", - "appClip", - "businessCategory", - "defaultLanguage", - "headerImage", - "isPoweredBy", - "link", - "localizations", - "place", - "placeStatus", - "removed", - "status", - "version" - ] + "201": { + "description": "Single SubscriptionAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + } } - }, - "style": "form", - "explode": false + } }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionAvailabilities/{id}": { + "get": { + "tags": [ + "SubscriptionAvailabilities" + ], + "operationId": "subscriptionAvailabilities-get_instance", + "parameters": [ { - "name": "fields[appClips]", + "name": "fields[subscriptionAvailabilities]", "in": "query", - "description": "the fields to include for returned resources of type appClips", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appClipAdvancedExperiences", - "appClipDefaultExperiences", - "bundleId" + "availableInNewTerritories", + "availableTerritories", + "subscription" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appClipAdvancedExperienceImages]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appClipAdvancedExperienceImages", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetDeliveryState", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "availableTerritories", + "subscription" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appClipAdvancedExperienceLocalizations]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type appClipAdvancedExperienceLocalizations", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "language", - "subtitle", - "title" + "currency" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "explode": false, + "required": false }, { - "name": "limit[localizations]", + "name": "limit[availableTerritories]", "in": "query", - "description": "maximum number of related localizations returned (when they are included)", + "description": "maximum number of related availableTerritories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appClip", - "headerImage", - "localizations" - ] - } - }, "style": "form", - "explode": false + "required": false } ], "responses": { @@ -36382,11 +36124,11 @@ } }, "200": { - "description": "List of AppClipAdvancedExperiences", + "description": "Single SubscriptionAvailability", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipAdvancedExperiencesResponse" + "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" } } } @@ -36406,188 +36148,93 @@ } ] }, - "/v1/appClips/{id}/relationships/appClipDefaultExperiences": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appClips/{id}/appClipDefaultExperiences": { + "/v1/subscriptionGracePeriods/{id}": { "get": { "tags": [ - "AppClips" + "SubscriptionGracePeriods" ], - "operationId": "appClips-appClipDefaultExperiences-get_to_many_related", + "operationId": "subscriptionGracePeriods-get_instance", "parameters": [ { - "name": "exists[releaseWithAppStoreVersion]", + "name": "fields[subscriptionGracePeriods]", "in": "query", - "description": "filter by existence or non-existence of related 'releaseWithAppStoreVersion'", - "schema": { - "type": "boolean" - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appClips]", - "in": "query", - "description": "the fields to include for returned resources of type appClips", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appClipAdvancedExperiences", - "appClipDefaultExperiences", - "bundleId" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appClipAppStoreReviewDetails]", - "in": "query", - "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperience", - "invocationUrls" + "duration", + "optIn", + "renewalType", + "sandboxOptIn" ] } }, "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersions]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" - ] + "explode": false, + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appClipDefaultExperiences]", - "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appClipDefaultExperienceLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appClipDefaultExperience", - "appClipHeaderImage", - "locale", - "subtitle" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appClipDefaultExperienceLocalizations]", - "in": "query", - "description": "maximum number of related appClipDefaultExperienceLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "releaseWithAppStoreVersion" - ] + "200": { + "description": "Single SubscriptionGracePeriod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + } } - }, - "style": "form", - "explode": false + } } + } + }, + "patch": { + "tags": [ + "SubscriptionGracePeriods" ], + "operationId": "subscriptionGracePeriods-update_instance", + "requestBody": { + "description": "SubscriptionGracePeriod representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodUpdateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -36620,11 +36267,21 @@ } }, "200": { - "description": "List of AppClipDefaultExperiences", + "description": "Single SubscriptionGracePeriod", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipDefaultExperiencesResponse" + "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -36644,212 +36301,94 @@ } ] }, - "/v1/appCustomProductPageLocalizations/{id}/relationships/appPreviewSets": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCustomProductPageLocalizations/{id}/appPreviewSets": { - "get": { + "/v1/subscriptionGroupLocalizations": { + "post": { "tags": [ - "AppCustomProductPageLocalizations" + "SubscriptionGroupLocalizations" ], - "operationId": "appCustomProductPageLocalizations-appPreviewSets-get_to_many_related", - "parameters": [ - { - "name": "filter[previewType]", - "in": "query", - "description": "filter by attribute 'previewType'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPHONE_67", - "IPHONE_61", - "IPHONE_65", - "IPHONE_58", - "IPHONE_55", - "IPHONE_47", - "IPHONE_40", - "IPHONE_35", - "IPAD_PRO_3GEN_129", - "IPAD_PRO_3GEN_11", - "IPAD_PRO_129", - "IPAD_105", - "IPAD_97", - "DESKTOP", - "APPLE_TV" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionExperimentTreatmentLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appStoreVersionLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" + "operationId": "subscriptionGroupLocalizations-create_instance", + "requestBody": { + "description": "SubscriptionGroupLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationCreateRequest" } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appCustomProductPageLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" - ] + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appPreviews]", - "in": "query", - "description": "the fields to include for returned resources of type appPreviews", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSet", - "assetDeliveryState", - "fileName", - "fileSize", - "mimeType", - "previewFrameTimeCode", - "previewImage", - "sourceFileChecksum", - "uploadOperations", - "uploaded", - "videoUrl" - ] + "201": { + "description": "Single SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appPreviewSets]", - "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false - }, + } + } + } + } + }, + "/v1/subscriptionGroupLocalizations/{id}": { + "get": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizations-get_instance", + "parameters": [ { - "name": "fields[appStoreVersionLocalizations]", + "name": "fields[subscriptionGroupLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", + "customAppName", "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "name", + "state", + "subscriptionGroup" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appPreviews]", - "in": "query", - "description": "maximum number of related appPreviews returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + "explode": false, + "required": false }, { "name": "include", @@ -36860,15 +36399,13 @@ "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization" + "subscriptionGroup" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -36903,272 +36440,91 @@ } }, "200": { - "description": "List of AppPreviewSets", + "description": "Single SubscriptionGroupLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPreviewSetsResponse" + "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "patch": { + "tags": [ + "SubscriptionGroupLocalizations" + ], + "operationId": "subscriptionGroupLocalizations-update_instance", + "requestBody": { + "description": "SubscriptionGroupLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationUpdateRequest" + } + } }, - "style": "simple", "required": true - } - ] - }, - "/v1/appCustomProductPageLocalizations/{id}/relationships/appScreenshotSets": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCustomProductPageLocalizations/{id}/appScreenshotSets": { - "get": { - "tags": [ - "AppCustomProductPageLocalizations" - ], - "operationId": "appCustomProductPageLocalizations-appScreenshotSets-get_to_many_related", - "parameters": [ - { - "name": "filter[screenshotDisplayType]", - "in": "query", - "description": "filter by attribute 'screenshotDisplayType'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "APP_IPHONE_67", - "APP_IPHONE_61", - "APP_IPHONE_65", - "APP_IPHONE_58", - "APP_IPHONE_55", - "APP_IPHONE_47", - "APP_IPHONE_40", - "APP_IPHONE_35", - "APP_IPAD_PRO_3GEN_129", - "APP_IPAD_PRO_3GEN_11", - "APP_IPAD_PRO_129", - "APP_IPAD_105", - "APP_IPAD_97", - "APP_DESKTOP", - "APP_WATCH_ULTRA", - "APP_WATCH_SERIES_7", - "APP_WATCH_SERIES_4", - "APP_WATCH_SERIES_3", - "APP_APPLE_TV", - "IMESSAGE_APP_IPHONE_67", - "IMESSAGE_APP_IPHONE_61", - "IMESSAGE_APP_IPHONE_65", - "IMESSAGE_APP_IPHONE_58", - "IMESSAGE_APP_IPHONE_55", - "IMESSAGE_APP_IPHONE_47", - "IMESSAGE_APP_IPHONE_40", - "IMESSAGE_APP_IPAD_PRO_3GEN_129", - "IMESSAGE_APP_IPAD_PRO_3GEN_11", - "IMESSAGE_APP_IPAD_PRO_129", - "IMESSAGE_APP_IPAD_105", - "IMESSAGE_APP_IPAD_97" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionExperimentTreatmentLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appStoreVersionLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appScreenshotSets]", - "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appCustomProductPageLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type appScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appScreenshotSet", - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appStoreVersionLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" - ] + "200": { + "description": "Single SubscriptionGroupLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationResponse" + } } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appScreenshots]", - "in": "query", - "description": "maximum number of related appScreenshots returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } } + } + }, + "delete": { + "tags": [ + "SubscriptionGroupLocalizations" ], + "operationId": "subscriptionGroupLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -37200,15 +36556,18 @@ } } }, - "200": { - "description": "List of AppScreenshotSets", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppScreenshotSetsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -37225,166 +36584,249 @@ } ] }, - "/v1/appCustomProductPageVersions/{id}/relationships/appCustomProductPageLocalizations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "/v1/subscriptionGroupSubmissions": { + "post": { + "tags": [ + "SubscriptionGroupSubmissions" + ], + "operationId": "subscriptionGroupSubmissions-create_instance", + "requestBody": { + "description": "SubscriptionGroupSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupSubmissionCreateRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionGroupSubmission", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupSubmissionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ] + } }, - "/v1/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations": { - "get": { + "/v1/subscriptionGroups": { + "post": { "tags": [ - "AppCustomProductPageVersions" + "SubscriptionGroups" ], - "operationId": "appCustomProductPageVersions-appCustomProductPageLocalizations-get_to_many_related", - "parameters": [ - { - "name": "filter[locale]", - "in": "query", - "description": "filter by attribute 'locale'", - "schema": { - "type": "array", - "items": { - "type": "string" + "operationId": "subscriptionGroups-create_instance", + "requestBody": { + "description": "SubscriptionGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupCreateRequest" } - }, - "style": "form", - "explode": false + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupResponse" + } + } + } }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionGroups/{id}": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups-get_instance", + "parameters": [ { - "name": "fields[appScreenshotSets]", + "name": "fields[subscriptionGroups]", "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", + "description": "the fields to include for returned resources of type subscriptionGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" + "app", + "referenceName", + "subscriptionGroupLocalizations", + "subscriptions" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appCustomProductPageLocalizations]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" + "subscriptionGroupLocalizations", + "subscriptions" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appCustomProductPageVersions]", + "name": "fields[subscriptions]", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "description": "the fields to include for returned resources of type subscriptions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPage", - "appCustomProductPageLocalizations", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", "state", - "version" + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPreviewSets]", + "name": "fields[subscriptionGroupLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" + "customAppName", + "locale", + "name", + "state", + "subscriptionGroup" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "explode": false, + "required": false }, { - "name": "limit[appScreenshotSets]", + "name": "limit[subscriptionGroupLocalizations]", "in": "query", - "description": "maximum number of related appScreenshotSets returned (when they are included)", + "description": "maximum number of related subscriptionGroupLocalizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 }, - "style": "form" + "style": "form", + "required": false }, { - "name": "limit[appPreviewSets]", + "name": "limit[subscriptions]", "in": "query", - "description": "maximum number of related appPreviewSets returned (when they are included)", + "description": "maximum number of related subscriptions returned (when they are included)", "schema": { "type": "integer", "maximum": 50 }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets" - ] - } - }, "style": "form", - "explode": false + "required": false } ], "responses": { @@ -37419,173 +36861,91 @@ } }, "200": { - "description": "List of AppCustomProductPageLocalizations", + "description": "Single SubscriptionGroup", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCustomProductPageLocalizationsResponse" + "$ref": "#/components/schemas/SubscriptionGroupResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCustomProductPages/{id}/relationships/appCustomProductPageVersions": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appCustomProductPages/{id}/appCustomProductPageVersions": { - "get": { + "patch": { "tags": [ - "AppCustomProductPages" + "SubscriptionGroups" ], - "operationId": "appCustomProductPages-appCustomProductPageVersions-get_to_many_related", - "parameters": [ - { - "name": "filter[state]", - "in": "query", - "description": "filter by attribute 'state'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REPLACED_WITH_NEW_VERSION", - "REJECTED" - ] + "operationId": "subscriptionGroups-update_instance", + "requestBody": { + "description": "SubscriptionGroup representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupUpdateRequest" } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appCustomProductPageLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" - ] + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appCustomProductPageVersions]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPage", - "appCustomProductPageLocalizations", - "state", - "version" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appCustomProductPages]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPages", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appCustomProductPageVersions", - "appStoreVersionTemplate", - "customProductPageTemplate", - "name", - "url", - "visible" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + } }, - { - "name": "limit[appCustomProductPageLocalizations]", - "in": "query", - "description": "maximum number of related appCustomProductPageLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + "200": { + "description": "Single SubscriptionGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupResponse" + } + } + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPage", - "appCustomProductPageLocalizations" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } } + } + }, + "delete": { + "tags": [ + "SubscriptionGroups" ], + "operationId": "subscriptionGroups-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -37617,15 +36977,18 @@ } } }, - "200": { - "description": "List of AppCustomProductPageVersions", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCustomProductPageVersionsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -37642,85 +37005,84 @@ } ] }, - "/v1/appEncryptionDeclarations/{id}/relationships/app": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "/v1/subscriptionIntroductoryOffers": { + "post": { + "tags": [ + "SubscriptionIntroductoryOffers" + ], + "operationId": "subscriptionIntroductoryOffers-create_instance", + "requestBody": { + "description": "SubscriptionIntroductoryOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferCreateRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionIntroductoryOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ] + } }, - "/v1/appEncryptionDeclarations/{id}/app": { - "get": { + "/v1/subscriptionIntroductoryOffers/{id}": { + "patch": { "tags": [ - "AppEncryptionDeclarations" + "SubscriptionIntroductoryOffers" ], - "operationId": "appEncryptionDeclarations-app-get_to_one_related", - "parameters": [ - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] + "operationId": "subscriptionIntroductoryOffers-update_instance", + "requestBody": { + "description": "SubscriptionIntroductoryOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferUpdateRequest" } - }, - "style": "form", - "explode": false - } - ], + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -37753,76 +37115,32 @@ } }, "200": { - "description": "Single App", + "description": "Single SubscriptionIntroductoryOffer", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appEncryptionDeclarations/{id}/relationships/appEncryptionDeclarationDocument": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appEncryptionDeclarations/{id}/appEncryptionDeclarationDocument": { - "get": { + "delete": { "tags": [ - "AppEncryptionDeclarations" - ], - "operationId": "appEncryptionDeclarations-appEncryptionDeclarationDocument-get_to_one_related", - "parameters": [ - { - "name": "fields[appEncryptionDeclarationDocuments]", - "in": "query", - "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEncryptionDeclaration", - "assetDeliveryState", - "assetToken", - "downloadUrl", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] - } - }, - "style": "form", - "explode": false - } + "SubscriptionIntroductoryOffers" ], + "operationId": "subscriptionIntroductoryOffers-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -37854,15 +37172,18 @@ } } }, - "200": { - "description": "Single AppEncryptionDeclarationDocument", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -37879,25 +37200,34 @@ } ] }, - "/v1/appEncryptionDeclarations/{id}/relationships/builds": { + "/v1/subscriptionLocalizations": { "post": { "tags": [ - "AppEncryptionDeclarations" + "SubscriptionLocalizations" ], - "operationId": "appEncryptionDeclarations-builds-create_to_many_relationship", - "deprecated": true, + "operationId": "subscriptionLocalizations-create_instance", "requestBody": { - "description": "List of related linkages", + "description": "SubscriptionLocalization representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppEncryptionDeclarationBuildsLinkagesRequest" + "$ref": "#/components/schemas/SubscriptionLocalizationCreateRequest" } } }, "required": true }, "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "403": { "description": "Forbidden error", "content": { @@ -37908,12 +37238,12 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single SubscriptionLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/SubscriptionLocalizationResponse" } } } @@ -37927,101 +37257,37 @@ } } } - }, - "204": { - "description": "Success (no content)" } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appEventLocalizations/{id}/relationships/appEventScreenshots": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appEventLocalizations/{id}/appEventScreenshots": { + "/v1/subscriptionLocalizations/{id}": { "get": { "tags": [ - "AppEventLocalizations" + "SubscriptionLocalizations" ], - "operationId": "appEventLocalizations-appEventScreenshots-get_to_many_related", + "operationId": "subscriptionLocalizations-get_instance", "parameters": [ { - "name": "fields[appEventScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type appEventScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEventAssetType", - "appEventLocalization", - "assetDeliveryState", - "assetToken", - "fileName", - "fileSize", - "imageAsset", - "uploadOperations", - "uploaded" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEventLocalizations]", + "name": "fields[subscriptionLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appEventLocalizations", + "description": "the fields to include for returned resources of type subscriptionLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appEvent", - "appEventScreenshots", - "appEventVideoClips", + "description", "locale", - "longDescription", "name", - "shortDescription" + "state", + "subscription" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "explode": false, + "required": false }, { "name": "include", @@ -38032,12 +37298,13 @@ "items": { "type": "string", "enum": [ - "appEventLocalization" + "subscription" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -38072,125 +37339,91 @@ } }, "200": { - "description": "List of AppEventScreenshots", + "description": "Single SubscriptionLocalization", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppEventScreenshotsResponse" + "$ref": "#/components/schemas/SubscriptionLocalizationResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "patch": { + "tags": [ + "SubscriptionLocalizations" + ], + "operationId": "subscriptionLocalizations-update_instance", + "requestBody": { + "description": "SubscriptionLocalization representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationUpdateRequest" + } + } }, - "style": "simple", "required": true - } - ] - }, - "/v1/appEventLocalizations/{id}/relationships/appEventVideoClips": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appEventLocalizations/{id}/appEventVideoClips": { - "get": { - "tags": [ - "AppEventLocalizations" - ], - "operationId": "appEventLocalizations-appEventVideoClips-get_to_many_related", - "parameters": [ - { - "name": "fields[appEventVideoClips]", - "in": "query", - "description": "the fields to include for returned resources of type appEventVideoClips", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEventAssetType", - "appEventLocalization", - "assetDeliveryState", - "fileName", - "fileSize", - "previewFrameTimeCode", - "previewImage", - "uploadOperations", - "uploaded", - "videoUrl" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appEventLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appEventLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEvent", - "appEventScreenshots", - "appEventVideoClips", - "locale", - "longDescription", - "name", - "shortDescription" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "200": { + "description": "Single SubscriptionLocalization", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationResponse" + } + } + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEventLocalization" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } } + } + }, + "delete": { + "tags": [ + "SubscriptionLocalizations" ], + "operationId": "subscriptionLocalizations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -38222,15 +37455,18 @@ } } }, - "200": { - "description": "List of AppEventVideoClips", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppEventVideoClipsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -38247,174 +37483,23 @@ } ] }, - "/v1/appEvents/{id}/relationships/localizations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appEvents/{id}/localizations": { - "get": { + "/v1/subscriptionOfferCodeCustomCodes": { + "post": { "tags": [ - "AppEvents" + "SubscriptionOfferCodeCustomCodes" ], - "operationId": "appEvents-localizations-get_to_many_related", - "parameters": [ - { - "name": "fields[appEventScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type appEventScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEventAssetType", - "appEventLocalization", - "assetDeliveryState", - "assetToken", - "fileName", - "fileSize", - "imageAsset", - "uploadOperations", - "uploaded" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEventVideoClips]", - "in": "query", - "description": "the fields to include for returned resources of type appEventVideoClips", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEventAssetType", - "appEventLocalization", - "assetDeliveryState", - "fileName", - "fileSize", - "previewFrameTimeCode", - "previewImage", - "uploadOperations", - "uploaded", - "videoUrl" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEventLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appEventLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEvent", - "appEventScreenshots", - "appEventVideoClips", - "locale", - "longDescription", - "name", - "shortDescription" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEvents]", - "in": "query", - "description": "the fields to include for returned resources of type appEvents", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "archivedTerritorySchedules", - "badge", - "deepLink", - "eventState", - "localizations", - "primaryLocale", - "priority", - "purchaseRequirement", - "purpose", - "referenceName", - "territorySchedules" - ] + "operationId": "subscriptionOfferCodeCustomCodes-create_instance", + "requestBody": { + "description": "SubscriptionOfferCodeCustomCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeCreateRequest" } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appEventScreenshots]", - "in": "query", - "description": "maximum number of related appEventScreenshots returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appEventVideoClips]", - "in": "query", - "description": "maximum number of related appEventVideoClips returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEvent", - "appEventScreenshots", - "appEventVideoClips" - ] - } - }, - "style": "form", - "explode": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -38436,93 +37521,74 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single SubscriptionOfferCodeCustomCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" } } } }, - "200": { - "description": "List of AppEventLocalizations", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppEventLocalizationsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/relationships/ageRatingDeclaration": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appInfos/{id}/ageRatingDeclaration": { + "/v1/subscriptionOfferCodeCustomCodes/{id}": { "get": { "tags": [ - "AppInfos" + "SubscriptionOfferCodeCustomCodes" ], - "operationId": "appInfos-ageRatingDeclaration-get_to_one_related", + "operationId": "subscriptionOfferCodeCustomCodes-get_instance", "parameters": [ { - "name": "fields[ageRatingDeclarations]", + "name": "fields[subscriptionOfferCodeCustomCodes]", "in": "query", - "description": "the fields to include for returned resources of type ageRatingDeclarations", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "alcoholTobaccoOrDrugUseOrReferences", - "contests", - "gambling", - "gamblingAndContests", - "gamblingSimulated", - "horrorOrFearThemes", - "kidsAgeBand", - "matureOrSuggestiveThemes", - "medicalOrTreatmentInformation", - "profanityOrCrudeHumor", - "seventeenPlus", - "sexualContentGraphicAndNudity", - "sexualContentOrNudity", - "unrestrictedWebAccess", - "violenceCartoonOrFantasy", - "violenceRealistic", - "violenceRealisticProlongedGraphicOrSadistic" + "active", + "createdDate", + "customCode", + "expirationDate", + "numberOfCodes", + "offerCode" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "offerCode" + ] + } + }, + "style": "form", + "explode": false, + "required": false } ], "responses": { @@ -38557,142 +37623,33 @@ } }, "200": { - "description": "Single AgeRatingDeclaration", + "description": "Single SubscriptionOfferCodeCustomCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AgeRatingDeclarationResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/relationships/appInfoLocalizations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/appInfoLocalizations": { - "get": { + "patch": { "tags": [ - "AppInfos" + "SubscriptionOfferCodeCustomCodes" ], - "operationId": "appInfos-appInfoLocalizations-get_to_many_related", - "parameters": [ - { - "name": "filter[locale]", - "in": "query", - "description": "filter by attribute 'locale'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appInfos]", - "in": "query", - "description": "the fields to include for returned resources of type appInfos", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appInfoLocalizations", - "appStoreAgeRating", - "appStoreState", - "brazilAgeRating", - "brazilAgeRatingV2", - "kidsAgeBand", - "primaryCategory", - "primarySubcategoryOne", - "primarySubcategoryTwo", - "secondaryCategory", - "secondarySubcategoryOne", - "secondarySubcategoryTwo" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appInfoLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appInfoLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appInfo", - "locale", - "name", - "privacyChoicesUrl", - "privacyPolicyText", - "privacyPolicyUrl", - "subtitle" - ] + "operationId": "subscriptionOfferCodeCustomCodes-update_instance", + "requestBody": { + "description": "SubscriptionOfferCodeCustomCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeUpdateRequest" } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appInfo" - ] - } - }, - "style": "form", - "explode": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -38725,11 +37682,21 @@ } }, "200": { - "description": "List of AppInfoLocalizations", + "description": "Single SubscriptionOfferCodeCustomCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppInfoLocalizationsResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -38749,73 +37716,23 @@ } ] }, - "/v1/appInfos/{id}/relationships/primaryCategory": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/primaryCategory": { - "get": { + "/v1/subscriptionOfferCodeOneTimeUseCodes": { + "post": { "tags": [ - "AppInfos" + "SubscriptionOfferCodeOneTimeUseCodes" ], - "operationId": "appInfos-primaryCategory-get_to_one_related", - "parameters": [ - { - "name": "fields[appCategories]", - "in": "query", - "description": "the fields to include for returned resources of type appCategories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "platforms", - "subcategories" - ] + "operationId": "subscriptionOfferCodeOneTimeUseCodes-create_instance", + "requestBody": { + "description": "SubscriptionOfferCodeOneTimeUseCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeCreateRequest" } - }, - "style": "form", - "explode": false - }, - { - "name": "limit[subcategories]", - "in": "query", - "description": "maximum number of related subcategories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "subcategories" - ] - } - }, - "style": "form", - "explode": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -38837,89 +37754,57 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single SubscriptionOfferCodeOneTimeUseCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" } } } }, - "200": { - "description": "Single AppCategory", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/relationships/primarySubcategoryOne": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appInfos/{id}/primarySubcategoryOne": { + "/v1/subscriptionOfferCodeOneTimeUseCodes/{id}": { "get": { "tags": [ - "AppInfos" + "SubscriptionOfferCodeOneTimeUseCodes" ], - "operationId": "appInfos-primarySubcategoryOne-get_to_one_related", + "operationId": "subscriptionOfferCodeOneTimeUseCodes-get_instance", "parameters": [ { - "name": "fields[appCategories]", + "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", "in": "query", - "description": "the fields to include for returned resources of type appCategories", + "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "parent", - "platforms", - "subcategories" + "active", + "createdDate", + "expirationDate", + "numberOfCodes", + "offerCode", + "values" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit[subcategories]", - "in": "query", - "description": "maximum number of related subcategories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + "explode": false, + "required": false }, { "name": "include", @@ -38930,13 +37815,13 @@ "items": { "type": "string", "enum": [ - "parent", - "subcategories" + "offerCode" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -38971,97 +37856,33 @@ } }, "200": { - "description": "Single AppCategory", + "description": "Single SubscriptionOfferCodeOneTimeUseCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/relationships/primarySubcategoryTwo": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/primarySubcategoryTwo": { - "get": { + "patch": { "tags": [ - "AppInfos" + "SubscriptionOfferCodeOneTimeUseCodes" ], - "operationId": "appInfos-primarySubcategoryTwo-get_to_one_related", - "parameters": [ - { - "name": "fields[appCategories]", - "in": "query", - "description": "the fields to include for returned resources of type appCategories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "platforms", - "subcategories" - ] + "operationId": "subscriptionOfferCodeOneTimeUseCodes-update_instance", + "requestBody": { + "description": "SubscriptionOfferCodeOneTimeUseCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeUpdateRequest" } - }, - "style": "form", - "explode": false - }, - { - "name": "limit[subcategories]", - "in": "query", - "description": "maximum number of related subcategories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "subcategories" - ] - } - }, - "style": "form", - "explode": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -39094,11 +37915,21 @@ } }, "200": { - "description": "Single AppCategory", + "description": "Single SubscriptionOfferCodeOneTimeUseCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -39118,73 +37949,23 @@ } ] }, - "/v1/appInfos/{id}/relationships/secondaryCategory": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/secondaryCategory": { - "get": { + "/v1/subscriptionOfferCodes": { + "post": { "tags": [ - "AppInfos" + "SubscriptionOfferCodes" ], - "operationId": "appInfos-secondaryCategory-get_to_one_related", - "parameters": [ - { - "name": "fields[appCategories]", - "in": "query", - "description": "the fields to include for returned resources of type appCategories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "platforms", - "subcategories" - ] + "operationId": "subscriptionOfferCodes-create_instance", + "requestBody": { + "description": "SubscriptionOfferCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCreateRequest" } - }, - "style": "form", - "explode": false - }, - { - "name": "limit[subcategories]", - "in": "query", - "description": "maximum number of related subcategories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "parent", - "subcategories" - ] - } - }, - "style": "form", - "explode": false - } - ], + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -39206,106 +37987,178 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single SubscriptionOfferCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeResponse" } } } }, - "200": { - "description": "Single AppCategory", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appInfos/{id}/relationships/secondarySubcategoryOne": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appInfos/{id}/secondarySubcategoryOne": { + "/v1/subscriptionOfferCodes/{id}": { "get": { "tags": [ - "AppInfos" + "SubscriptionOfferCodes" ], - "operationId": "appInfos-secondarySubcategoryOne-get_to_one_related", + "operationId": "subscriptionOfferCodes-get_instance", "parameters": [ { - "name": "fields[appCategories]", + "name": "fields[subscriptionOfferCodes]", "in": "query", - "description": "the fields to include for returned resources of type appCategories", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "parent", - "platforms", - "subcategories" + "active", + "customCodes", + "customerEligibilities", + "duration", + "name", + "numberOfPeriods", + "offerEligibility", + "offerMode", + "oneTimeUseCodes", + "prices", + "subscription", + "totalNumberOfCodes" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "limit[subcategories]", + "name": "include", "in": "query", - "description": "maximum number of related subcategories returned (when they are included)", + "description": "comma-separated list of relationships to include", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCodes", + "oneTimeUseCodes", + "prices", + "subscription" + ] + } }, - "style": "form" + "style": "form", + "explode": false, + "required": false }, { - "name": "include", + "name": "fields[subscriptionOfferCodeCustomCodes]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "parent", - "subcategories" + "active", + "createdDate", + "customCode", + "expirationDate", + "numberOfCodes", + "offerCode" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "createdDate", + "expirationDate", + "numberOfCodes", + "offerCode", + "values" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionOfferCodePrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[customCodes]", + "in": "query", + "description": "maximum number of related customCodes returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[oneTimeUseCodes]", + "in": "query", + "description": "maximum number of related oneTimeUseCodes returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -39340,31 +38193,86 @@ } }, "200": { - "description": "Single AppCategory", + "description": "Single SubscriptionOfferCode", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/SubscriptionOfferCodeResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "patch": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes-update_instance", + "requestBody": { + "description": "SubscriptionOfferCode representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeUpdateRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionOfferCode", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ] - }, - "/v1/appInfos/{id}/relationships/secondarySubcategoryTwo": { + }, "parameters": [ { "name": "id", @@ -39378,40 +38286,34 @@ } ] }, - "/v1/appInfos/{id}/secondarySubcategoryTwo": { + "/v1/subscriptionPricePoints/{id}": { "get": { "tags": [ - "AppInfos" + "SubscriptionPricePoints" ], - "operationId": "appInfos-secondarySubcategoryTwo-get_to_one_related", + "operationId": "subscriptionPricePoints-get_instance", "parameters": [ { - "name": "fields[appCategories]", + "name": "fields[subscriptionPricePoints]", "in": "query", - "description": "the fields to include for returned resources of type appCategories", + "description": "the fields to include for returned resources of type subscriptionPricePoints", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "parent", - "platforms", - "subcategories" + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit[subcategories]", - "in": "query", - "description": "maximum number of related subcategories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + "explode": false, + "required": false }, { "name": "include", @@ -39422,13 +38324,13 @@ "items": { "type": "string", "enum": [ - "parent", - "subcategories" + "territory" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false } ], "responses": { @@ -39463,11 +38365,11 @@ } }, "200": { - "description": "Single AppCategory", + "description": "Single SubscriptionPricePoint", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCategoryResponse" + "$ref": "#/components/schemas/SubscriptionPricePointResponse" } } } @@ -39487,24 +38389,23 @@ } ] }, - "/v1/appPreviewSets/{id}/relationships/appPreviews": { - "get": { + "/v1/subscriptionPrices": { + "post": { "tags": [ - "AppPreviewSets" - ], - "operationId": "appPreviewSets-appPreviews-get_to_many_relationship", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } + "SubscriptionPrices" ], + "operationId": "subscriptionPrices-create_instance", + "requestBody": { + "description": "SubscriptionPrice representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPriceCreateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -39526,45 +38427,46 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single SubscriptionPrice", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/SubscriptionPriceResponse" } } } }, - "200": { - "description": "List of related linkages", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPreviewSetAppPreviewsLinkagesResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "patch": { + } + }, + "/v1/subscriptionPrices/{id}": { + "delete": { "tags": [ - "AppPreviewSets" + "SubscriptionPrices" ], - "operationId": "appPreviewSets-appPreviews-replace_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppPreviewSetAppPreviewsLinkagesRequest" + "operationId": "subscriptionPrices-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } } }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -39613,84 +38515,143 @@ } ] }, - "/v1/appPreviewSets/{id}/appPreviews": { + "/v1/subscriptionPromotionalOffers": { + "post": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers-create_instance", + "requestBody": { + "description": "SubscriptionPromotionalOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferCreateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single SubscriptionPromotionalOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + } + }, + "/v1/subscriptionPromotionalOffers/{id}": { "get": { "tags": [ - "AppPreviewSets" + "SubscriptionPromotionalOffers" ], - "operationId": "appPreviewSets-appPreviews-get_to_many_related", + "operationId": "subscriptionPromotionalOffers-get_instance", "parameters": [ { - "name": "fields[appPreviews]", + "name": "fields[subscriptionPromotionalOffers]", "in": "query", - "description": "the fields to include for returned resources of type appPreviews", + "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSet", - "assetDeliveryState", - "fileName", - "fileSize", - "mimeType", - "previewFrameTimeCode", - "previewImage", - "sourceFileChecksum", - "uploadOperations", - "uploaded", - "videoUrl" + "duration", + "name", + "numberOfPeriods", + "offerCode", + "offerMode", + "prices", + "subscription" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPreviewSets]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" + "prices", + "subscription" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "explode": false, + "required": false }, { - "name": "include", + "name": "fields[subscriptionPromotionalOfferPrices]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSet" + "subscriptionPricePoint", + "territory" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -39725,185 +38686,91 @@ } }, "200": { - "description": "List of AppPreviews", + "description": "Single SubscriptionPromotionalOffer", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPreviewsResponse" + "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v3/appPricePoints/{id}/relationships/equalizations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v3/appPricePoints/{id}/equalizations": { - "get": { + "patch": { "tags": [ - "AppPricePoints" + "SubscriptionPromotionalOffers" ], - "operationId": "appPricePoints-equalizations-get_to_many_related", - "parameters": [ - { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" + "operationId": "subscriptionPromotionalOffers-update_instance", + "requestBody": { + "description": "SubscriptionPromotionalOffer representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferUpdateRequest" } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appPricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "customerPrice", - "equalizations", - "proceeds", - "territory" - ] + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "200": { + "description": "Single SubscriptionPromotionalOffer", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferResponse" + } + } + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "territory" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } } + } + }, + "delete": { + "tags": [ + "SubscriptionPromotionalOffers" ], + "operationId": "subscriptionPromotionalOffers-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -39935,20 +38802,18 @@ } } }, - "200": { - "description": "List of AppPricePoints", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricePointsV3Response" - } - }, - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -39965,45 +38830,23 @@ } ] }, - "/v1/appPricePoints/{id}/relationships/territory": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appPricePoints/{id}/territory": { - "get": { + "/v1/subscriptionSubmissions": { + "post": { "tags": [ - "AppPricePoints" + "SubscriptionSubmissions" ], - "operationId": "appPricePoints-territory-get_to_one_related", - "deprecated": true, - "parameters": [ - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] + "operationId": "subscriptionSubmissions-create_instance", + "requestBody": { + "description": "SubscriptionSubmission representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionSubmissionCreateRequest" } - }, - "style": "form", - "explode": false - } - ], + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -40025,195 +38868,430 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single SubscriptionSubmission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/SubscriptionSubmissionResponse" } } } }, - "200": { - "description": "Single Territory", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoryResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appPriceSchedules/{id}/relationships/automaticPrices": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "/v1/subscriptions": { + "post": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-create_instance", + "requestBody": { + "description": "Subscription representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionCreateRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "201": { + "description": "Single Subscription", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } } - ] + } }, - "/v1/appPriceSchedules/{id}/automaticPrices": { + "/v1/subscriptions/{id}": { "get": { "tags": [ - "AppPriceSchedules" + "Subscriptions" ], - "operationId": "appPriceSchedules-automaticPrices-get_to_many_related", + "operationId": "subscriptions-get_instance", "parameters": [ { - "name": "filter[endDate]", + "name": "fields[subscriptions]", "in": "query", - "description": "filter by attribute 'endDate'", + "description": "the fields to include for returned resources of type subscriptions", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "filter[startDate]", + "name": "include", "in": "query", - "description": "filter by attribute 'startDate'", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "offerCodes", + "prices", + "promotedPurchase", + "promotionalOffers", + "subscriptionAvailability", + "subscriptionLocalizations" + ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "filter[territory]", + "name": "fields[promotedPurchases]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "the fields to include for returned resources of type promotedPurchases", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPrices]", + "name": "fields[subscriptionPricePoints]", "in": "query", - "description": "the fields to include for returned resources of type appPrices", + "description": "the fields to include for returned resources of type subscriptionPricePoints", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPricePoint", - "endDate", - "manual", - "startDate", + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", "territory" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPricePoints]", + "name": "fields[subscriptionPromotionalOffers]", "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", + "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "customerPrice", - "equalizations", - "proceeds", - "territory" + "duration", + "name", + "numberOfPeriods", + "offerCode", + "offerMode", + "prices", + "subscription" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[territories]", + "name": "fields[subscriptionOfferCodes]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "active", + "customCodes", + "customerEligibilities", + "duration", + "name", + "numberOfPeriods", + "offerEligibility", + "offerMode", + "oneTimeUseCodes", + "prices", + "subscription", + "totalNumberOfCodes" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "limit", + "name": "fields[subscriptionAppStoreReviewScreenshots]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "subscription", + "uploadOperations", + "uploaded" + ] + } }, - "style": "form" + "style": "form", + "explode": false, + "required": false }, { - "name": "include", + "name": "fields[subscriptionAvailabilities]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPricePoint", - "territory" + "availableInNewTerritories", + "availableTerritories", + "subscription" ] } }, "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "preserveCurrentPrice", + "preserved", + "startDate", + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionIntroductoryOffers]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "duration", + "endDate", + "numberOfPeriods", + "offerMode", + "startDate", + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "name", + "state", + "subscription" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[introductoryOffers]", + "in": "query", + "description": "maximum number of related introductoryOffers returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[offerCodes]", + "in": "query", + "description": "maximum number of related offerCodes returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[promotionalOffers]", + "in": "query", + "description": "maximum number of related promotionalOffers returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + }, + { + "name": "limit[subscriptionLocalizations]", + "in": "query", + "description": "maximum number of related subscriptionLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, "403": { "description": "Forbidden error", @@ -40236,68 +39314,33 @@ } }, "200": { - "description": "List of AppPrices", + "description": "Single Subscription", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricesV2Response" + "$ref": "#/components/schemas/SubscriptionResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appPriceSchedules/{id}/relationships/baseTerritory": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appPriceSchedules/{id}/baseTerritory": { - "get": { + "patch": { "tags": [ - "AppPriceSchedules" + "Subscriptions" ], - "operationId": "appPriceSchedules-baseTerritory-get_to_one_related", - "parameters": [ - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] + "operationId": "subscriptions-update_instance", + "requestBody": { + "description": "Subscription representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionUpdateRequest" } - }, - "style": "form", - "explode": false - } - ], + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -40330,31 +39373,78 @@ } }, "200": { - "description": "Single Territory", + "description": "Single Subscription", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoryResponse" + "$ref": "#/components/schemas/SubscriptionResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "delete": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "style": "simple", - "required": true + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } } - ] - }, - "/v1/appPriceSchedules/{id}/relationships/manualPrices": { + }, "parameters": [ { "name": "id", @@ -40368,92 +39458,13 @@ } ] }, - "/v1/appPriceSchedules/{id}/manualPrices": { + "/v1/territories": { "get": { "tags": [ - "AppPriceSchedules" + "Territories" ], - "operationId": "appPriceSchedules-manualPrices-get_to_many_related", + "operationId": "territories-get_collection", "parameters": [ - { - "name": "filter[endDate]", - "in": "query", - "description": "filter by attribute 'endDate'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[startDate]", - "in": "query", - "description": "filter by attribute 'startDate'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appPrices]", - "in": "query", - "description": "the fields to include for returned resources of type appPrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPricePoint", - "endDate", - "manual", - "startDate", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appPricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "customerPrice", - "equalizations", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "fields[territories]", "in": "query", @@ -40468,7 +39479,8 @@ } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { "name": "limit", @@ -40479,25 +39491,59 @@ "maximum": 200 }, "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPricePoint", - "territory" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "200": { + "description": "List of Territories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoriesResponse" + } + } + } } + } + } + }, + "/v1/territoryAvailabilities/{id}": { + "patch": { + "tags": [ + "TerritoryAvailabilities" ], + "operationId": "territoryAvailabilities-update_instance", + "requestBody": { + "description": "TerritoryAvailability representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryAvailabilityUpdateRequest" + } + } + }, + "required": true + }, "responses": { "400": { "description": "Parameter error(s)", @@ -40530,11 +39576,21 @@ } }, "200": { - "description": "List of AppPrices", + "description": "Single TerritoryAvailability", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricesV2Response" + "$ref": "#/components/schemas/TerritoryAvailabilityResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } @@ -40554,32 +39610,17 @@ } ] }, - "/v1/appPriceTiers/{id}/relationships/pricePoints": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appPriceTiers/{id}/pricePoints": { + "/v1/userInvitations": { "get": { "tags": [ - "AppPriceTiers" + "UserInvitations" ], - "operationId": "appPriceTiers-pricePoints-get_to_many_related", - "deprecated": true, + "operationId": "userInvitations-get_collection", "parameters": [ { - "name": "filter[territory]", + "name": "filter[email]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "filter by attribute 'email'", "schema": { "type": "array", "items": { @@ -40587,61 +39628,98 @@ } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPriceTiers]", + "name": "filter[roles]", "in": "query", - "description": "the fields to include for returned resources of type appPriceTiers", + "description": "filter by attribute 'roles'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "pricePoints" + "ADMIN", + "FINANCE", + "ACCOUNT_HOLDER", + "SALES", + "MARKETING", + "APP_MANAGER", + "DEVELOPER", + "ACCESS_TO_REPORTS", + "CUSTOMER_SUPPORT", + "IMAGE_MANAGER", + "CREATE_APPS", + "CLOUD_MANAGED_DEVELOPER_ID", + "CLOUD_MANAGED_APP_DISTRIBUTION" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPricePoints]", + "name": "filter[visibleApps]", "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", + "description": "filter by id(s) of related 'visibleApps'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "customerPrice", - "priceTier", - "proceeds", - "territory" - ] + "type": "string" } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[territories]", + "name": "sort", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "email", + "-email", + "lastName", + "-lastName" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "limit", + "name": "fields[userInvitations]", + "in": "query", + "description": "the fields to include for returned resources of type userInvitations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "allAppsVisible", + "email", + "expirationDate", + "firstName", + "lastName", + "provisioningAllowed", + "roles", + "visibleApps" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit", "in": "query", "description": "maximum resources per page", "schema": { @@ -40659,87 +39737,84 @@ "items": { "type": "string", "enum": [ - "priceTier", - "territory" + "visibleApps" ] } }, "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + "explode": false, + "required": false }, - "200": { - "description": "List of AppPricePoints", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppPricePointsResponse" - } + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false, + "required": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appScreenshotSets/{id}/relationships/appScreenshots": { - "get": { - "tags": [ - "AppScreenshotSets" - ], - "operationId": "appScreenshotSets-appScreenshots-get_to_many_relationship", - "parameters": [ { - "name": "limit", + "name": "limit[visibleApps]", "in": "query", - "description": "maximum resources per page", + "description": "maximum number of related visibleApps returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 }, - "style": "form" + "style": "form", + "required": false } ], "responses": { @@ -40763,45 +39838,45 @@ } } }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, "200": { - "description": "List of related linkages", + "description": "List of UserInvitations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppScreenshotSetAppScreenshotsLinkagesResponse" + "$ref": "#/components/schemas/UserInvitationsResponse" } } } } } }, - "patch": { + "post": { "tags": [ - "AppScreenshotSets" + "UserInvitations" ], - "operationId": "appScreenshotSets-appScreenshots-replace_to_many_relationship", + "operationId": "userInvitations-create_instance", "requestBody": { - "description": "List of related linkages", + "description": "UserInvitation representation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppScreenshotSetAppScreenshotsLinkagesRequest" + "$ref": "#/components/schemas/UserInvitationCreateRequest" } } }, "required": true }, "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "403": { "description": "Forbidden error", "content": { @@ -40812,12 +39887,12 @@ } } }, - "404": { - "description": "Not found error", + "201": { + "description": "Single UserInvitation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/UserInvitationResponse" } } } @@ -40831,102 +39906,128 @@ } } } - }, - "204": { - "description": "Success (no content)" } } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] + } }, - "/v1/appScreenshotSets/{id}/appScreenshots": { + "/v1/userInvitations/{id}": { "get": { "tags": [ - "AppScreenshotSets" + "UserInvitations" ], - "operationId": "appScreenshotSets-appScreenshots-get_to_many_related", + "operationId": "userInvitations-get_instance", "parameters": [ { - "name": "fields[appScreenshotSets]", + "name": "fields[userInvitations]", "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", + "description": "the fields to include for returned resources of type userInvitations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" + "allAppsVisible", + "email", + "expirationDate", + "firstName", + "lastName", + "provisioningAllowed", + "roles", + "visibleApps" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appScreenshots]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appScreenshots", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appScreenshotSet", - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "visibleApps" ] } }, "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "explode": false, + "required": false }, { - "name": "include", + "name": "fields[apps]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appScreenshotSet" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + }, + { + "name": "limit[visibleApps]", + "in": "query", + "description": "maximum number of related visibleApps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -40961,125 +40062,22 @@ } }, "200": { - "description": "List of AppScreenshots", + "description": "Single UserInvitation", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppScreenshotsResponse" + "$ref": "#/components/schemas/UserInvitationResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreReviewDetails/{id}/relationships/appStoreReviewAttachments": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreReviewDetails/{id}/appStoreReviewAttachments": { - "get": { + "delete": { "tags": [ - "AppStoreReviewDetails" - ], - "operationId": "appStoreReviewDetails-appStoreReviewAttachments-get_to_many_related", - "parameters": [ - { - "name": "fields[appStoreReviewDetails]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewDetails", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewAttachments", - "appStoreVersion", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreReviewAttachments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewAttachments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewDetail", - "assetDeliveryState", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewDetail" - ] - } - }, - "style": "form", - "explode": false - } + "UserInvitations" ], + "operationId": "userInvitations-delete_instance", "responses": { "400": { "description": "Parameter error(s)", @@ -41111,15 +40109,18 @@ } } }, - "200": { - "description": "List of AppStoreReviewAttachments", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreReviewAttachmentsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -41136,61 +40137,46 @@ } ] }, - "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appPreviewSets": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets": { + "/v1/users": { "get": { "tags": [ - "AppStoreVersionExperimentTreatmentLocalizations" + "Users" ], - "operationId": "appStoreVersionExperimentTreatmentLocalizations-appPreviewSets-get_to_many_related", + "operationId": "users-get_collection", "parameters": [ { - "name": "filter[previewType]", + "name": "filter[roles]", "in": "query", - "description": "filter by attribute 'previewType'", + "description": "filter by attribute 'roles'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IPHONE_67", - "IPHONE_61", - "IPHONE_65", - "IPHONE_58", - "IPHONE_55", - "IPHONE_47", - "IPHONE_40", - "IPHONE_35", - "IPAD_PRO_3GEN_129", - "IPAD_PRO_3GEN_11", - "IPAD_PRO_129", - "IPAD_105", - "IPAD_97", - "DESKTOP", - "APPLE_TV" + "ADMIN", + "FINANCE", + "ACCOUNT_HOLDER", + "SALES", + "MARKETING", + "APP_MANAGER", + "DEVELOPER", + "ACCESS_TO_REPORTS", + "CUSTOMER_SUPPORT", + "IMAGE_MANAGER", + "CREATE_APPS", + "CLOUD_MANAGED_DEVELOPER_ID", + "CLOUD_MANAGED_APP_DISTRIBUTION" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "filter[appCustomProductPageLocalization]", + "name": "filter[username]", "in": "query", - "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "description": "filter by attribute 'username'", "schema": { "type": "array", "items": { @@ -41198,12 +40184,13 @@ } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "filter[appStoreVersionLocalization]", + "name": "filter[visibleApps]", "in": "query", - "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "description": "filter by id(s) of related 'visibleApps'", "schema": { "type": "array", "items": { @@ -41211,137 +40198,214 @@ } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appCustomProductPageLocalizations]", + "name": "sort", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" + "lastName", + "-lastName", + "username", + "-username" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "name": "fields[users]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "description": "the fields to include for returned resources of type users", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" + "allAppsVisible", + "firstName", + "lastName", + "provisioningAllowed", + "roles", + "username", + "visibleApps" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appPreviews]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appPreviews", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSet", - "assetDeliveryState", - "fileName", - "fileSize", - "mimeType", - "previewFrameTimeCode", - "previewImage", - "sourceFileChecksum", - "uploadOperations", - "uploaded", - "videoUrl" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appPreviewSets]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" + "visibleApps" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "fields[appStoreVersionLocalizations]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false }, { - "name": "limit", + "name": "limit[visibleApps]", "in": "query", - "description": "maximum resources per page", + "description": "maximum number of related visibleApps returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 }, - "style": "form" + "style": "form", + "required": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, + "200": { + "description": "List of Users", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UsersResponse" + } + } + } + } + } + } + }, + "/v1/users/{id}": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users-get_instance", + "parameters": [ { - "name": "limit[appPreviews]", + "name": "fields[users]", "in": "query", - "description": "maximum number of related appPreviews returned (when they are included)", + "description": "the fields to include for returned resources of type users", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "allAppsVisible", + "firstName", + "lastName", + "provisioningAllowed", + "roles", + "username", + "visibleApps" + ] + } }, - "style": "form" + "style": "form", + "explode": false, + "required": false }, { "name": "include", @@ -41352,15 +40416,84 @@ "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization" + "visibleApps" ] } }, "style": "form", - "explode": false + "explode": false, + "required": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false, + "required": false + }, + { + "name": "limit[visibleApps]", + "in": "query", + "description": "maximum number of related visibleApps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "required": false } ], "responses": { @@ -41395,14 +40528,134 @@ } }, "200": { - "description": "List of AppPreviewSets", + "description": "Single User", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPreviewSetsResponse" + "$ref": "#/components/schemas/UserResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "Users" + ], + "operationId": "users-update_instance", + "requestBody": { + "description": "User representation", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserUpdateRequest" + } + } + }, + "required": true + }, + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single User", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "operationId": "users-delete_instance", + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -41419,7 +40672,7 @@ } ] }, - "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appScreenshotSets": { + "/v2/appAvailabilities/{id}/relationships/territoryAvailabilities": { "parameters": [ { "name": "id", @@ -41433,53 +40686,28 @@ } ] }, - "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets": { + "/v2/appAvailabilities/{id}/territoryAvailabilities": { "get": { "tags": [ - "AppStoreVersionExperimentTreatmentLocalizations" + "AppAvailabilities" ], - "operationId": "appStoreVersionExperimentTreatmentLocalizations-appScreenshotSets-get_to_many_related", + "operationId": "appAvailabilitiesV2-territoryAvailabilities-get_to_many_related", "parameters": [ { - "name": "filter[screenshotDisplayType]", + "name": "fields[territoryAvailabilities]", "in": "query", - "description": "filter by attribute 'screenshotDisplayType'", + "description": "the fields to include for returned resources of type territoryAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "APP_IPHONE_67", - "APP_IPHONE_61", - "APP_IPHONE_65", - "APP_IPHONE_58", - "APP_IPHONE_55", - "APP_IPHONE_47", - "APP_IPHONE_40", - "APP_IPHONE_35", - "APP_IPAD_PRO_3GEN_129", - "APP_IPAD_PRO_3GEN_11", - "APP_IPAD_PRO_129", - "APP_IPAD_105", - "APP_IPAD_97", - "APP_DESKTOP", - "APP_WATCH_ULTRA", - "APP_WATCH_SERIES_7", - "APP_WATCH_SERIES_4", - "APP_WATCH_SERIES_3", - "APP_APPLE_TV", - "IMESSAGE_APP_IPHONE_67", - "IMESSAGE_APP_IPHONE_61", - "IMESSAGE_APP_IPHONE_65", - "IMESSAGE_APP_IPHONE_58", - "IMESSAGE_APP_IPHONE_55", - "IMESSAGE_APP_IPHONE_47", - "IMESSAGE_APP_IPHONE_40", - "IMESSAGE_APP_IPAD_PRO_3GEN_129", - "IMESSAGE_APP_IPAD_PRO_3GEN_11", - "IMESSAGE_APP_IPAD_PRO_129", - "IMESSAGE_APP_IPAD_105", - "IMESSAGE_APP_IPAD_97" + "available", + "contentStatuses", + "preOrderEnabled", + "preOrderPublishDate", + "releaseDate", + "territory" ] } }, @@ -41487,134 +40715,135 @@ "explode": false }, { - "name": "filter[appCustomProductPageLocalization]", + "name": "fields[territories]", "in": "query", - "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "currency" + ] } }, "style": "form", "explode": false }, { - "name": "filter[appStoreVersionLocalization]", + "name": "limit", "in": "query", - "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appScreenshotSets]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" + "territory" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appCustomProductPageLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type appScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appScreenshotSet", - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] + "200": { + "description": "List of TerritoryAvailabilities", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryAvailabilitiesResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appAvailabilities/{id}/relationships/availableTerritories": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appAvailabilities/{id}/availableTerritories": { + "get": { + "tags": [ + "AppAvailabilities" + ], + "operationId": "appAvailabilities-availableTerritories-get_to_many_related", + "parameters": [ { - "name": "fields[appStoreVersionLocalizations]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "currency" ] } }, @@ -41630,35 +40859,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "limit[appScreenshots]", - "in": "query", - "description": "maximum number of related appScreenshots returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -41693,11 +40893,11 @@ } }, "200": { - "description": "List of AppScreenshotSets", + "description": "List of Territories", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppScreenshotSetsResponse" + "$ref": "#/components/schemas/TerritoriesResponse" } } } @@ -41717,7 +40917,7 @@ } ] }, - "/v1/appStoreVersionExperimentTreatments/{id}/relationships/appStoreVersionExperimentTreatmentLocalizations": { + "/v1/appCategories/{id}/relationships/parent": { "parameters": [ { "name": "id", @@ -41731,101 +40931,121 @@ } ] }, - "/v1/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations": { + "/v1/appCategories/{id}/parent": { "get": { "tags": [ - "AppStoreVersionExperimentTreatments" + "AppCategories" ], - "operationId": "appStoreVersionExperimentTreatments-appStoreVersionExperimentTreatmentLocalizations-get_to_many_related", + "operationId": "appCategories-parent-get_to_one_related", "parameters": [ { - "name": "filter[locale]", - "in": "query", - "description": "filter by attribute 'locale'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appScreenshotSets]", + "name": "fields[appCategories]", "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" + "parent", + "platforms", + "subcategories" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appStoreVersionExperimentTreatments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appIcon", - "appIconName", - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2", - "name", - "promotedDate" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "200": { + "description": "Single AppCategory with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCategoryWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appCategories/{id}/relationships/subcategories": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appCategories/{id}/subcategories": { + "get": { + "tags": [ + "AppCategories" + ], + "operationId": "appCategories-subcategories-get_to_many_related", + "parameters": [ { - "name": "fields[appPreviewSets]", + "name": "fields[appCategories]", "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" + "parent", + "platforms", + "subcategories" ] } }, @@ -41841,44 +41061,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "limit[appScreenshotSets]", - "in": "query", - "description": "maximum number of related appScreenshotSets returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appPreviewSets]", - "in": "query", - "description": "maximum number of related appPreviewSets returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -41913,11 +41095,11 @@ } }, "200": { - "description": "List of AppStoreVersionExperimentTreatmentLocalizations", + "description": "List of AppCategories with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalizationsResponse" + "$ref": "#/components/schemas/AppCategoriesWithoutIncludesResponse" } } } @@ -41937,7 +41119,7 @@ } ] }, - "/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { + "/v1/appClipDefaultExperienceLocalizations/{id}/relationships/appClipHeaderImage": { "parameters": [ { "name": "id", @@ -41951,80 +41133,30 @@ } ] }, - "/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { + "/v1/appClipDefaultExperienceLocalizations/{id}/appClipHeaderImage": { "get": { "tags": [ - "AppStoreVersionExperiments" + "AppClipDefaultExperienceLocalizations" ], - "operationId": "appStoreVersionExperiments-appStoreVersionExperimentTreatments-get_to_many_related", + "operationId": "appClipDefaultExperienceLocalizations-appClipHeaderImage-get_to_one_related", "parameters": [ { - "name": "fields[appStoreVersionExperiments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersionExperiments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersionExperimentTreatments]", + "name": "fields[appClipHeaderImages]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "description": "the fields to include for returned resources of type appClipHeaderImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appIcon", - "appIconName", - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2", - "name", - "promotedDate" + "appClipDefaultExperienceLocalization", + "assetDeliveryState", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, @@ -42032,44 +41164,24 @@ "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "name": "fields[appClipDefaultExperienceLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" + "appClipDefaultExperience", + "appClipHeaderImage", + "locale", + "subtitle" ] } }, "style": "form", "explode": false }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -42079,9 +41191,7 @@ "items": { "type": "string", "enum": [ - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2" + "appClipDefaultExperienceLocalization" ] } }, @@ -42121,11 +41231,11 @@ } }, "200": { - "description": "List of AppStoreVersionExperimentTreatments", + "description": "Single AppClipHeaderImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentsResponse" + "$ref": "#/components/schemas/AppClipHeaderImageResponse" } } } @@ -42145,7 +41255,7 @@ } ] }, - "/v1/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { + "/v1/appClipDefaultExperiences/{id}/relationships/appClipAppStoreReviewDetail": { "parameters": [ { "name": "id", @@ -42159,35 +41269,24 @@ } ] }, - "/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { + "/v1/appClipDefaultExperiences/{id}/appClipAppStoreReviewDetail": { "get": { "tags": [ - "AppStoreVersionExperiments" + "AppClipDefaultExperiences" ], - "operationId": "appStoreVersionExperiments-appStoreVersionExperimentTreatments-get_to_many_related", - "deprecated": true, + "operationId": "appClipDefaultExperiences-appClipAppStoreReviewDetail-get_to_one_related", "parameters": [ { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[appClipAppStoreReviewDetails]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "appClipDefaultExperience", + "invocationUrls" ] } }, @@ -42195,23 +41294,20 @@ "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[appClipDefaultExperiences]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" ] } }, @@ -42219,68 +41315,7 @@ "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appIcon", - "appIconName", - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2", - "name", - "promotedDate" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", - "in": "query", - "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", + "name": "include", "in": "query", "description": "comma-separated list of relationships to include", "schema": { @@ -42288,9 +41323,7 @@ "items": { "type": "string", "enum": [ - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2" + "appClipDefaultExperience" ] } }, @@ -42330,11 +41363,11 @@ } }, "200": { - "description": "List of AppStoreVersionExperimentTreatments", + "description": "Single AppClipAppStoreReviewDetail", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentsResponse" + "$ref": "#/components/schemas/AppClipAppStoreReviewDetailResponse" } } } @@ -42354,7 +41387,7 @@ } ] }, - "/v1/appStoreVersionLocalizations/{id}/relationships/appPreviewSets": { + "/v1/appClipDefaultExperiences/{id}/relationships/appClipDefaultExperienceLocalizations": { "parameters": [ { "name": "id", @@ -42368,60 +41401,17 @@ } ] }, - "/v1/appStoreVersionLocalizations/{id}/appPreviewSets": { + "/v1/appClipDefaultExperiences/{id}/appClipDefaultExperienceLocalizations": { "get": { "tags": [ - "AppStoreVersionLocalizations" + "AppClipDefaultExperiences" ], - "operationId": "appStoreVersionLocalizations-appPreviewSets-get_to_many_related", + "operationId": "appClipDefaultExperiences-appClipDefaultExperienceLocalizations-get_to_many_related", "parameters": [ { - "name": "filter[previewType]", - "in": "query", - "description": "filter by attribute 'previewType'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IPHONE_67", - "IPHONE_61", - "IPHONE_65", - "IPHONE_58", - "IPHONE_55", - "IPHONE_47", - "IPHONE_40", - "IPHONE_35", - "IPAD_PRO_3GEN_129", - "IPAD_PRO_3GEN_11", - "IPAD_PRO_129", - "IPAD_105", - "IPAD_97", - "DESKTOP", - "APPLE_TV" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appCustomProductPageLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appCustomProductPageLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionExperimentTreatmentLocalization]", + "name": "filter[locale]", "in": "query", - "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "description": "filter by attribute 'locale'", "schema": { "type": "array", "items": { @@ -42432,19 +41422,20 @@ "explode": false }, { - "name": "fields[appCustomProductPageLocalizations]", + "name": "fields[appClipDefaultExperiences]", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" ] } }, @@ -42452,18 +41443,18 @@ "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "name": "fields[appClipDefaultExperienceLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" + "appClipDefaultExperience", + "appClipHeaderImage", + "locale", + "subtitle" ] } }, @@ -42471,70 +41462,22 @@ "explode": false }, { - "name": "fields[appPreviews]", + "name": "fields[appClipHeaderImages]", "in": "query", - "description": "the fields to include for returned resources of type appPreviews", + "description": "the fields to include for returned resources of type appClipHeaderImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSet", + "appClipDefaultExperienceLocalization", "assetDeliveryState", "fileName", "fileSize", - "mimeType", - "previewFrameTimeCode", - "previewImage", + "imageAsset", "sourceFileChecksum", "uploadOperations", - "uploaded", - "videoUrl" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appPreviewSets]", - "in": "query", - "description": "the fields to include for returned resources of type appPreviewSets", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "previewType" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersionLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "uploaded" ] } }, @@ -42551,16 +41494,6 @@ }, "style": "form" }, - { - "name": "limit[appPreviews]", - "in": "query", - "description": "maximum number of related appPreviews returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -42570,10 +41503,8 @@ "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appPreviews", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization" + "appClipDefaultExperience", + "appClipHeaderImage" ] } }, @@ -42613,11 +41544,11 @@ } }, "200": { - "description": "List of AppPreviewSets", + "description": "List of AppClipDefaultExperienceLocalizations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPreviewSetsResponse" + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalizationsResponse" } } } @@ -42637,7 +41568,108 @@ } ] }, - "/v1/appStoreVersionLocalizations/{id}/relationships/appScreenshotSets": { + "/v1/appClipDefaultExperiences/{id}/relationships/releaseWithAppStoreVersion": { + "get": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_relationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppClipDefaultExperiences" + ], + "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-update_to_one_relationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, "parameters": [ { "name": "id", @@ -42651,53 +41683,35 @@ } ] }, - "/v1/appStoreVersionLocalizations/{id}/appScreenshotSets": { + "/v1/appClipDefaultExperiences/{id}/releaseWithAppStoreVersion": { "get": { "tags": [ - "AppStoreVersionLocalizations" + "AppClipDefaultExperiences" ], - "operationId": "appStoreVersionLocalizations-appScreenshotSets-get_to_many_related", + "operationId": "appClipDefaultExperiences-releaseWithAppStoreVersion-get_to_one_related", "parameters": [ { - "name": "filter[screenshotDisplayType]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "filter by attribute 'screenshotDisplayType'", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "APP_IPHONE_67", - "APP_IPHONE_61", - "APP_IPHONE_65", - "APP_IPHONE_58", - "APP_IPHONE_55", - "APP_IPHONE_47", - "APP_IPHONE_40", - "APP_IPHONE_35", - "APP_IPAD_PRO_3GEN_129", - "APP_IPAD_PRO_3GEN_11", - "APP_IPAD_PRO_129", - "APP_IPAD_105", - "APP_IPAD_97", - "APP_DESKTOP", - "APP_WATCH_ULTRA", - "APP_WATCH_SERIES_7", - "APP_WATCH_SERIES_4", - "APP_WATCH_SERIES_3", - "APP_APPLE_TV", - "IMESSAGE_APP_IPHONE_67", - "IMESSAGE_APP_IPHONE_61", - "IMESSAGE_APP_IPHONE_65", - "IMESSAGE_APP_IPHONE_58", - "IMESSAGE_APP_IPHONE_55", - "IMESSAGE_APP_IPHONE_47", - "IMESSAGE_APP_IPHONE_40", - "IMESSAGE_APP_IPAD_PRO_3GEN_129", - "IMESSAGE_APP_IPAD_PRO_3GEN_11", - "IMESSAGE_APP_IPAD_PRO_129", - "IMESSAGE_APP_IPAD_105", - "IMESSAGE_APP_IPAD_97" + "app", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -42705,45 +41719,31 @@ "explode": false }, { - "name": "filter[appCustomProductPageLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appCustomProductPageLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[appStoreVersionExperimentTreatmentLocalization]", - "in": "query", - "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appScreenshotSets]", + "name": "fields[ageRatingDeclarations]", "in": "query", - "description": "the fields to include for returned resources of type appScreenshotSets", + "description": "the fields to include for returned resources of type ageRatingDeclarations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization", - "screenshotDisplayType" + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" ] } }, @@ -42751,19 +41751,15 @@ "explode": false }, { - "name": "fields[appCustomProductPageLocalizations]", + "name": "fields[appStoreVersionSubmissions]", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "description": "the fields to include for returned resources of type appStoreVersionSubmissions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageVersion", - "appPreviewSets", - "appScreenshotSets", - "locale", - "promotionalText" + "appStoreVersion" ] } }, @@ -42771,18 +41767,24 @@ "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "name": "fields[appStoreReviewDetails]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "description": "the fields to include for returned resources of type appStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersionExperimentTreatment", - "locale" + "appStoreReviewAttachments", + "appStoreVersion", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" ] } }, @@ -42790,24 +41792,34 @@ "explode": false }, { - "name": "fields[appScreenshots]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "the fields to include for returned resources of type appScreenshots", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appScreenshotSet", - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" ] } }, @@ -42815,24 +41827,58 @@ "explode": false }, { - "name": "fields[appStoreVersionLocalizations]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -42840,149 +41886,183 @@ "explode": false }, { - "name": "limit", + "name": "fields[routingAppCoverages]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type routingAppCoverages", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[appScreenshots]", + "name": "fields[appClipDefaultExperiences]", "in": "query", - "description": "maximum number of related appScreenshots returned (when they are included)", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "include", + "name": "fields[appStoreVersionPhasedReleases]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPageLocalization", - "appScreenshots", - "appStoreVersionExperimentTreatmentLocalization", - "appStoreVersionLocalization" + "appStoreVersion", + "currentDayNumber", + "phasedReleaseState", + "startDate", + "totalPauseDuration" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "List of AppScreenshotSets", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppScreenshotSetsResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + { + "name": "limit[appStoreVersionLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreVersions/{id}/relationships/ageRatingDeclaration": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + { + "name": "limit[appStoreVersionExperiments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreVersions/{id}/ageRatingDeclaration": { - "get": { - "tags": [ - "AppStoreVersions" - ], - "operationId": "appStoreVersions-ageRatingDeclaration-get_to_one_related", - "deprecated": true, - "parameters": [ { - "name": "fields[ageRatingDeclarations]", + "name": "limit[appStoreVersionExperimentsV2]", "in": "query", - "description": "the fields to include for returned resources of type ageRatingDeclarations", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "alcoholTobaccoOrDrugUseOrReferences", - "contests", - "gambling", - "gamblingAndContests", - "gamblingSimulated", - "horrorOrFearThemes", - "kidsAgeBand", - "matureOrSuggestiveThemes", - "medicalOrTreatmentInformation", - "profanityOrCrudeHumor", - "seventeenPlus", - "sexualContentGraphicAndNudity", - "sexualContentOrNudity", - "unrestrictedWebAccess", - "violenceCartoonOrFantasy", - "violenceRealistic", - "violenceRealisticProlongedGraphicOrSadistic" + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "routingAppCoverage" ] } }, @@ -43022,11 +42102,11 @@ } }, "200": { - "description": "Single AgeRatingDeclaration", + "description": "Single AppStoreVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AgeRatingDeclarationResponse" + "$ref": "#/components/schemas/AppStoreVersionResponse" } } } @@ -43046,108 +42126,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/appClipDefaultExperience": { - "get": { - "tags": [ - "AppStoreVersions" - ], - "operationId": "appStoreVersions-appClipDefaultExperience-get_to_one_relationship", - "parameters": [], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppStoreVersionAppClipDefaultExperienceLinkageResponse" - } - } - } - } - } - }, - "patch": { - "tags": [ - "AppStoreVersions" - ], - "operationId": "appStoreVersions-appClipDefaultExperience-update_to_one_relationship", - "requestBody": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppStoreVersionAppClipDefaultExperienceLinkageRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, + "/v1/appClips/{id}/relationships/appClipAdvancedExperiences": { "parameters": [ { "name": "id", @@ -43161,26 +42140,25 @@ } ] }, - "/v1/appStoreVersions/{id}/appClipDefaultExperience": { + "/v1/appClips/{id}/appClipAdvancedExperiences": { "get": { "tags": [ - "AppStoreVersions" + "AppClips" ], - "operationId": "appStoreVersions-appClipDefaultExperience-get_to_one_related", + "operationId": "appClips-appClipAdvancedExperiences-get_to_many_related", "parameters": [ { - "name": "fields[appClips]", + "name": "filter[action]", "in": "query", - "description": "the fields to include for returned resources of type appClips", + "description": "filter by attribute 'action'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appClipAdvancedExperiences", - "appClipDefaultExperiences", - "bundleId" + "OPEN", + "VIEW", + "PLAY" ] } }, @@ -43188,16 +42166,17 @@ "explode": false }, { - "name": "fields[appClipAppStoreReviewDetails]", + "name": "filter[placeStatus]", "in": "query", - "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", + "description": "filter by attribute 'placeStatus'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperience", - "invocationUrls" + "PENDING", + "MATCHED", + "NO_MATCH" ] } }, @@ -43205,34 +42184,17 @@ "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "filter[status]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "filter by attribute 'status'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "RECEIVED", + "DEACTIVATED", + "APP_TRANSFER_IN_PROGRESS" ] } }, @@ -43240,9 +42202,9 @@ "explode": false }, { - "name": "fields[appClipDefaultExperiences]", + "name": "fields[appClipAdvancedExperiences]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "the fields to include for returned resources of type appClipAdvancedExperiences", "schema": { "type": "array", "items": { @@ -43250,10 +42212,17 @@ "enum": [ "action", "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" + "businessCategory", + "defaultLanguage", + "headerImage", + "isPoweredBy", + "link", + "localizations", + "place", + "placeStatus", + "removed", + "status", + "version" ] } }, @@ -43261,18 +42230,18 @@ "explode": false }, { - "name": "fields[appClipDefaultExperienceLocalizations]", + "name": "fields[appClips]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "description": "the fields to include for returned resources of type appClips", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClipDefaultExperience", - "appClipHeaderImage", - "locale", - "subtitle" + "app", + "appClipAdvancedExperiences", + "appClipDefaultExperiences", + "bundleId" ] } }, @@ -43280,131 +42249,21 @@ "explode": false }, { - "name": "limit[appClipDefaultExperienceLocalizations]", - "in": "query", - "description": "maximum number of related appClipDefaultExperienceLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[appClipAdvancedExperienceImages]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "releaseWithAppStoreVersion" - ] - } - }, - "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single AppClipDefaultExperience", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppClipDefaultExperienceResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreVersions/{id}/relationships/appStoreReviewDetail": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/appStoreVersions/{id}/appStoreReviewDetail": { - "get": { - "tags": [ - "AppStoreVersions" - ], - "operationId": "appStoreVersions-appStoreReviewDetail-get_to_one_related", - "parameters": [ - { - "name": "fields[appStoreReviewDetails]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewDetails", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewAttachments", - "appStoreVersion", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" + "assetDeliveryState", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, @@ -43412,34 +42271,17 @@ "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "fields[appClipAdvancedExperienceLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "the fields to include for returned resources of type appClipAdvancedExperienceLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "language", + "subtitle", + "title" ] } }, @@ -43447,31 +42289,19 @@ "explode": false }, { - "name": "fields[appStoreReviewAttachments]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewAttachments", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewDetail", - "assetDeliveryState", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "limit[appStoreReviewAttachments]", + "name": "limit[localizations]", "in": "query", - "description": "maximum number of related appStoreReviewAttachments returned (when they are included)", + "description": "maximum number of related localizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -43487,8 +42317,9 @@ "items": { "type": "string", "enum": [ - "appStoreReviewAttachments", - "appStoreVersion" + "appClip", + "headerImage", + "localizations" ] } }, @@ -43528,11 +42359,11 @@ } }, "200": { - "description": "Single AppStoreReviewDetail", + "description": "List of AppClipAdvancedExperiences", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreReviewDetailResponse" + "$ref": "#/components/schemas/AppClipAdvancedExperiencesResponse" } } } @@ -43552,7 +42383,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/appStoreVersionExperiments": { + "/v1/appClips/{id}/relationships/appClipDefaultExperiences": { "parameters": [ { "name": "id", @@ -43566,56 +42397,36 @@ } ] }, - "/v1/appStoreVersions/{id}/appStoreVersionExperiments": { + "/v1/appClips/{id}/appClipDefaultExperiences": { "get": { "tags": [ - "AppStoreVersions" + "AppClips" ], - "operationId": "appStoreVersions-appStoreVersionExperiments-get_to_many_related", - "deprecated": true, + "operationId": "appClips-appClipDefaultExperiences-get_to_many_related", "parameters": [ { - "name": "filter[state]", + "name": "exists[releaseWithAppStoreVersion]", "in": "query", - "description": "filter by attribute 'state'", + "description": "filter by existence or non-existence of related 'releaseWithAppStoreVersion'", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REJECTED", - "COMPLETED", - "STOPPED" - ] - } + "type": "boolean" }, "style": "form", "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[appClips]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type appClips", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "app", + "appClipAdvancedExperiences", + "appClipDefaultExperiences", + "bundleId" ] } }, @@ -43623,21 +42434,16 @@ "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatments]", + "name": "fields[appClipAppStoreReviewDetails]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appIcon", - "appIconName", - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2", - "name", - "promotedDate" + "appClipDefaultExperience", + "invocationUrls" ] } }, @@ -43679,6 +42485,46 @@ "style": "form", "explode": false }, + { + "name": "fields[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipDefaultExperienceLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appClipDefaultExperience", + "appClipHeaderImage", + "locale", + "subtitle" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "limit", "in": "query", @@ -43690,9 +42536,9 @@ "style": "form" }, { - "name": "limit[appStoreVersionExperimentTreatments]", + "name": "limit[appClipDefaultExperienceLocalizations]", "in": "query", - "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "description": "maximum number of related appClipDefaultExperienceLocalizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -43708,8 +42554,10 @@ "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments" + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "releaseWithAppStoreVersion" ] } }, @@ -43749,11 +42597,11 @@ } }, "200": { - "description": "List of AppStoreVersionExperiments", + "description": "List of AppClipDefaultExperiences", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentsResponse" + "$ref": "#/components/schemas/AppClipDefaultExperiencesResponse" } } } @@ -43773,7 +42621,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2": { + "/v1/appCustomProductPageLocalizations/{id}/relationships/appPreviewSets": { "parameters": [ { "name": "id", @@ -43787,31 +42635,37 @@ } ] }, - "/v1/appStoreVersions/{id}/appStoreVersionExperimentsV2": { + "/v1/appCustomProductPageLocalizations/{id}/appPreviewSets": { "get": { "tags": [ - "AppStoreVersions" + "AppCustomProductPageLocalizations" ], - "operationId": "appStoreVersions-appStoreVersionExperimentsV2-get_to_many_related", + "operationId": "appCustomProductPageLocalizations-appPreviewSets-get_to_many_related", "parameters": [ { - "name": "filter[state]", + "name": "filter[previewType]", "in": "query", - "description": "filter by attribute 'state'", + "description": "filter by attribute 'previewType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REJECTED", - "COMPLETED", - "STOPPED" + "IPHONE_67", + "IPHONE_61", + "IPHONE_65", + "IPHONE_58", + "IPHONE_55", + "IPHONE_47", + "IPHONE_40", + "IPHONE_35", + "IPAD_PRO_3GEN_129", + "IPAD_PRO_3GEN_11", + "IPAD_PRO_129", + "IPAD_105", + "IPAD_97", + "DESKTOP", + "APPLE_TV" ] } }, @@ -43819,26 +42673,45 @@ "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "filter[appStoreVersionExperimentTreatmentLocalization]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersionLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" ] } }, @@ -43846,21 +42719,18 @@ "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatments]", + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appIcon", - "appIconName", - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2", - "name", - "promotedDate" + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" ] } }, @@ -43868,34 +42738,25 @@ "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "fields[appPreviews]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "the fields to include for returned resources of type appPreviews", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "appPreviewSet", + "assetDeliveryState", + "fileName", + "fileSize", + "mimeType", + "previewFrameTimeCode", + "previewImage", + "sourceFileChecksum", + "uploadOperations", + "uploaded", + "videoUrl" ] } }, @@ -43903,56 +42764,19 @@ "explode": false }, { - "name": "fields[apps]", + "name": "fields[appPreviewSets]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appPreviewSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" ] } }, @@ -43960,29 +42784,44 @@ "explode": false }, { - "name": "limit", + "name": "fields[appStoreVersionLocalizations]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[controlVersions]", + "name": "limit", "in": "query", - "description": "maximum number of related controlVersions returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" }, { - "name": "limit[appStoreVersionExperimentTreatments]", + "name": "limit[appPreviews]", "in": "query", - "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "description": "maximum number of related appPreviews returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -43998,10 +42837,10 @@ "items": { "type": "string", "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "latestControlVersion" + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization" ] } }, @@ -44041,11 +42880,11 @@ } }, "200": { - "description": "List of AppStoreVersionExperiments", + "description": "List of AppPreviewSets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" + "$ref": "#/components/schemas/AppPreviewSetsResponse" } } } @@ -44065,7 +42904,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/appStoreVersionLocalizations": { + "/v1/appCustomProductPageLocalizations/{id}/relationships/appScreenshotSets": { "parameters": [ { "name": "id", @@ -44079,13 +42918,169 @@ } ] }, - "/v1/appStoreVersions/{id}/appStoreVersionLocalizations": { + "/v1/appCustomProductPageLocalizations/{id}/appScreenshotSets": { "get": { "tags": [ - "AppStoreVersions" + "AppCustomProductPageLocalizations" ], - "operationId": "appStoreVersions-appStoreVersionLocalizations-get_to_many_related", + "operationId": "appCustomProductPageLocalizations-appScreenshotSets-get_to_many_related", "parameters": [ + { + "name": "filter[screenshotDisplayType]", + "in": "query", + "description": "filter by attribute 'screenshotDisplayType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "APP_IPHONE_67", + "APP_IPHONE_61", + "APP_IPHONE_65", + "APP_IPHONE_58", + "APP_IPHONE_55", + "APP_IPHONE_47", + "APP_IPHONE_40", + "APP_IPHONE_35", + "APP_IPAD_PRO_3GEN_129", + "APP_IPAD_PRO_3GEN_11", + "APP_IPAD_PRO_129", + "APP_IPAD_105", + "APP_IPAD_97", + "APP_DESKTOP", + "APP_WATCH_ULTRA", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "IMESSAGE_APP_IPHONE_67", + "IMESSAGE_APP_IPHONE_61", + "IMESSAGE_APP_IPHONE_65", + "IMESSAGE_APP_IPHONE_58", + "IMESSAGE_APP_IPHONE_55", + "IMESSAGE_APP_IPHONE_47", + "IMESSAGE_APP_IPHONE_40", + "IMESSAGE_APP_IPAD_PRO_3GEN_129", + "IMESSAGE_APP_IPAD_PRO_3GEN_11", + "IMESSAGE_APP_IPAD_PRO_129", + "IMESSAGE_APP_IPAD_105", + "IMESSAGE_APP_IPAD_97" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersionExperimentTreatmentLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersionLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appScreenshotSet", + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[appStoreVersionLocalizations]", "in": "query", @@ -44120,6 +43115,35 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[appScreenshots]", + "in": "query", + "description": "maximum number of related appScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -44154,11 +43178,11 @@ } }, "200": { - "description": "List of AppStoreVersionLocalizations", + "description": "List of AppScreenshotSets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionLocalizationsResponse" + "$ref": "#/components/schemas/AppScreenshotSetsResponse" } } } @@ -44178,7 +43202,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/appStoreVersionPhasedRelease": { + "/v1/appCustomProductPageVersions/{id}/relationships/appCustomProductPageLocalizations": { "parameters": [ { "name": "id", @@ -44192,27 +43216,147 @@ } ] }, - "/v1/appStoreVersions/{id}/appStoreVersionPhasedRelease": { + "/v1/appCustomProductPageVersions/{id}/appCustomProductPageLocalizations": { "get": { "tags": [ - "AppStoreVersions" + "AppCustomProductPageVersions" ], - "operationId": "appStoreVersions-appStoreVersionPhasedRelease-get_to_one_related", + "operationId": "appCustomProductPageVersions-appCustomProductPageLocalizations-get_to_many_related", "parameters": [ { - "name": "fields[appStoreVersionPhasedReleases]", + "name": "filter[locale]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "description": "filter by attribute 'locale'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "currentDayNumber", - "phasedReleaseState", - "startDate", - "totalPauseDuration" + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPage", + "appCustomProductPageLocalizations", + "state", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets" ] } }, @@ -44252,11 +43396,11 @@ } }, "200": { - "description": "Single AppStoreVersionPhasedRelease", + "description": "List of AppCustomProductPageLocalizations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseResponse" + "$ref": "#/components/schemas/AppCustomProductPageLocalizationsResponse" } } } @@ -44276,7 +43420,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/appStoreVersionSubmission": { + "/v1/appCustomProductPages/{id}/relationships/appCustomProductPageVersions": { "parameters": [ { "name": "id", @@ -44290,24 +43434,30 @@ } ] }, - "/v1/appStoreVersions/{id}/appStoreVersionSubmission": { + "/v1/appCustomProductPages/{id}/appCustomProductPageVersions": { "get": { "tags": [ - "AppStoreVersions" + "AppCustomProductPages" ], - "operationId": "appStoreVersions-appStoreVersionSubmission-get_to_one_related", - "deprecated": true, + "operationId": "appCustomProductPages-appCustomProductPageVersions-get_to_many_related", "parameters": [ { - "name": "fields[appStoreVersionSubmissions]", + "name": "filter[state]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionSubmissions", + "description": "filter by attribute 'state'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion" + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REPLACED_WITH_NEW_VERSION", + "REJECTED" ] } }, @@ -44315,40 +43465,86 @@ "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "fields[appCustomProductPageLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPage", + "appCustomProductPageLocalizations", + "state", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPages]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "appCustomProductPageVersions", + "appStoreVersionTemplate", + "customProductPageTemplate", + "name", + "url", + "visible" ] } }, "style": "form", "explode": false }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appCustomProductPageLocalizations]", + "in": "query", + "description": "maximum number of related appCustomProductPageLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "include", "in": "query", @@ -44358,7 +43554,8 @@ "items": { "type": "string", "enum": [ - "appStoreVersion" + "appCustomProductPage", + "appCustomProductPageLocalizations" ] } }, @@ -44398,11 +43595,11 @@ } }, "200": { - "description": "Single AppStoreVersionSubmission", + "description": "List of AppCustomProductPageVersions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionSubmissionResponse" + "$ref": "#/components/schemas/AppCustomProductPageVersionsResponse" } } } @@ -44422,73 +43619,98 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/build": { + "/v1/appEncryptionDeclarations/{id}/relationships/app": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appEncryptionDeclarations/{id}/app": { "get": { "tags": [ - "AppStoreVersions" + "AppEncryptionDeclarations" ], - "operationId": "appStoreVersions-build-get_to_one_relationship", - "parameters": [], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppStoreVersionBuildLinkageResponse" - } - } - } + "operationId": "appEncryptionDeclarations-app-get_to_one_related", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false } - } - }, - "patch": { - "tags": [ - "AppStoreVersions" ], - "operationId": "appStoreVersions-build-update_to_one_relationship", - "requestBody": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppStoreVersionBuildLinkageRequest" + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } } }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -44509,18 +43731,15 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Single App with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/AppWithoutIncludesResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, @@ -44537,46 +43756,45 @@ } ] }, - "/v1/appStoreVersions/{id}/build": { + "/v1/appEncryptionDeclarations/{id}/relationships/appEncryptionDeclarationDocument": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appEncryptionDeclarations/{id}/appEncryptionDeclarationDocument": { "get": { "tags": [ - "AppStoreVersions" + "AppEncryptionDeclarations" ], - "operationId": "appStoreVersions-build-get_to_one_related", + "operationId": "appEncryptionDeclarations-appEncryptionDeclarationDocument-get_to_one_related", "parameters": [ { - "name": "fields[builds]", + "name": "fields[appEncryptionDeclarationDocuments]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "assetDeliveryState", + "assetToken", + "downloadUrl", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, @@ -44616,11 +43834,11 @@ } }, "200": { - "description": "Single Build", + "description": "Single AppEncryptionDeclarationDocument", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildResponse" + "$ref": "#/components/schemas/AppEncryptionDeclarationDocumentResponse" } } } @@ -44640,7 +43858,60 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/customerReviews": { + "/v1/appEncryptionDeclarations/{id}/relationships/builds": { + "post": { + "tags": [ + "AppEncryptionDeclarations" + ], + "operationId": "appEncryptionDeclarations-builds-create_to_many_relationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppEncryptionDeclarationBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, "parameters": [ { "name": "id", @@ -44654,267 +43925,67 @@ } ] }, - "/v1/appStoreVersions/{id}/customerReviews": { + "/v1/appEventLocalizations/{id}/relationships/appEventScreenshots": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appEventLocalizations/{id}/appEventScreenshots": { "get": { "tags": [ - "AppStoreVersions" + "AppEventLocalizations" ], - "operationId": "appStoreVersions-customerReviews-get_to_many_related", + "operationId": "appEventLocalizations-appEventScreenshots-get_to_many_related", "parameters": [ { - "name": "filter[rating]", + "name": "fields[appEventScreenshots]", "in": "query", - "description": "filter by attribute 'rating'", + "description": "the fields to include for returned resources of type appEventScreenshots", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appEventAssetType", + "appEventLocalization", + "assetDeliveryState", + "assetToken", + "fileName", + "fileSize", + "imageAsset", + "uploadOperations", + "uploaded" + ] } }, "style": "form", "explode": false }, { - "name": "filter[territory]", + "name": "fields[appEventLocalizations]", "in": "query", - "description": "filter by attribute 'territory'", + "description": "the fields to include for returned resources of type appEventLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ABW", - "AFG", - "AGO", - "AIA", - "ALB", - "AND", - "ANT", - "ARE", - "ARG", - "ARM", - "ASM", - "ATG", - "AUS", - "AUT", - "AZE", - "BDI", - "BEL", - "BEN", - "BES", - "BFA", - "BGD", - "BGR", - "BHR", - "BHS", - "BIH", - "BLR", - "BLZ", - "BMU", - "BOL", - "BRA", - "BRB", - "BRN", - "BTN", - "BWA", - "CAF", - "CAN", - "CHE", - "CHL", - "CHN", - "CIV", - "CMR", - "COD", - "COG", - "COK", - "COL", - "COM", - "CPV", - "CRI", - "CUB", - "CUW", - "CXR", - "CYM", - "CYP", - "CZE", - "DEU", - "DJI", - "DMA", - "DNK", - "DOM", - "DZA", - "ECU", - "EGY", - "ERI", - "ESP", - "EST", - "ETH", - "FIN", - "FJI", - "FLK", - "FRA", - "FRO", - "FSM", - "GAB", - "GBR", - "GEO", - "GGY", - "GHA", - "GIB", - "GIN", - "GLP", - "GMB", - "GNB", - "GNQ", - "GRC", - "GRD", - "GRL", - "GTM", - "GUF", - "GUM", - "GUY", - "HKG", - "HND", - "HRV", - "HTI", - "HUN", - "IDN", - "IMN", - "IND", - "IRL", - "IRQ", - "ISL", - "ISR", - "ITA", - "JAM", - "JEY", - "JOR", - "JPN", - "KAZ", - "KEN", - "KGZ", - "KHM", - "KIR", - "KNA", - "KOR", - "KWT", - "LAO", - "LBN", - "LBR", - "LBY", - "LCA", - "LIE", - "LKA", - "LSO", - "LTU", - "LUX", - "LVA", - "MAC", - "MAR", - "MCO", - "MDA", - "MDG", - "MDV", - "MEX", - "MHL", - "MKD", - "MLI", - "MLT", - "MMR", - "MNE", - "MNG", - "MNP", - "MOZ", - "MRT", - "MSR", - "MTQ", - "MUS", - "MWI", - "MYS", - "MYT", - "NAM", - "NCL", - "NER", - "NFK", - "NGA", - "NIC", - "NIU", - "NLD", - "NOR", - "NPL", - "NRU", - "NZL", - "OMN", - "PAK", - "PAN", - "PER", - "PHL", - "PLW", - "PNG", - "POL", - "PRI", - "PRT", - "PRY", - "PSE", - "PYF", - "QAT", - "REU", - "ROU", - "RUS", - "RWA", - "SAU", - "SEN", - "SGP", - "SHN", - "SLB", - "SLE", - "SLV", - "SMR", - "SOM", - "SPM", - "SRB", - "SSD", - "STP", - "SUR", - "SVK", - "SVN", - "SWE", - "SWZ", - "SXM", - "SYC", - "TCA", - "TCD", - "TGO", - "THA", - "TJK", - "TKM", - "TLS", - "TON", - "TTO", - "TUN", - "TUR", - "TUV", - "TWN", - "TZA", - "UGA", - "UKR", - "UMI", - "URY", - "USA", - "UZB", - "VAT", - "VCT", - "VEN", - "VGB", - "VIR", - "VNM", - "VUT", - "WLF", - "WSM", - "YEM", - "ZAF", - "ZMB", - "ZWE" + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "locale", + "longDescription", + "name", + "shortDescription" ] } }, @@ -44922,95 +43993,25 @@ "explode": false }, { - "name": "exists[publishedResponse]", + "name": "limit", "in": "query", - "description": "filter by publishedResponse", + "description": "maximum resources per page", "schema": { - "type": "boolean" + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "sort", + "name": "include", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "createdDate", - "-createdDate", - "rating", - "-rating" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[customerReviews]", - "in": "query", - "description": "the fields to include for returned resources of type customerReviews", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "body", - "createdDate", - "rating", - "response", - "reviewerNickname", - "territory", - "title" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[customerReviewResponses]", - "in": "query", - "description": "the fields to include for returned resources of type customerReviewResponses", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "lastModifiedDate", - "responseBody", - "review", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "response" + "appEventLocalization" ] } }, @@ -45050,11 +44051,11 @@ } }, "200": { - "description": "List of CustomerReviews", + "description": "List of AppEventScreenshots", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomerReviewsResponse" + "$ref": "#/components/schemas/AppEventScreenshotsResponse" } } } @@ -45074,7 +44075,7 @@ } ] }, - "/v1/appStoreVersions/{id}/relationships/routingAppCoverage": { + "/v1/appEventLocalizations/{id}/relationships/appEventVideoClips": { "parameters": [ { "name": "id", @@ -45088,29 +44089,80 @@ } ] }, - "/v1/appStoreVersions/{id}/routingAppCoverage": { + "/v1/appEventLocalizations/{id}/appEventVideoClips": { "get": { "tags": [ - "AppStoreVersions" + "AppEventLocalizations" ], - "operationId": "appStoreVersions-routingAppCoverage-get_to_one_related", + "operationId": "appEventLocalizations-appEventVideoClips-get_to_many_related", "parameters": [ { - "name": "fields[routingAppCoverages]", + "name": "fields[appEventVideoClips]", "in": "query", - "description": "the fields to include for returned resources of type routingAppCoverages", + "description": "the fields to include for returned resources of type appEventVideoClips", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", + "appEventAssetType", + "appEventLocalization", "assetDeliveryState", "fileName", "fileSize", - "sourceFileChecksum", + "previewFrameTimeCode", + "previewImage", "uploadOperations", - "uploaded" + "uploaded", + "videoUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "locale", + "longDescription", + "name", + "shortDescription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appEventLocalization" ] } }, @@ -45150,11 +44202,11 @@ } }, "200": { - "description": "Single RoutingAppCoverage", + "description": "List of AppEventVideoClips", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/RoutingAppCoverageResponse" + "$ref": "#/components/schemas/AppEventVideoClipsResponse" } } } @@ -45174,7 +44226,7 @@ } ] }, - "/v1/apps/{id}/relationships/appAvailability": { + "/v1/appEvents/{id}/relationships/localizations": { "parameters": [ { "name": "id", @@ -45188,25 +44240,31 @@ } ] }, - "/v1/apps/{id}/appAvailability": { + "/v1/appEvents/{id}/localizations": { "get": { "tags": [ - "Apps" + "AppEvents" ], - "operationId": "apps-appAvailability-get_to_one_related", + "operationId": "appEvents-localizations-get_to_many_related", "parameters": [ { - "name": "fields[appAvailabilities]", + "name": "fields[appEventScreenshots]", "in": "query", - "description": "the fields to include for returned resources of type appAvailabilities", + "description": "the fields to include for returned resources of type appEventScreenshots", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "availableInNewTerritories", - "availableTerritories" + "appEventAssetType", + "appEventLocalization", + "assetDeliveryState", + "assetToken", + "fileName", + "fileSize", + "imageAsset", + "uploadOperations", + "uploaded" ] } }, @@ -45214,56 +44272,46 @@ "explode": false }, { - "name": "fields[apps]", + "name": "fields[appEventVideoClips]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appEventVideoClips", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", + "appEventAssetType", + "appEventLocalization", + "assetDeliveryState", + "fileName", + "fileSize", + "previewFrameTimeCode", + "previewImage", + "uploadOperations", + "uploaded", + "videoUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "locale", + "longDescription", "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "shortDescription" ] } }, @@ -45271,15 +44319,26 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[appEvents]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type appEvents", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "app", + "archivedTerritorySchedules", + "badge", + "deepLink", + "eventState", + "localizations", + "primaryLocale", + "priority", + "purchaseRequirement", + "purpose", + "referenceName", + "territorySchedules" ] } }, @@ -45287,9 +44346,29 @@ "explode": false }, { - "name": "limit[availableTerritories]", + "name": "limit", "in": "query", - "description": "maximum number of related availableTerritories returned (when they are included)", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appEventScreenshots]", + "in": "query", + "description": "maximum number of related appEventScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appEventVideoClips]", + "in": "query", + "description": "maximum number of related appEventVideoClips returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -45305,8 +44384,9 @@ "items": { "type": "string", "enum": [ - "app", - "availableTerritories" + "appEvent", + "appEventScreenshots", + "appEventVideoClips" ] } }, @@ -45346,11 +44426,11 @@ } }, "200": { - "description": "Single AppAvailability", + "description": "List of AppEventLocalizations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppAvailabilityResponse" + "$ref": "#/components/schemas/AppEventLocalizationsResponse" } } } @@ -45370,7 +44450,7 @@ } ] }, - "/v1/apps/{id}/relationships/appClips": { + "/v1/appInfos/{id}/relationships/ageRatingDeclaration": { "parameters": [ { "name": "id", @@ -45384,96 +44464,159 @@ } ] }, - "/v1/apps/{id}/appClips": { + "/v1/appInfos/{id}/ageRatingDeclaration": { "get": { "tags": [ - "Apps" + "AppInfos" ], - "operationId": "apps-appClips-get_to_many_related", + "operationId": "appInfos-ageRatingDeclaration-get_to_one_related", "parameters": [ { - "name": "filter[bundleId]", + "name": "fields[ageRatingDeclarations]", "in": "query", - "description": "filter by attribute 'bundleId'", + "description": "the fields to include for returned resources of type ageRatingDeclarations", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" + ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AgeRatingDeclaration", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AgeRatingDeclarationResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appInfos/{id}/relationships/appInfoLocalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appInfos/{id}/appInfoLocalizations": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos-appInfoLocalizations-get_to_many_related", + "parameters": [ { - "name": "fields[appClips]", + "name": "filter[locale]", "in": "query", - "description": "the fields to include for returned resources of type appClips", + "description": "filter by attribute 'locale'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "app", - "appClipAdvancedExperiences", - "appClipDefaultExperiences", - "bundleId" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[apps]", + "name": "fields[appInfos]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appInfos", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "ageRatingDeclaration", + "app", + "appInfoLocalizations", + "appStoreAgeRating", + "appStoreState", + "brazilAgeRating", + "brazilAgeRatingV2", + "kidsAgeBand", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo" ] } }, @@ -45481,20 +44624,21 @@ "explode": false }, { - "name": "fields[appClipDefaultExperiences]", + "name": "fields[appInfoLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "the fields to include for returned resources of type appInfoLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" + "appInfo", + "locale", + "name", + "privacyChoicesUrl", + "privacyPolicyText", + "privacyPolicyUrl", + "subtitle" ] } }, @@ -45511,16 +44655,6 @@ }, "style": "form" }, - { - "name": "limit[appClipDefaultExperiences]", - "in": "query", - "description": "maximum number of related appClipDefaultExperiences returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -45530,8 +44664,7 @@ "items": { "type": "string", "enum": [ - "app", - "appClipDefaultExperiences" + "appInfo" ] } }, @@ -45571,11 +44704,11 @@ } }, "200": { - "description": "List of AppClips", + "description": "List of AppInfoLocalizations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppClipsResponse" + "$ref": "#/components/schemas/AppInfoLocalizationsResponse" } } } @@ -45595,7 +44728,7 @@ } ] }, - "/v1/apps/{id}/relationships/appCustomProductPages": { + "/v1/appInfos/{id}/relationships/primaryCategory": { "parameters": [ { "name": "id", @@ -45609,118 +44742,25 @@ } ] }, - "/v1/apps/{id}/appCustomProductPages": { + "/v1/appInfos/{id}/primaryCategory": { "get": { "tags": [ - "Apps" + "AppInfos" ], - "operationId": "apps-appCustomProductPages-get_to_many_related", + "operationId": "appInfos-primaryCategory-get_to_one_related", "parameters": [ { - "name": "filter[visible]", + "name": "fields[appCategories]", "in": "query", - "description": "filter by attribute 'visible'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appCustomProductPages]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPages", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appCustomProductPageVersions", - "appStoreVersionTemplate", - "customProductPageTemplate", - "name", - "url", - "visible" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appCustomProductPageVersions]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPage", - "appCustomProductPageLocalizations", - "state", - "version" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "parent", + "platforms", + "subcategories" ] } }, @@ -45728,19 +44768,9 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appCustomProductPageVersions]", + "name": "limit[subcategories]", "in": "query", - "description": "maximum number of related appCustomProductPageVersions returned (when they are included)", + "description": "maximum number of related subcategories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -45756,8 +44786,8 @@ "items": { "type": "string", "enum": [ - "app", - "appCustomProductPageVersions" + "parent", + "subcategories" ] } }, @@ -45797,11 +44827,11 @@ } }, "200": { - "description": "List of AppCustomProductPages", + "description": "Single AppCategory", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppCustomProductPagesResponse" + "$ref": "#/components/schemas/AppCategoryResponse" } } } @@ -45821,7 +44851,7 @@ } ] }, - "/v1/apps/{id}/relationships/appEvents": { + "/v1/appInfos/{id}/relationships/primarySubcategoryOne": { "parameters": [ { "name": "id", @@ -45835,94 +44865,25 @@ } ] }, - "/v1/apps/{id}/appEvents": { + "/v1/appInfos/{id}/primarySubcategoryOne": { "get": { "tags": [ - "Apps" + "AppInfos" ], - "operationId": "apps-appEvents-get_to_many_related", + "operationId": "appInfos-primarySubcategoryOne-get_to_one_related", "parameters": [ { - "name": "filter[eventState]", - "in": "query", - "description": "filter by attribute 'eventState'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "DRAFT", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "REJECTED", - "ACCEPTED", - "APPROVED", - "PUBLISHED", - "PAST", - "ARCHIVED" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[id]", - "in": "query", - "description": "filter by id(s)", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEventLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type appEventLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appEvent", - "appEventScreenshots", - "appEventVideoClips", - "locale", - "longDescription", - "name", - "shortDescription" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appEvents]", + "name": "fields[appCategories]", "in": "query", - "description": "the fields to include for returned resources of type appEvents", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "archivedTerritorySchedules", - "badge", - "deepLink", - "eventState", - "localizations", - "primaryLocale", - "priority", - "purchaseRequirement", - "purpose", - "referenceName", - "territorySchedules" + "parent", + "platforms", + "subcategories" ] } }, @@ -45930,19 +44891,9 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[localizations]", + "name": "limit[subcategories]", "in": "query", - "description": "maximum number of related localizations returned (when they are included)", + "description": "maximum number of related subcategories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -45958,7 +44909,8 @@ "items": { "type": "string", "enum": [ - "localizations" + "parent", + "subcategories" ] } }, @@ -45998,11 +44950,11 @@ } }, "200": { - "description": "List of AppEvents", + "description": "Single AppCategory", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppEventsResponse" + "$ref": "#/components/schemas/AppCategoryResponse" } } } @@ -46022,7 +44974,7 @@ } ] }, - "/v1/apps/{id}/relationships/appInfos": { + "/v1/appInfos/{id}/relationships/primarySubcategoryTwo": { "parameters": [ { "name": "id", @@ -46036,39 +44988,25 @@ } ] }, - "/v1/apps/{id}/appInfos": { + "/v1/appInfos/{id}/primarySubcategoryTwo": { "get": { "tags": [ - "Apps" + "AppInfos" ], - "operationId": "apps-appInfos-get_to_many_related", + "operationId": "appInfos-primarySubcategoryTwo-get_to_one_related", "parameters": [ { - "name": "fields[ageRatingDeclarations]", + "name": "fields[appCategories]", "in": "query", - "description": "the fields to include for returned resources of type ageRatingDeclarations", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "alcoholTobaccoOrDrugUseOrReferences", - "contests", - "gambling", - "gamblingAndContests", - "gamblingSimulated", - "horrorOrFearThemes", - "kidsAgeBand", - "matureOrSuggestiveThemes", - "medicalOrTreatmentInformation", - "profanityOrCrudeHumor", - "seventeenPlus", - "sexualContentGraphicAndNudity", - "sexualContentOrNudity", - "unrestrictedWebAccess", - "violenceCartoonOrFantasy", - "violenceRealistic", - "violenceRealisticProlongedGraphicOrSadistic" + "parent", + "platforms", + "subcategories" ] } }, @@ -46076,56 +45014,110 @@ "explode": false }, { - "name": "fields[appInfos]", + "name": "limit[subcategories]", "in": "query", - "description": "the fields to include for returned resources of type appInfos", + "description": "maximum number of related subcategories returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appInfoLocalizations", - "appStoreAgeRating", - "appStoreState", - "brazilAgeRating", - "brazilAgeRatingV2", - "kidsAgeBand", - "primaryCategory", - "primarySubcategoryOne", - "primarySubcategoryTwo", - "secondaryCategory", - "secondarySubcategoryOne", - "secondarySubcategoryTwo" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appInfoLocalizations]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appInfoLocalizations", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appInfo", - "locale", - "name", - "privacyChoicesUrl", - "privacyPolicyText", - "privacyPolicyUrl", - "subtitle" + "parent", + "subcategories" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppCategory", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCategoryResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appInfos/{id}/relationships/secondaryCategory": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appInfos/{id}/secondaryCategory": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos-secondaryCategory-get_to_one_related", + "parameters": [ { "name": "fields[appCategories]", "in": "query", @@ -46145,76 +45137,9 @@ "explode": false }, { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[appInfoLocalizations]", + "name": "limit[subcategories]", "in": "query", - "description": "maximum number of related appInfoLocalizations returned (when they are included)", + "description": "maximum number of related subcategories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -46230,15 +45155,8 @@ "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appInfoLocalizations", - "primaryCategory", - "primarySubcategoryOne", - "primarySubcategoryTwo", - "secondaryCategory", - "secondarySubcategoryOne", - "secondarySubcategoryTwo" + "parent", + "subcategories" ] } }, @@ -46278,11 +45196,11 @@ } }, "200": { - "description": "List of AppInfos", + "description": "Single AppCategory", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppInfosResponse" + "$ref": "#/components/schemas/AppCategoryResponse" } } } @@ -46302,7 +45220,7 @@ } ] }, - "/v1/apps/{id}/relationships/appPricePoints": { + "/v1/appInfos/{id}/relationships/secondarySubcategoryOne": { "parameters": [ { "name": "id", @@ -46316,113 +45234,148 @@ } ] }, - "/v1/apps/{id}/appPricePoints": { + "/v1/appInfos/{id}/secondarySubcategoryOne": { "get": { "tags": [ - "Apps" + "AppInfos" ], - "operationId": "apps-appPricePoints-get_to_many_related", + "operationId": "appInfos-secondarySubcategoryOne-get_to_one_related", "parameters": [ { - "name": "filter[territory]", + "name": "fields[appCategories]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "parent", + "platforms", + "subcategories" + ] } }, "style": "form", "explode": false }, { - "name": "fields[appPricePoints]", + "name": "limit[subcategories]", "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", + "description": "maximum number of related subcategories returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "customerPrice", - "equalizations", - "proceeds", - "territory" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[apps]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "parent", + "subcategories" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppCategory", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppCategoryResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appInfos/{id}/relationships/secondarySubcategoryTwo": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appInfos/{id}/secondarySubcategoryTwo": { + "get": { + "tags": [ + "AppInfos" + ], + "operationId": "appInfos-secondarySubcategoryTwo-get_to_one_related", + "parameters": [ { - "name": "fields[territories]", + "name": "fields[appCategories]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type appCategories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "parent", + "platforms", + "subcategories" ] } }, @@ -46430,12 +45383,12 @@ "explode": false }, { - "name": "limit", + "name": "limit[subcategories]", "in": "query", - "description": "maximum resources per page", + "description": "maximum number of related subcategories returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 }, "style": "form" }, @@ -46448,8 +45401,8 @@ "items": { "type": "string", "enum": [ - "app", - "territory" + "parent", + "subcategories" ] } }, @@ -46489,16 +45442,11 @@ } }, "200": { - "description": "List of AppPricePoints", + "description": "Single AppCategory", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricePointsV3Response" - } - }, - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" + "$ref": "#/components/schemas/AppCategoryResponse" } } } @@ -46518,7 +45466,119 @@ } ] }, - "/v1/apps/{id}/relationships/appPriceSchedule": { + "/v1/appPreviewSets/{id}/relationships/appPreviews": { + "get": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets-appPreviews-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetAppPreviewsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppPreviewSets" + ], + "operationId": "appPreviewSets-appPreviews-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewSetAppPreviewsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, "parameters": [ { "name": "id", @@ -46532,27 +45592,33 @@ } ] }, - "/v1/apps/{id}/appPriceSchedule": { + "/v1/appPreviewSets/{id}/appPreviews": { "get": { "tags": [ - "Apps" + "AppPreviewSets" ], - "operationId": "apps-appPriceSchedule-get_to_one_related", + "operationId": "appPreviewSets-appPreviews-get_to_many_related", "parameters": [ { - "name": "fields[appPrices]", + "name": "fields[appPreviews]", "in": "query", - "description": "the fields to include for returned resources of type appPrices", + "description": "the fields to include for returned resources of type appPreviews", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPricePoint", - "endDate", - "manual", - "startDate", - "territory" + "appPreviewSet", + "assetDeliveryState", + "fileName", + "fileSize", + "mimeType", + "previewFrameTimeCode", + "previewImage", + "sourceFileChecksum", + "uploadOperations", + "uploaded", + "videoUrl" ] } }, @@ -46560,18 +45626,156 @@ "explode": false }, { - "name": "fields[appPriceSchedules]", + "name": "fields[appPreviewSets]", "in": "query", - "description": "the fields to include for returned resources of type appPriceSchedules", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSet" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AppPreviews", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPreviewsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v3/appPricePoints/{id}/relationships/equalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v3/appPricePoints/{id}/equalizations": { + "get": { + "tags": [ + "AppPricePoints" + ], + "operationId": "appPricePointsV3-equalizations-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type appPricePoints", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "automaticPrices", - "baseTerritory", - "manualPrices" + "customerPrice", + "equalizations", + "proceeds", + "territory" ] } }, @@ -46590,6 +45794,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -46609,6 +45814,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -46652,22 +45858,12 @@ "explode": false }, { - "name": "limit[manualPrices]", - "in": "query", - "description": "maximum number of related manualPrices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[automaticPrices]", + "name": "limit", "in": "query", - "description": "maximum number of related automaticPrices returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" }, @@ -46681,9 +45877,7 @@ "type": "string", "enum": [ "app", - "automaticPrices", - "baseTerritory", - "manualPrices" + "territory" ] } }, @@ -46723,11 +45917,16 @@ } }, "200": { - "description": "Single AppPriceSchedule", + "description": "List of AppPricePoints", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPriceScheduleResponse" + "$ref": "#/components/schemas/AppPricePointsV3Response" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" } } } @@ -46747,7 +45946,7 @@ } ] }, - "/v1/apps/{id}/relationships/appStoreVersionExperimentsV2": { + "/v1/appPricePoints/{id}/relationships/territory": { "parameters": [ { "name": "id", @@ -46761,172 +45960,161 @@ } ] }, - "/v1/apps/{id}/appStoreVersionExperimentsV2": { + "/v1/appPricePoints/{id}/territory": { "get": { "tags": [ - "Apps" + "AppPricePoints" ], - "operationId": "apps-appStoreVersionExperimentsV2-get_to_many_related", + "operationId": "appPricePoints-territory-get_to_one_related", + "deprecated": true, "parameters": [ { - "name": "filter[state]", + "name": "fields[territories]", "in": "query", - "description": "filter by attribute 'state'", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REJECTED", - "COMPLETED", - "STOPPED" + "currency" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appStoreVersionExperiments]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Territory", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appPriceSchedules/{id}/relationships/automaticPrices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appPriceSchedules/{id}/automaticPrices": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules-automaticPrices-get_to_many_related", + "parameters": [ + { + "name": "filter[endDate]", + "in": "query", + "description": "filter by attribute 'endDate'", + "schema": { + "type": "array", + "items": { + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[appStoreVersionExperimentTreatments]", + "name": "filter[startDate]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "description": "filter by attribute 'startDate'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "appIcon", - "appIconName", - "appStoreVersionExperiment", - "appStoreVersionExperimentTreatmentLocalizations", - "appStoreVersionExperimentV2", - "name", - "promotedDate" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "filter[territory]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "filter by id(s) of related 'territory'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[apps]", + "name": "fields[appPrices]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appPrices", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "appPricePoint", + "endDate", + "manual", + "startDate", + "territory" ] } }, @@ -46934,32 +46122,48 @@ "explode": false }, { - "name": "limit", + "name": "fields[appPricePoints]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type appPricePoints", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "customerPrice", + "equalizations", + "proceeds", + "territory" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[controlVersions]", + "name": "fields[territories]", "in": "query", - "description": "maximum number of related controlVersions returned (when they are included)", + "description": "the fields to include for returned resources of type territories", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[appStoreVersionExperimentTreatments]", + "name": "limit", "in": "query", - "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" }, @@ -46972,10 +46176,8 @@ "items": { "type": "string", "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "latestControlVersion" + "appPricePoint", + "territory" ] } }, @@ -47015,11 +46217,11 @@ } }, "200": { - "description": "List of AppStoreVersionExperiments", + "description": "List of AppPrices", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" + "$ref": "#/components/schemas/AppPricesV2Response" } } } @@ -47039,7 +46241,7 @@ } ] }, - "/v1/apps/{id}/relationships/appStoreVersions": { + "/v1/appPriceSchedules/{id}/relationships/baseTerritory": { "parameters": [ { "name": "id", @@ -47053,69 +46255,111 @@ } ] }, - "/v1/apps/{id}/appStoreVersions": { + "/v1/appPriceSchedules/{id}/baseTerritory": { "get": { "tags": [ - "Apps" + "AppPriceSchedules" ], - "operationId": "apps-appStoreVersions-get_to_many_related", + "operationId": "appPriceSchedules-baseTerritory-get_to_one_related", "parameters": [ { - "name": "filter[appStoreState]", + "name": "fields[territories]", "in": "query", - "description": "filter by attribute 'appStoreState'", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ACCEPTED", - "DEVELOPER_REMOVED_FROM_SALE", - "DEVELOPER_REJECTED", - "IN_REVIEW", - "INVALID_BINARY", - "METADATA_REJECTED", - "PENDING_APPLE_RELEASE", - "PENDING_CONTRACT", - "PENDING_DEVELOPER_RELEASE", - "PREPARE_FOR_SUBMISSION", - "PREORDER_READY_FOR_SALE", - "PROCESSING_FOR_APP_STORE", - "READY_FOR_REVIEW", - "READY_FOR_SALE", - "REJECTED", - "REMOVED_FROM_SALE", - "WAITING_FOR_EXPORT_COMPLIANCE", - "WAITING_FOR_REVIEW", - "REPLACED_WITH_NEW_VERSION" + "currency" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "filter[platform]", - "in": "query", - "description": "filter by attribute 'platform'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "IOS", - "MAC_OS", - "TV_OS" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Territory", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appPriceSchedules/{id}/relationships/manualPrices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appPriceSchedules/{id}/manualPrices": { + "get": { + "tags": [ + "AppPriceSchedules" + ], + "operationId": "appPriceSchedules-manualPrices-get_to_many_related", + "parameters": [ { - "name": "filter[versionString]", + "name": "filter[endDate]", "in": "query", - "description": "filter by attribute 'versionString'", + "description": "filter by attribute 'endDate'", "schema": { "type": "array", "items": { @@ -47126,9 +46370,9 @@ "explode": false }, { - "name": "filter[id]", + "name": "filter[startDate]", "in": "query", - "description": "filter by id(s)", + "description": "filter by attribute 'startDate'", "schema": { "type": "array", "items": { @@ -47139,50 +46383,32 @@ "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "filter[territory]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "filter by id(s) of related 'territory'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[appPrices]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type appPrices", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", + "appPricePoint", "endDate", - "name", - "reviewRequired", + "manual", "startDate", - "started", - "state", - "trafficProportion" + "territory" ] } }, @@ -47190,31 +46416,19 @@ "explode": false }, { - "name": "fields[ageRatingDeclarations]", + "name": "fields[appPricePoints]", "in": "query", - "description": "the fields to include for returned resources of type ageRatingDeclarations", + "description": "the fields to include for returned resources of type appPricePoints", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "alcoholTobaccoOrDrugUseOrReferences", - "contests", - "gambling", - "gamblingAndContests", - "gamblingSimulated", - "horrorOrFearThemes", - "kidsAgeBand", - "matureOrSuggestiveThemes", - "medicalOrTreatmentInformation", - "profanityOrCrudeHumor", - "seventeenPlus", - "sexualContentGraphicAndNudity", - "sexualContentOrNudity", - "unrestrictedWebAccess", - "violenceCartoonOrFantasy", - "violenceRealistic", - "violenceRealisticProlongedGraphicOrSadistic" + "app", + "customerPrice", + "equalizations", + "proceeds", + "territory" ] } }, @@ -47222,15 +46436,15 @@ "explode": false }, { - "name": "fields[appStoreVersionSubmissions]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionSubmissions", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion" + "currency" ] } }, @@ -47238,179 +46452,134 @@ "explode": false }, { - "name": "fields[appStoreReviewDetails]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewDetails", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewAttachments", - "appStoreVersion", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appStoreVersions]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "appPricePoint", + "territory" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[routingAppCoverages]", - "in": "query", - "description": "the fields to include for returned resources of type routingAppCoverages", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreVersion", - "assetDeliveryState", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "200": { + "description": "List of AppPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPricesV2Response" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appPriceTiers/{id}/relationships/pricePoints": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appPriceTiers/{id}/pricePoints": { + "get": { + "tags": [ + "AppPriceTiers" + ], + "operationId": "appPriceTiers-pricePoints-get_to_many_related", + "deprecated": true, + "parameters": [ { - "name": "fields[appClipDefaultExperiences]", + "name": "filter[territory]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "filter by id(s) of related 'territory'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[appStoreVersionPhasedReleases]", + "name": "fields[appPriceTiers]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "description": "the fields to include for returned resources of type appPriceTiers", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "currentDayNumber", - "phasedReleaseState", - "startDate", - "totalPauseDuration" + "pricePoints" ] } }, @@ -47418,38 +46587,18 @@ "explode": false }, { - "name": "fields[builds]", + "name": "fields[appPricePoints]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type appPricePoints", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "customerPrice", + "priceTier", + "proceeds", + "territory" ] } }, @@ -47457,24 +46606,15 @@ "explode": false }, { - "name": "fields[appStoreVersionLocalizations]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" + "currency" ] } }, @@ -47491,37 +46631,6 @@ }, "style": "form" }, - { - "name": "limit[appStoreVersionLocalizations]", - "in": "query", - "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appStoreVersionExperiments]", - "in": "query", - "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "deprecated": true - }, - { - "name": "limit[appStoreVersionExperimentsV2]", - "in": "query", - "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -47531,17 +46640,8 @@ "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "routingAppCoverage" + "priceTier", + "territory" ] } }, @@ -47581,11 +46681,11 @@ } }, "200": { - "description": "List of AppStoreVersions", + "description": "List of AppPricePoints", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionsResponse" + "$ref": "#/components/schemas/AppPricePointsResponse" } } } @@ -47605,44 +46705,13 @@ } ] }, - "/v1/apps/{id}/relationships/availableTerritories": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/apps/{id}/availableTerritories": { + "/v1/appScreenshotSets/{id}/relationships/appScreenshots": { "get": { "tags": [ - "Apps" + "AppScreenshotSets" ], - "operationId": "apps-availableTerritories-get_to_many_related", - "deprecated": true, + "operationId": "appScreenshotSets-appScreenshots-get_to_many_relationship", "parameters": [ - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "limit", "in": "query", @@ -47686,31 +46755,69 @@ } }, "200": { - "description": "List of Territories", + "description": "List of related linkages", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoriesResponse" + "$ref": "#/components/schemas/AppScreenshotSetAppScreenshotsLinkagesResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "patch": { + "tags": [ + "AppScreenshotSets" + ], + "operationId": "appScreenshotSets-appScreenshots-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppScreenshotSetAppScreenshotsLinkagesRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } } - ] - }, - "/v1/apps/{id}/relationships/betaAppLocalizations": { + }, "parameters": [ { "name": "id", @@ -47724,29 +46831,52 @@ } ] }, - "/v1/apps/{id}/betaAppLocalizations": { + "/v1/appScreenshotSets/{id}/appScreenshots": { "get": { "tags": [ - "Apps" + "AppScreenshotSets" ], - "operationId": "apps-betaAppLocalizations-get_to_many_related", + "operationId": "appScreenshotSets-appScreenshots-get_to_many_related", "parameters": [ { - "name": "fields[betaAppLocalizations]", + "name": "fields[appScreenshotSets]", "in": "query", - "description": "the fields to include for returned resources of type betaAppLocalizations", + "description": "the fields to include for returned resources of type appScreenshotSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "description", - "feedbackEmail", - "locale", - "marketingUrl", - "privacyPolicyUrl", - "tvOsPrivacyPolicy" + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appScreenshotSet", + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, @@ -47762,6 +46892,22 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appScreenshotSet" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -47796,11 +46942,11 @@ } }, "200": { - "description": "List of BetaAppLocalizations", + "description": "List of AppScreenshots", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaAppLocalizationsResponse" + "$ref": "#/components/schemas/AppScreenshotsResponse" } } } @@ -47820,7 +46966,7 @@ } ] }, - "/v1/apps/{id}/relationships/betaAppReviewDetail": { + "/v1/appStoreReviewDetails/{id}/relationships/appStoreReviewAttachments": { "parameters": [ { "name": "id", @@ -47834,23 +46980,24 @@ } ] }, - "/v1/apps/{id}/betaAppReviewDetail": { + "/v1/appStoreReviewDetails/{id}/appStoreReviewAttachments": { "get": { "tags": [ - "Apps" + "AppStoreReviewDetails" ], - "operationId": "apps-betaAppReviewDetail-get_to_one_related", + "operationId": "appStoreReviewDetails-appStoreReviewAttachments-get_to_many_related", "parameters": [ { - "name": "fields[betaAppReviewDetails]", + "name": "fields[appStoreReviewDetails]", "in": "query", - "description": "the fields to include for returned resources of type betaAppReviewDetails", + "description": "the fields to include for returned resources of type appStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", + "appStoreReviewAttachments", + "appStoreVersion", "contactEmail", "contactFirstName", "contactLastName", @@ -47864,6 +47011,54 @@ }, "style": "form", "explode": false + }, + { + "name": "fields[appStoreReviewAttachments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewAttachments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewDetail", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewDetail" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -47898,11 +47093,11 @@ } }, "200": { - "description": "Single BetaAppReviewDetail", + "description": "List of AppStoreReviewAttachments", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaAppReviewDetailResponse" + "$ref": "#/components/schemas/AppStoreReviewAttachmentsResponse" } } } @@ -47922,7 +47117,7 @@ } ] }, - "/v1/apps/{id}/relationships/betaGroups": { + "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appPreviewSets": { "parameters": [ { "name": "id", @@ -47936,36 +47131,37 @@ } ] }, - "/v1/apps/{id}/betaGroups": { + "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appPreviewSets": { "get": { "tags": [ - "Apps" + "AppStoreVersionExperimentTreatmentLocalizations" ], - "operationId": "apps-betaGroups-get_to_many_related", + "operationId": "appStoreVersionExperimentTreatmentLocalizations-appPreviewSets-get_to_many_related", "parameters": [ { - "name": "fields[betaGroups]", + "name": "filter[previewType]", "in": "query", - "description": "the fields to include for returned resources of type betaGroups", + "description": "filter by attribute 'previewType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "betaTesters", - "builds", - "createdDate", - "feedbackEnabled", - "hasAccessToAllBuilds", - "iosBuildsAvailableForAppleSiliconMac", - "isInternalGroup", - "name", - "publicLink", - "publicLinkEnabled", - "publicLinkId", - "publicLinkLimit", - "publicLinkLimitEnabled" + "IPHONE_67", + "IPHONE_61", + "IPHONE_65", + "IPHONE_58", + "IPHONE_55", + "IPHONE_47", + "IPHONE_40", + "IPHONE_35", + "IPAD_PRO_3GEN_129", + "IPAD_PRO_3GEN_11", + "IPAD_PRO_129", + "IPAD_105", + "IPAD_97", + "DESKTOP", + "APPLE_TV" ] } }, @@ -47973,7 +47169,143 @@ "explode": false }, { - "name": "limit", + "name": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersionLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPreviews]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSet", + "assetDeliveryState", + "fileName", + "fileSize", + "mimeType", + "previewFrameTimeCode", + "previewImage", + "sourceFileChecksum", + "uploadOperations", + "uploaded", + "videoUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", "in": "query", "description": "maximum resources per page", "schema": { @@ -47981,6 +47313,35 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[appPreviews]", + "in": "query", + "description": "maximum number of related appPreviews returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -48015,11 +47376,11 @@ } }, "200": { - "description": "List of BetaGroups", + "description": "List of AppPreviewSets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaGroupsResponse" + "$ref": "#/components/schemas/AppPreviewSetsResponse" } } } @@ -48039,7 +47400,7 @@ } ] }, - "/v1/apps/{id}/relationships/betaLicenseAgreement": { + "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/relationships/appScreenshotSets": { "parameters": [ { "name": "id", @@ -48053,24 +47414,227 @@ } ] }, - "/v1/apps/{id}/betaLicenseAgreement": { + "/v1/appStoreVersionExperimentTreatmentLocalizations/{id}/appScreenshotSets": { "get": { "tags": [ - "Apps" + "AppStoreVersionExperimentTreatmentLocalizations" ], - "operationId": "apps-betaLicenseAgreement-get_to_one_related", + "operationId": "appStoreVersionExperimentTreatmentLocalizations-appScreenshotSets-get_to_many_related", "parameters": [ { - "name": "fields[betaLicenseAgreements]", + "name": "filter[screenshotDisplayType]", "in": "query", - "description": "the fields to include for returned resources of type betaLicenseAgreements", + "description": "filter by attribute 'screenshotDisplayType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "agreementText", - "app" + "APP_IPHONE_67", + "APP_IPHONE_61", + "APP_IPHONE_65", + "APP_IPHONE_58", + "APP_IPHONE_55", + "APP_IPHONE_47", + "APP_IPHONE_40", + "APP_IPHONE_35", + "APP_IPAD_PRO_3GEN_129", + "APP_IPAD_PRO_3GEN_11", + "APP_IPAD_PRO_129", + "APP_IPAD_105", + "APP_IPAD_97", + "APP_DESKTOP", + "APP_WATCH_ULTRA", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "IMESSAGE_APP_IPHONE_67", + "IMESSAGE_APP_IPHONE_61", + "IMESSAGE_APP_IPHONE_65", + "IMESSAGE_APP_IPHONE_58", + "IMESSAGE_APP_IPHONE_55", + "IMESSAGE_APP_IPHONE_47", + "IMESSAGE_APP_IPHONE_40", + "IMESSAGE_APP_IPAD_PRO_3GEN_129", + "IMESSAGE_APP_IPAD_PRO_3GEN_11", + "IMESSAGE_APP_IPAD_PRO_129", + "IMESSAGE_APP_IPAD_105", + "IMESSAGE_APP_IPAD_97" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appStoreVersionLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersionLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshotSets]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshotSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type appScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appScreenshotSet", + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appScreenshots]", + "in": "query", + "description": "maximum number of related appScreenshots returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization" ] } }, @@ -48110,83 +47674,14 @@ } }, "200": { - "description": "Single BetaLicenseAgreement", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaLicenseAgreementResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/apps/{id}/relationships/betaTesters": { - "delete": { - "tags": [ - "Apps" - ], - "operationId": "apps-betaTesters-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppBetaTestersLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", + "description": "List of AppScreenshotSets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/AppScreenshotSetsResponse" } } } - }, - "202": { - "description": "Accepted for future completion" - }, - "204": { - "description": "Success (no content)" } } }, @@ -48203,7 +47698,7 @@ } ] }, - "/v1/apps/{id}/relationships/builds": { + "/v1/appStoreVersionExperimentTreatments/{id}/relationships/appStoreVersionExperimentTreatmentLocalizations": { "parameters": [ { "name": "id", @@ -48217,64 +47712,157 @@ } ] }, - "/v1/apps/{id}/builds": { + "/v1/appStoreVersionExperimentTreatments/{id}/appStoreVersionExperimentTreatmentLocalizations": { "get": { "tags": [ - "Apps" + "AppStoreVersionExperimentTreatments" ], - "operationId": "apps-builds-get_to_many_related", + "operationId": "appStoreVersionExperimentTreatments-appStoreVersionExperimentTreatmentLocalizations-get_to_many_related", "parameters": [ { - "name": "fields[builds]", + "name": "filter[locale]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "filter by attribute 'locale'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "limit", + "name": "fields[appScreenshotSets]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type appScreenshotSets", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPreviewSets]", + "in": "query", + "description": "the fields to include for returned resources of type appPreviewSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appScreenshotSets]", + "in": "query", + "description": "maximum number of related appScreenshotSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appPreviewSets]", + "in": "query", + "description": "maximum number of related appPreviewSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { "400": { "description": "Parameter error(s)", "content": { @@ -48306,11 +47894,11 @@ } }, "200": { - "description": "List of Builds", + "description": "List of AppStoreVersionExperimentTreatmentLocalizations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildsResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalizationsResponse" } } } @@ -48330,7 +47918,7 @@ } ] }, - "/v1/apps/{id}/relationships/ciProduct": { + "/v2/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { "parameters": [ { "name": "id", @@ -48344,31 +47932,35 @@ } ] }, - "/v1/apps/{id}/ciProduct": { + "/v2/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { "get": { "tags": [ - "Apps" + "AppStoreVersionExperiments" ], - "operationId": "apps-ciProduct-get_to_one_related", + "operationId": "appStoreVersionExperimentsV2-appStoreVersionExperimentTreatments-get_to_many_related", "parameters": [ { - "name": "fields[ciProducts]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "the fields to include for returned resources of type ciProducts", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "additionalRepositories", "app", - "buildRuns", - "bundleId", - "createdDate", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", "name", - "primaryRepositories", - "productType", - "workflows" + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -48376,56 +47968,21 @@ "explode": false }, { - "name": "fields[apps]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "promotedDate" ] } }, @@ -48433,23 +47990,18 @@ "explode": false }, { - "name": "fields[scmRepositories]", + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" ] } }, @@ -48457,21 +48009,144 @@ "explode": false }, { - "name": "fields[bundleIds]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type bundleIds", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of AppStoreVersionExperimentTreatments", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersionExperiments/{id}/relationships/appStoreVersionExperimentTreatments": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersionExperiments/{id}/appStoreVersionExperimentTreatments": { + "get": { + "tags": [ + "AppStoreVersionExperiments" + ], + "operationId": "appStoreVersionExperiments-appStoreVersionExperimentTreatments-get_to_many_related", + "deprecated": true, + "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "bundleIdCapabilities", - "identifier", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", "name", "platform", - "profiles", - "seedId" + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -48479,9 +48154,60 @@ "explode": false }, { - "name": "limit[primaryRepositories]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "maximum number of related primaryRepositories returned (when they are included)", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentTreatmentLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatmentLocalizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -48497,9 +48223,9 @@ "items": { "type": "string", "enum": [ - "app", - "bundleId", - "primaryRepositories" + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2" ] } }, @@ -48539,11 +48265,11 @@ } }, "200": { - "description": "Single CiProduct", + "description": "List of AppStoreVersionExperimentTreatments", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiProductResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentsResponse" } } } @@ -48563,7 +48289,7 @@ } ] }, - "/v1/apps/{id}/relationships/customerReviews": { + "/v1/appStoreVersionLocalizations/{id}/relationships/appPreviewSets": { "parameters": [ { "name": "id", @@ -48577,17 +48303,47 @@ } ] }, - "/v1/apps/{id}/customerReviews": { + "/v1/appStoreVersionLocalizations/{id}/appPreviewSets": { "get": { "tags": [ - "Apps" + "AppStoreVersionLocalizations" ], - "operationId": "apps-customerReviews-get_to_many_related", + "operationId": "appStoreVersionLocalizations-appPreviewSets-get_to_many_related", "parameters": [ { - "name": "filter[rating]", + "name": "filter[previewType]", "in": "query", - "description": "filter by attribute 'rating'", + "description": "filter by attribute 'previewType'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IPHONE_67", + "IPHONE_61", + "IPHONE_65", + "IPHONE_58", + "IPHONE_55", + "IPHONE_47", + "IPHONE_40", + "IPHONE_35", + "IPAD_PRO_3GEN_129", + "IPAD_PRO_3GEN_11", + "IPAD_PRO_129", + "IPAD_105", + "IPAD_97", + "DESKTOP", + "APPLE_TV" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", "schema": { "type": "array", "items": { @@ -48598,246 +48354,32 @@ "explode": false }, { - "name": "filter[territory]", + "name": "filter[appStoreVersionExperimentTreatmentLocalization]", "in": "query", - "description": "filter by attribute 'territory'", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ABW", - "AFG", - "AGO", - "AIA", - "ALB", - "AND", - "ANT", - "ARE", - "ARG", - "ARM", - "ASM", - "ATG", - "AUS", - "AUT", - "AZE", - "BDI", - "BEL", - "BEN", - "BES", - "BFA", - "BGD", - "BGR", - "BHR", - "BHS", - "BIH", - "BLR", - "BLZ", - "BMU", - "BOL", - "BRA", - "BRB", - "BRN", - "BTN", - "BWA", - "CAF", - "CAN", - "CHE", - "CHL", - "CHN", - "CIV", - "CMR", - "COD", - "COG", - "COK", - "COL", - "COM", - "CPV", - "CRI", - "CUB", - "CUW", - "CXR", - "CYM", - "CYP", - "CZE", - "DEU", - "DJI", - "DMA", - "DNK", - "DOM", - "DZA", - "ECU", - "EGY", - "ERI", - "ESP", - "EST", - "ETH", - "FIN", - "FJI", - "FLK", - "FRA", - "FRO", - "FSM", - "GAB", - "GBR", - "GEO", - "GGY", - "GHA", - "GIB", - "GIN", - "GLP", - "GMB", - "GNB", - "GNQ", - "GRC", - "GRD", - "GRL", - "GTM", - "GUF", - "GUM", - "GUY", - "HKG", - "HND", - "HRV", - "HTI", - "HUN", - "IDN", - "IMN", - "IND", - "IRL", - "IRQ", - "ISL", - "ISR", - "ITA", - "JAM", - "JEY", - "JOR", - "JPN", - "KAZ", - "KEN", - "KGZ", - "KHM", - "KIR", - "KNA", - "KOR", - "KWT", - "LAO", - "LBN", - "LBR", - "LBY", - "LCA", - "LIE", - "LKA", - "LSO", - "LTU", - "LUX", - "LVA", - "MAC", - "MAR", - "MCO", - "MDA", - "MDG", - "MDV", - "MEX", - "MHL", - "MKD", - "MLI", - "MLT", - "MMR", - "MNE", - "MNG", - "MNP", - "MOZ", - "MRT", - "MSR", - "MTQ", - "MUS", - "MWI", - "MYS", - "MYT", - "NAM", - "NCL", - "NER", - "NFK", - "NGA", - "NIC", - "NIU", - "NLD", - "NOR", - "NPL", - "NRU", - "NZL", - "OMN", - "PAK", - "PAN", - "PER", - "PHL", - "PLW", - "PNG", - "POL", - "PRI", - "PRT", - "PRY", - "PSE", - "PYF", - "QAT", - "REU", - "ROU", - "RUS", - "RWA", - "SAU", - "SEN", - "SGP", - "SHN", - "SLB", - "SLE", - "SLV", - "SMR", - "SOM", - "SPM", - "SRB", - "SSD", - "STP", - "SUR", - "SVK", - "SVN", - "SWE", - "SWZ", - "SXM", - "SYC", - "TCA", - "TCD", - "TGO", - "THA", - "TJK", - "TKM", - "TLS", - "TON", - "TTO", - "TUN", - "TUR", - "TUV", - "TWN", - "TZA", - "UGA", - "UKR", - "UMI", - "URY", - "USA", - "UZB", - "VAT", - "VCT", - "VEN", - "VGB", - "VIR", - "VNM", - "VUT", - "WLF", - "WSM", - "YEM", - "ZAF", - "ZMB", - "ZWE" + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" ] } }, @@ -48845,28 +48387,44 @@ "explode": false }, { - "name": "exists[publishedResponse]", + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", "in": "query", - "description": "filter by publishedResponse", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", "schema": { - "type": "boolean" + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" + ] + } }, "style": "form", "explode": false }, { - "name": "sort", + "name": "fields[appPreviews]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type appPreviews", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "createdDate", - "-createdDate", - "rating", - "-rating" + "appPreviewSet", + "assetDeliveryState", + "fileName", + "fileSize", + "mimeType", + "previewFrameTimeCode", + "previewImage", + "sourceFileChecksum", + "uploadOperations", + "uploaded", + "videoUrl" ] } }, @@ -48874,21 +48432,19 @@ "explode": false }, { - "name": "fields[customerReviews]", + "name": "fields[appPreviewSets]", "in": "query", - "description": "the fields to include for returned resources of type customerReviews", + "description": "the fields to include for returned resources of type appPreviewSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "body", - "createdDate", - "rating", - "response", - "reviewerNickname", - "territory", - "title" + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "previewType" ] } }, @@ -48896,18 +48452,24 @@ "explode": false }, { - "name": "fields[customerReviewResponses]", + "name": "fields[appStoreVersionLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type customerReviewResponses", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "lastModifiedDate", - "responseBody", - "review", - "state" + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" ] } }, @@ -48924,6 +48486,16 @@ }, "style": "form" }, + { + "name": "limit[appPreviews]", + "in": "query", + "description": "maximum number of related appPreviews returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "include", "in": "query", @@ -48933,7 +48505,10 @@ "items": { "type": "string", "enum": [ - "response" + "appCustomProductPageLocalization", + "appPreviews", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization" ] } }, @@ -48973,11 +48548,11 @@ } }, "200": { - "description": "List of CustomerReviews", + "description": "List of AppPreviewSets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomerReviewsResponse" + "$ref": "#/components/schemas/AppPreviewSetsResponse" } } } @@ -48997,7 +48572,7 @@ } ] }, - "/v1/apps/{id}/relationships/endUserLicenseAgreement": { + "/v1/appStoreVersionLocalizations/{id}/relationships/appScreenshotSets": { "parameters": [ { "name": "id", @@ -49011,164 +48586,138 @@ } ] }, - "/v1/apps/{id}/endUserLicenseAgreement": { + "/v1/appStoreVersionLocalizations/{id}/appScreenshotSets": { "get": { "tags": [ - "Apps" + "AppStoreVersionLocalizations" ], - "operationId": "apps-endUserLicenseAgreement-get_to_one_related", + "operationId": "appStoreVersionLocalizations-appScreenshotSets-get_to_many_related", "parameters": [ { - "name": "fields[endUserLicenseAgreements]", + "name": "filter[screenshotDisplayType]", "in": "query", - "description": "the fields to include for returned resources of type endUserLicenseAgreements", + "description": "filter by attribute 'screenshotDisplayType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "agreementText", - "app", - "territories" + "APP_IPHONE_67", + "APP_IPHONE_61", + "APP_IPHONE_65", + "APP_IPHONE_58", + "APP_IPHONE_55", + "APP_IPHONE_47", + "APP_IPHONE_40", + "APP_IPHONE_35", + "APP_IPAD_PRO_3GEN_129", + "APP_IPAD_PRO_3GEN_11", + "APP_IPAD_PRO_129", + "APP_IPAD_105", + "APP_IPAD_97", + "APP_DESKTOP", + "APP_WATCH_ULTRA", + "APP_WATCH_SERIES_7", + "APP_WATCH_SERIES_4", + "APP_WATCH_SERIES_3", + "APP_APPLE_TV", + "IMESSAGE_APP_IPHONE_67", + "IMESSAGE_APP_IPHONE_61", + "IMESSAGE_APP_IPHONE_65", + "IMESSAGE_APP_IPHONE_58", + "IMESSAGE_APP_IPHONE_55", + "IMESSAGE_APP_IPHONE_47", + "IMESSAGE_APP_IPHONE_40", + "IMESSAGE_APP_IPAD_PRO_3GEN_129", + "IMESSAGE_APP_IPAD_PRO_3GEN_11", + "IMESSAGE_APP_IPAD_PRO_129", + "IMESSAGE_APP_IPAD_105", + "IMESSAGE_APP_IPAD_97" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "200": { - "description": "Single EndUserLicenseAgreement", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/EndUserLicenseAgreementResponse" - } + { + "name": "filter[appCustomProductPageLocalization]", + "in": "query", + "description": "filter by id(s) of related 'appCustomProductPageLocalization'", + "schema": { + "type": "array", + "items": { + "type": "string" } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/apps/{id}/relationships/gameCenterEnabledVersions": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/apps/{id}/gameCenterEnabledVersions": { - "get": { - "tags": [ - "Apps" - ], - "operationId": "apps-gameCenterEnabledVersions-get_to_many_related", - "parameters": [ { - "name": "filter[platform]", + "name": "filter[appStoreVersionExperimentTreatmentLocalization]", "in": "query", - "description": "filter by attribute 'platform'", + "description": "filter by id(s) of related 'appStoreVersionExperimentTreatmentLocalization'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "IOS", - "MAC_OS", - "TV_OS" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "filter[versionString]", + "name": "fields[appScreenshotSets]", "in": "query", - "description": "filter by attribute 'versionString'", + "description": "the fields to include for returned resources of type appScreenshotSets", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization", + "screenshotDisplayType" + ] } }, "style": "form", "explode": false }, { - "name": "filter[id]", + "name": "fields[appCustomProductPageLocalizations]", "in": "query", - "description": "filter by id(s)", + "description": "the fields to include for returned resources of type appCustomProductPageLocalizations", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appPreviewSets", + "appScreenshotSets", + "locale", + "promotionalText" + ] } }, "style": "form", "explode": false }, { - "name": "sort", + "name": "fields[appStoreVersionExperimentTreatmentLocalizations]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatmentLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "versionString", - "-versionString" + "appPreviewSets", + "appScreenshotSets", + "appStoreVersionExperimentTreatment", + "locale" ] } }, @@ -49176,19 +48725,24 @@ "explode": false }, { - "name": "fields[gameCenterEnabledVersions]", + "name": "fields[appScreenshots]", "in": "query", - "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "description": "the fields to include for returned resources of type appScreenshots", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "compatibleVersions", - "iconAsset", - "platform", - "versionString" + "appScreenshotSet", + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, @@ -49196,56 +48750,24 @@ "explode": false }, { - "name": "fields[apps]", + "name": "fields[appStoreVersionLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" ] } }, @@ -49263,9 +48785,9 @@ "style": "form" }, { - "name": "limit[compatibleVersions]", + "name": "limit[appScreenshots]", "in": "query", - "description": "maximum number of related compatibleVersions returned (when they are included)", + "description": "maximum number of related appScreenshots returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -49281,8 +48803,10 @@ "items": { "type": "string", "enum": [ - "app", - "compatibleVersions" + "appCustomProductPageLocalization", + "appScreenshots", + "appStoreVersionExperimentTreatmentLocalization", + "appStoreVersionLocalization" ] } }, @@ -49322,11 +48846,11 @@ } }, "200": { - "description": "List of GameCenterEnabledVersions", + "description": "List of AppScreenshotSets", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GameCenterEnabledVersionsResponse" + "$ref": "#/components/schemas/AppScreenshotSetsResponse" } } } @@ -49346,7 +48870,7 @@ } ] }, - "/v1/apps/{id}/relationships/inAppPurchases": { + "/v1/appStoreVersions/{id}/relationships/ageRatingDeclaration": { "parameters": [ { "name": "id", @@ -49360,62 +48884,255 @@ } ] }, - "/v1/apps/{id}/inAppPurchases": { + "/v1/appStoreVersions/{id}/ageRatingDeclaration": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-inAppPurchases-get_to_many_related", + "operationId": "appStoreVersions-ageRatingDeclaration-get_to_one_related", "deprecated": true, "parameters": [ { - "name": "filter[inAppPurchaseType]", + "name": "fields[ageRatingDeclarations]", "in": "query", - "description": "filter by attribute 'inAppPurchaseType'", + "description": "the fields to include for returned resources of type ageRatingDeclarations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "AUTOMATICALLY_RENEWABLE_SUBSCRIPTION", - "NON_CONSUMABLE", - "CONSUMABLE", - "NON_RENEWING_SUBSCRIPTION", - "FREE_SUBSCRIPTION" + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AgeRatingDeclaration with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AgeRatingDeclarationWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/relationships/appClipDefaultExperience": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions-appClipDefaultExperience-get_to_one_relationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionAppClipDefaultExperienceLinkageResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions-appClipDefaultExperience-update_to_one_relationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionAppClipDefaultExperienceLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/appClipDefaultExperience": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions-appClipDefaultExperience-get_to_one_related", + "parameters": [ { - "name": "filter[canBeSubmitted]", + "name": "fields[appClips]", "in": "query", - "description": "filter by canBeSubmitted", + "description": "the fields to include for returned resources of type appClips", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "app", + "appClipAdvancedExperiences", + "appClipDefaultExperiences", + "bundleId" + ] } }, "style": "form", "explode": false }, { - "name": "sort", + "name": "fields[appClipAppStoreReviewDetails]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type appClipAppStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "inAppPurchaseType", - "-inAppPurchaseType", - "productId", - "-productId", - "referenceName", - "-referenceName" + "appClipDefaultExperience", + "invocationUrls" ] } }, @@ -49423,19 +49140,34 @@ "explode": false }, { - "name": "fields[inAppPurchases]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "apps", - "inAppPurchaseType", - "productId", - "referenceName", - "state" + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" ] } }, @@ -49443,56 +49175,20 @@ "explode": false }, { - "name": "fields[apps]", + "name": "fields[appClipDefaultExperiences]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" ] } }, @@ -49500,19 +49196,28 @@ "explode": false }, { - "name": "limit", + "name": "fields[appClipDefaultExperienceLocalizations]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type appClipDefaultExperienceLocalizations", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appClipDefaultExperience", + "appClipHeaderImage", + "locale", + "subtitle" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[apps]", + "name": "limit[appClipDefaultExperienceLocalizations]", "in": "query", - "description": "maximum number of related apps returned (when they are included)", + "description": "maximum number of related appClipDefaultExperienceLocalizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -49528,7 +49233,10 @@ "items": { "type": "string", "enum": [ - "apps" + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "releaseWithAppStoreVersion" ] } }, @@ -49568,11 +49276,11 @@ } }, "200": { - "description": "List of InAppPurchases", + "description": "Single AppClipDefaultExperience", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasesResponse" + "$ref": "#/components/schemas/AppClipDefaultExperienceResponse" } } } @@ -49592,7 +49300,7 @@ } ] }, - "/v1/apps/{id}/relationships/inAppPurchasesV2": { + "/v1/appStoreVersions/{id}/relationships/appStoreReviewDetail": { "parameters": [ { "name": "id", @@ -49606,25 +49314,32 @@ } ] }, - "/v1/apps/{id}/inAppPurchasesV2": { + "/v1/appStoreVersions/{id}/appStoreReviewDetail": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-inAppPurchasesV2-get_to_many_related", + "operationId": "appStoreVersions-appStoreReviewDetail-get_to_one_related", "parameters": [ { - "name": "filter[inAppPurchaseType]", + "name": "fields[appStoreReviewDetails]", "in": "query", - "description": "filter by attribute 'inAppPurchaseType'", + "description": "the fields to include for returned resources of type appStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "CONSUMABLE", - "NON_CONSUMABLE", - "NON_RENEWING_SUBSCRIPTION" + "appStoreReviewAttachments", + "appStoreVersion", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" ] } }, @@ -49632,156 +49347,186 @@ "explode": false }, { - "name": "filter[name]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "filter by attribute 'name'", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] } }, "style": "form", "explode": false }, { - "name": "filter[productId]", + "name": "fields[appStoreReviewAttachments]", "in": "query", - "description": "filter by attribute 'productId'", + "description": "the fields to include for returned resources of type appStoreReviewAttachments", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appStoreReviewDetail", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] } }, "style": "form", "explode": false }, { - "name": "filter[state]", + "name": "limit[appStoreReviewAttachments]", "in": "query", - "description": "filter by attribute 'state'", + "description": "maximum number of related appStoreReviewAttachments returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "MISSING_METADATA", - "WAITING_FOR_UPLOAD", - "PROCESSING_CONTENT", - "READY_TO_SUBMIT", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "DEVELOPER_ACTION_NEEDED", - "PENDING_BINARY_APPROVAL", - "APPROVED", - "DEVELOPER_REMOVED_FROM_SALE", - "REMOVED_FROM_SALE", - "REJECTED" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "sort", + "name": "include", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "inAppPurchaseType", - "-inAppPurchaseType", - "name", - "-name" + "appStoreReviewAttachments", + "appStoreVersion" ] } }, "style": "form", "explode": false - }, - { - "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "inAppPurchaseV2", - "sourceFileChecksum", - "uploadOperations", - "uploaded" - ] + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[inAppPurchaseAvailabilities]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "availableInNewTerritories", - "availableTerritories", - "inAppPurchase" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[promotedPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "200": { + "description": "Single AppStoreReviewDetail", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreReviewDetailResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/relationships/appStoreVersionExperiments": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/appStoreVersionExperiments": { + "get": { + "tags": [ + "AppStoreVersions" + ], + "operationId": "appStoreVersions-appStoreVersionExperiments-get_to_many_related", + "deprecated": true, + "parameters": [ { - "name": "fields[inAppPurchaseLocalizations]", + "name": "filter[state]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "description": "filter by attribute 'state'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "description", - "inAppPurchaseV2", - "locale", - "name", - "state" + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" ] } }, @@ -49789,29 +49534,23 @@ "explode": false }, { - "name": "fields[inAppPurchases]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "endDate", "name", - "productId", - "promotedPurchase", - "reviewNote", - "state" + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -49819,18 +49558,21 @@ "explode": false }, { - "name": "fields[inAppPurchasePriceSchedules]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" ] } }, @@ -49838,19 +49580,34 @@ "explode": false }, { - "name": "fields[inAppPurchaseContents]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseContents", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "fileName", - "fileSize", - "inAppPurchaseV2", - "lastModifiedDate", - "url" + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" ] } }, @@ -49868,9 +49625,9 @@ "style": "form" }, { - "name": "limit[inAppPurchaseLocalizations]", + "name": "limit[appStoreVersionExperimentTreatments]", "in": "query", - "description": "maximum number of related inAppPurchaseLocalizations returned (when they are included)", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -49886,12 +49643,8 @@ "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "content", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "promotedPurchase" + "appStoreVersion", + "appStoreVersionExperimentTreatments" ] } }, @@ -49931,11 +49684,11 @@ } }, "200": { - "description": "List of InAppPurchases", + "description": "List of AppStoreVersionExperiments", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasesV2Response" + "$ref": "#/components/schemas/AppStoreVersionExperimentsResponse" } } } @@ -49955,42 +49708,72 @@ } ] }, - "/v1/apps/{id}/perfPowerMetrics": { + "/v1/appStoreVersions/{id}/relationships/appStoreVersionExperimentsV2": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/appStoreVersionExperimentsV2": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-perfPowerMetrics-get_to_many_related", + "operationId": "appStoreVersions-appStoreVersionExperimentsV2-get_to_many_related", "parameters": [ { - "name": "filter[deviceType]", + "name": "filter[state]", "in": "query", - "description": "filter by attribute 'deviceType'", + "description": "filter by attribute 'state'", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" + ] } }, "style": "form", "explode": false }, { - "name": "filter[metricType]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "filter by attribute 'metricType'", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "DISK", - "HANG", - "BATTERY", - "LAUNCH", - "MEMORY", - "ANIMATION", - "TERMINATION" + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -49998,15 +49781,164 @@ "explode": false }, { - "name": "filter[platform]", + "name": "fields[appStoreVersionExperimentTreatments]", "in": "query", - "description": "filter by attribute 'platform'", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IOS" + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[controlVersions]", + "in": "query", + "description": "maximum number of related controlVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "latestControlVersion" ] } }, @@ -50046,11 +49978,11 @@ } }, "200": { - "description": "List of PerfPowerMetrics", + "description": "List of AppStoreVersionExperiments", "content": { - "application/vnd.apple.xcode-metrics+json": { + "application/json": { "schema": { - "$ref": "#/components/schemas/xcodeMetrics" + "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" } } } @@ -50070,7 +50002,7 @@ } ] }, - "/v1/apps/{id}/relationships/preOrder": { + "/v1/appStoreVersions/{id}/relationships/appStoreVersionLocalizations": { "parameters": [ { "name": "id", @@ -50084,30 +50016,47 @@ } ] }, - "/v1/apps/{id}/preOrder": { + "/v1/appStoreVersions/{id}/appStoreVersionLocalizations": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-preOrder-get_to_one_related", + "operationId": "appStoreVersions-appStoreVersionLocalizations-get_to_many_related", "parameters": [ { - "name": "fields[appPreOrders]", + "name": "fields[appStoreVersionLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type appPreOrders", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appReleaseDate", - "preOrderAvailableDate" + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" ] } }, "style": "form", "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" } ], "responses": { @@ -50142,11 +50091,11 @@ } }, "200": { - "description": "Single AppPreOrder", + "description": "List of AppStoreVersionLocalizations with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPreOrderResponse" + "$ref": "#/components/schemas/AppStoreVersionLocalizationsWithoutIncludesResponse" } } } @@ -50166,7 +50115,7 @@ } ] }, - "/v1/apps/{id}/relationships/preReleaseVersions": { + "/v1/appStoreVersions/{id}/relationships/appStoreVersionPhasedRelease": { "parameters": [ { "name": "id", @@ -50180,41 +50129,32 @@ } ] }, - "/v1/apps/{id}/preReleaseVersions": { + "/v1/appStoreVersions/{id}/appStoreVersionPhasedRelease": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-preReleaseVersions-get_to_many_related", + "operationId": "appStoreVersions-appStoreVersionPhasedRelease-get_to_one_related", "parameters": [ { - "name": "fields[preReleaseVersions]", + "name": "fields[appStoreVersionPhasedReleases]", "in": "query", - "description": "the fields to include for returned resources of type preReleaseVersions", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "builds", - "platform", - "version" + "appStoreVersion", + "currentDayNumber", + "phasedReleaseState", + "startDate", + "totalPauseDuration" ] } }, "style": "form", "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" } ], "responses": { @@ -50249,11 +50189,11 @@ } }, "200": { - "description": "List of PreReleaseVersions", + "description": "Single AppStoreVersionPhasedRelease with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PreReleaseVersionsResponse" + "$ref": "#/components/schemas/AppStoreVersionPhasedReleaseWithoutIncludesResponse" } } } @@ -50273,7 +50213,7 @@ } ] }, - "/v1/apps/{id}/relationships/pricePoints": { + "/v1/appStoreVersions/{id}/relationships/appStoreVersionSubmission": { "parameters": [ { "name": "id", @@ -50287,51 +50227,24 @@ } ] }, - "/v1/apps/{id}/pricePoints": { + "/v1/appStoreVersions/{id}/appStoreVersionSubmission": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-pricePoints-get_to_many_related", + "operationId": "appStoreVersions-appStoreVersionSubmission-get_to_one_related", "deprecated": true, "parameters": [ { - "name": "filter[priceTier]", - "in": "query", - "description": "filter by id(s) of related 'priceTier'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false, - "deprecated": true - }, - { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appPriceTiers]", + "name": "fields[appStoreVersionSubmissions]", "in": "query", - "description": "the fields to include for returned resources of type appPriceTiers", + "description": "the fields to include for returned resources of type appStoreVersionSubmissions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "pricePoints" + "appStoreVersion" ] } }, @@ -50339,108 +50252,40 @@ "explode": false }, { - "name": "fields[appPricePoints]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "the fields to include for returned resources of type appPricePoints", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "ageRatingDeclaration", "app", - "customerPrice", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" ] } }, "style": "form", "explode": false }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -50450,9 +50295,7 @@ "items": { "type": "string", "enum": [ - "app", - "priceTier", - "territory" + "appStoreVersion" ] } }, @@ -50492,11 +50335,11 @@ } }, "200": { - "description": "List of AppPricePoints", + "description": "Single AppStoreVersionSubmission", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricePointsV2Response" + "$ref": "#/components/schemas/AppStoreVersionSubmissionResponse" } } } @@ -50516,146 +50359,13 @@ } ] }, - "/v1/apps/{id}/relationships/prices": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/apps/{id}/prices": { + "/v1/appStoreVersions/{id}/relationships/build": { "get": { "tags": [ - "Apps" - ], - "operationId": "apps-prices-get_to_many_related", - "deprecated": true, - "parameters": [ - { - "name": "fields[appPriceTiers]", - "in": "query", - "description": "the fields to include for returned resources of type appPriceTiers", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "pricePoints" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appPrices]", - "in": "query", - "description": "the fields to include for returned resources of type appPrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "priceTier" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "priceTier" - ] - } - }, - "style": "form", - "explode": false - } + "AppStoreVersions" ], + "operationId": "appStoreVersions-build-get_to_one_relationship", + "parameters": [], "responses": { "400": { "description": "Parameter error(s)", @@ -50688,59 +50398,34 @@ } }, "200": { - "description": "List of AppPrices", + "description": "Related linkage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPricesResponse" + "$ref": "#/components/schemas/AppStoreVersionBuildLinkageResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/apps/{id}/relationships/promotedPurchases": { - "get": { + "patch": { "tags": [ - "Apps" - ], - "operationId": "apps-promotedPurchases-get_to_many_relationship", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } + "AppStoreVersions" ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "operationId": "appStoreVersions-build-update_to_one_relationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionBuildLinkageRequest" } } }, + "required": true + }, + "responses": { "403": { "description": "Forbidden error", "content": { @@ -50761,35 +50446,92 @@ } } }, - "200": { - "description": "List of related linkages", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppPromotedPurchasesLinkagesResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, - "patch": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/build": { + "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-promotedPurchases-replace_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppPromotedPurchasesLinkagesRequest" + "operationId": "appStoreVersions-build-get_to_one_related", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } } }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -50810,18 +50552,15 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Single Build with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, @@ -50838,93 +50577,310 @@ } ] }, - "/v1/apps/{id}/promotedPurchases": { + "/v1/appStoreVersions/{id}/relationships/customerReviews": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/appStoreVersions/{id}/customerReviews": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-promotedPurchases-get_to_many_related", + "operationId": "appStoreVersions-customerReviews-get_to_many_related", "parameters": [ { - "name": "fields[promotedPurchases]", + "name": "filter[rating]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", + "description": "filter by attribute 'rating'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[subscriptions]", + "name": "filter[territory]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "filter by attribute 'territory'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" - ] + "ABW", + "AFG", + "AGO", + "AIA", + "ALB", + "AND", + "ANT", + "ARE", + "ARG", + "ARM", + "ASM", + "ATG", + "AUS", + "AUT", + "AZE", + "BDI", + "BEL", + "BEN", + "BES", + "BFA", + "BGD", + "BGR", + "BHR", + "BHS", + "BIH", + "BLR", + "BLZ", + "BMU", + "BOL", + "BRA", + "BRB", + "BRN", + "BTN", + "BWA", + "CAF", + "CAN", + "CHE", + "CHL", + "CHN", + "CIV", + "CMR", + "COD", + "COG", + "COK", + "COL", + "COM", + "CPV", + "CRI", + "CUB", + "CUW", + "CXR", + "CYM", + "CYP", + "CZE", + "DEU", + "DJI", + "DMA", + "DNK", + "DOM", + "DZA", + "ECU", + "EGY", + "ERI", + "ESP", + "EST", + "ETH", + "FIN", + "FJI", + "FLK", + "FRA", + "FRO", + "FSM", + "GAB", + "GBR", + "GEO", + "GGY", + "GHA", + "GIB", + "GIN", + "GLP", + "GMB", + "GNB", + "GNQ", + "GRC", + "GRD", + "GRL", + "GTM", + "GUF", + "GUM", + "GUY", + "HKG", + "HND", + "HRV", + "HTI", + "HUN", + "IDN", + "IMN", + "IND", + "IRL", + "IRQ", + "ISL", + "ISR", + "ITA", + "JAM", + "JEY", + "JOR", + "JPN", + "KAZ", + "KEN", + "KGZ", + "KHM", + "KIR", + "KNA", + "KOR", + "KWT", + "LAO", + "LBN", + "LBR", + "LBY", + "LCA", + "LIE", + "LKA", + "LSO", + "LTU", + "LUX", + "LVA", + "MAC", + "MAR", + "MCO", + "MDA", + "MDG", + "MDV", + "MEX", + "MHL", + "MKD", + "MLI", + "MLT", + "MMR", + "MNE", + "MNG", + "MNP", + "MOZ", + "MRT", + "MSR", + "MTQ", + "MUS", + "MWI", + "MYS", + "MYT", + "NAM", + "NCL", + "NER", + "NFK", + "NGA", + "NIC", + "NIU", + "NLD", + "NOR", + "NPL", + "NRU", + "NZL", + "OMN", + "PAK", + "PAN", + "PER", + "PHL", + "PLW", + "PNG", + "POL", + "PRI", + "PRT", + "PRY", + "PSE", + "PYF", + "QAT", + "REU", + "ROU", + "RUS", + "RWA", + "SAU", + "SEN", + "SGP", + "SHN", + "SLB", + "SLE", + "SLV", + "SMR", + "SOM", + "SPM", + "SRB", + "SSD", + "STP", + "SUR", + "SVK", + "SVN", + "SWE", + "SWZ", + "SXM", + "SYC", + "TCA", + "TCD", + "TGO", + "THA", + "TJK", + "TKM", + "TLS", + "TON", + "TTO", + "TUN", + "TUR", + "TUV", + "TWN", + "TZA", + "UGA", + "UKR", + "UMI", + "URY", + "USA", + "UZB", + "VAT", + "VCT", + "VEN", + "VGB", + "VIR", + "VNM", + "VUT", + "WLF", + "WSM", + "YEM", + "ZAF", + "ZMB", + "ZWE" + ] } }, "style": "form", "explode": false }, { - "name": "fields[inAppPurchases]", + "name": "exists[publishedResponse]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "filter by publishedResponse", + "schema": { + "type": "boolean" + }, + "style": "form", + "explode": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" + "createdDate", + "-createdDate", + "rating", + "-rating" ] } }, @@ -50932,24 +50888,21 @@ "explode": false }, { - "name": "fields[promotedPurchaseImages]", + "name": "fields[customerReviews]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchaseImages", + "description": "the fields to include for returned resources of type customerReviews", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "promotedPurchase", - "sourceFileChecksum", - "state", - "uploadOperations", - "uploaded" + "body", + "createdDate", + "rating", + "response", + "reviewerNickname", + "territory", + "title" ] } }, @@ -50957,22 +50910,31 @@ "explode": false }, { - "name": "limit", + "name": "fields[customerReviewResponses]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type customerReviewResponses", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastModifiedDate", + "responseBody", + "review", + "state" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[promotionImages]", + "name": "limit", "in": "query", - "description": "maximum number of related promotionImages returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" }, @@ -50985,9 +50947,7 @@ "items": { "type": "string", "enum": [ - "inAppPurchaseV2", - "promotionImages", - "subscription" + "response" ] } }, @@ -51027,11 +50987,11 @@ } }, "200": { - "description": "List of PromotedPurchases", + "description": "List of CustomerReviews", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchasesResponse" + "$ref": "#/components/schemas/CustomerReviewsResponse" } } } @@ -51051,7 +51011,7 @@ } ] }, - "/v1/apps/{id}/relationships/reviewSubmissions": { + "/v1/appStoreVersions/{id}/relationships/routingAppCoverage": { "parameters": [ { "name": "id", @@ -51065,126 +51025,125 @@ } ] }, - "/v1/apps/{id}/reviewSubmissions": { + "/v1/appStoreVersions/{id}/routingAppCoverage": { "get": { "tags": [ - "Apps" + "AppStoreVersions" ], - "operationId": "apps-reviewSubmissions-get_to_many_related", + "operationId": "appStoreVersions-routingAppCoverage-get_to_one_related", "parameters": [ { - "name": "filter[platform]", + "name": "fields[routingAppCoverages]", "in": "query", - "description": "filter by attribute 'platform'", + "description": "the fields to include for returned resources of type routingAppCoverages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IOS", - "MAC_OS", - "TV_OS" + "appStoreVersion", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "filter[state]", - "in": "query", - "description": "filter by attribute 'state'", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "UNRESOLVED_ISSUES", - "CANCELING", - "COMPLETING", - "COMPLETE" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[reviewSubmissionItems]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissionItems", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appEvent", - "appStoreVersion", - "appStoreVersionExperiment", - "appStoreVersionExperimentV2", - "removed", - "resolved", - "reviewSubmission", - "state" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[actors]", - "in": "query", - "description": "the fields to include for returned resources of type actors", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actorType", - "apiKeyId", - "userEmail", - "userFirstName", - "userLastName" - ] + "200": { + "description": "Single RoutingAppCoverage with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/RoutingAppCoverageWithoutIncludesResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/relationships/appAvailability": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/appAvailability": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps-appAvailability-get_to_one_related", + "parameters": [ { - "name": "fields[appStoreVersions]", + "name": "fields[appAvailabilities]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "the fields to include for returned resources of type appAvailabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "availableInNewTerritories", + "availableTerritories" ] } }, @@ -51203,6 +51162,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -51222,6 +51182,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -51249,24 +51210,15 @@ "explode": false }, { - "name": "fields[reviewSubmissions]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissions", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreVersionForReview", - "canceled", - "items", - "lastUpdatedByActor", - "platform", - "state", - "submitted", - "submittedByActor", - "submittedDate" + "currency" ] } }, @@ -51274,19 +51226,9 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[items]", + "name": "limit[availableTerritories]", "in": "query", - "description": "maximum number of related items returned (when they are included)", + "description": "maximum number of related availableTerritories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -51303,10 +51245,7 @@ "type": "string", "enum": [ "app", - "appStoreVersionForReview", - "items", - "lastUpdatedByActor", - "submittedByActor" + "availableTerritories" ] } }, @@ -51346,11 +51285,11 @@ } }, "200": { - "description": "List of ReviewSubmissions", + "description": "Single AppAvailability", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionsResponse" + "$ref": "#/components/schemas/AppAvailabilityResponse" } } } @@ -51370,7 +51309,7 @@ } ] }, - "/v1/apps/{id}/relationships/subscriptionGracePeriod": { + "/v1/apps/{id}/relationships/appClips": { "parameters": [ { "name": "id", @@ -51384,26 +51323,156 @@ } ] }, - "/v1/apps/{id}/subscriptionGracePeriod": { + "/v1/apps/{id}/appClips": { "get": { "tags": [ "Apps" ], - "operationId": "apps-subscriptionGracePeriod-get_to_one_related", + "operationId": "apps-appClips-get_to_many_related", "parameters": [ { - "name": "fields[subscriptionGracePeriods]", + "name": "filter[bundleId]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "description": "filter by attribute 'bundleId'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClips]", + "in": "query", + "description": "the fields to include for returned resources of type appClips", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "duration", - "optIn", - "renewalType", - "sandboxOptIn" + "app", + "appClipAdvancedExperiences", + "appClipDefaultExperiences", + "bundleId" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[appClipDefaultExperiences]", + "in": "query", + "description": "maximum number of related appClipDefaultExperiences returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appClipDefaultExperiences" ] } }, @@ -51443,11 +51512,11 @@ } }, "200": { - "description": "Single SubscriptionGracePeriod", + "description": "List of AppClips", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + "$ref": "#/components/schemas/AppClipsResponse" } } } @@ -51467,7 +51536,7 @@ } ] }, - "/v1/apps/{id}/relationships/subscriptionGroups": { + "/v1/apps/{id}/relationships/appCustomProductPages": { "parameters": [ { "name": "id", @@ -51481,17 +51550,17 @@ } ] }, - "/v1/apps/{id}/subscriptionGroups": { + "/v1/apps/{id}/appCustomProductPages": { "get": { "tags": [ "Apps" ], - "operationId": "apps-subscriptionGroups-get_to_many_related", + "operationId": "apps-appCustomProductPages-get_to_many_related", "parameters": [ { - "name": "filter[referenceName]", + "name": "filter[visible]", "in": "query", - "description": "filter by attribute 'referenceName'", + "description": "filter by attribute 'visible'", "schema": { "type": "array", "items": { @@ -51502,24 +51571,21 @@ "explode": false }, { - "name": "filter[subscriptions.state]", + "name": "fields[appCustomProductPages]", "in": "query", - "description": "filter by attribute 'subscriptions.state'", + "description": "the fields to include for returned resources of type appCustomProductPages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "MISSING_METADATA", - "READY_TO_SUBMIT", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "DEVELOPER_ACTION_NEEDED", - "PENDING_BINARY_APPROVAL", - "APPROVED", - "DEVELOPER_REMOVED_FROM_SALE", - "REMOVED_FROM_SALE", - "REJECTED" + "app", + "appCustomProductPageVersions", + "appStoreVersionTemplate", + "customProductPageTemplate", + "name", + "url", + "visible" ] } }, @@ -51527,16 +51593,18 @@ "explode": false }, { - "name": "sort", + "name": "fields[appCustomProductPageVersions]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "referenceName", - "-referenceName" + "appCustomProductPage", + "appCustomProductPageLocalizations", + "state", + "version" ] } }, @@ -51544,71 +51612,58 @@ "explode": false }, { - "name": "fields[subscriptions]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", "name", - "offerCodes", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", "pricePoints", "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionGroups]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroups", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "referenceName", - "subscriptionGroupLocalizations", - "subscriptions" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionGroupLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customAppName", - "locale", - "name", - "state", - "subscriptionGroup" + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -51626,19 +51681,9 @@ "style": "form" }, { - "name": "limit[subscriptions]", - "in": "query", - "description": "maximum number of related subscriptions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[subscriptionGroupLocalizations]", + "name": "limit[appCustomProductPageVersions]", "in": "query", - "description": "maximum number of related subscriptionGroupLocalizations returned (when they are included)", + "description": "maximum number of related appCustomProductPageVersions returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -51654,8 +51699,8 @@ "items": { "type": "string", "enum": [ - "subscriptionGroupLocalizations", - "subscriptions" + "app", + "appCustomProductPageVersions" ] } }, @@ -51695,11 +51740,11 @@ } }, "200": { - "description": "List of SubscriptionGroups", + "description": "List of AppCustomProductPages", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupsResponse" + "$ref": "#/components/schemas/AppCustomProductPagesResponse" } } } @@ -51719,7 +51764,7 @@ } ] }, - "/v1/betaAppLocalizations/{id}/relationships/app": { + "/v1/apps/{id}/relationships/appEncryptionDeclarations": { "parameters": [ { "name": "id", @@ -51733,13 +51778,76 @@ } ] }, - "/v1/betaAppLocalizations/{id}/app": { + "/v1/apps/{id}/appEncryptionDeclarations": { "get": { "tags": [ - "BetaAppLocalizations" + "Apps" ], - "operationId": "betaAppLocalizations-app-get_to_one_related", + "operationId": "apps-appEncryptionDeclarations-get_to_many_related", "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[builds]", + "in": "query", + "description": "filter by id(s) of related 'builds'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appDescription", + "appEncryptionDeclarationDocument", + "appEncryptionDeclarationState", + "availableOnFrenchStore", + "builds", + "codeValue", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "createdDate", + "documentName", + "documentType", + "documentUrl", + "exempt", + "platform", + "uploadedDate", + "usesEncryption" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[apps]", "in": "query", @@ -51752,6 +51860,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -51771,6 +51880,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -51796,6 +51906,107 @@ }, "style": "form", "explode": false + }, + { + "name": "fields[appEncryptionDeclarationDocuments]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarationDocuments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appEncryptionDeclaration", + "assetDeliveryState", + "assetToken", + "downloadUrl", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclarationDocument", + "builds" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -51830,11 +52041,11 @@ } }, "200": { - "description": "Single App", + "description": "List of AppEncryptionDeclarations", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/AppEncryptionDeclarationsResponse" } } } @@ -51854,7 +52065,7 @@ } ] }, - "/v1/betaAppReviewDetails/{id}/relationships/app": { + "/v1/apps/{id}/relationships/appEvents": { "parameters": [ { "name": "id", @@ -51868,64 +52079,130 @@ } ] }, - "/v1/betaAppReviewDetails/{id}/app": { + "/v1/apps/{id}/appEvents": { "get": { "tags": [ - "BetaAppReviewDetails" + "Apps" ], - "operationId": "betaAppReviewDetails-app-get_to_one_related", + "operationId": "apps-appEvents-get_to_many_related", "parameters": [ { - "name": "fields[apps]", + "name": "filter[eventState]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "filter by attribute 'eventState'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", + "DRAFT", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "ACCEPTED", + "APPROVED", + "PUBLISHED", + "PAST", + "ARCHIVED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEventLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appEventLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appEvent", + "appEventScreenshots", + "appEventVideoClips", + "locale", + "longDescription", "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", + "shortDescription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "archivedTerritorySchedules", + "badge", + "deepLink", + "eventState", + "localizations", "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "priority", + "purchaseRequirement", + "purpose", + "referenceName", + "territorySchedules" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "localizations" ] } }, @@ -51965,11 +52242,11 @@ } }, "200": { - "description": "Single App", + "description": "List of AppEvents", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/AppEventsResponse" } } } @@ -51989,7 +52266,7 @@ } ] }, - "/v1/betaAppReviewSubmissions/{id}/relationships/build": { + "/v1/apps/{id}/relationships/appInfos": { "parameters": [ { "name": "id", @@ -52003,163 +52280,211 @@ } ] }, - "/v1/betaAppReviewSubmissions/{id}/build": { + "/v1/apps/{id}/appInfos": { "get": { "tags": [ - "BetaAppReviewSubmissions" + "Apps" ], - "operationId": "betaAppReviewSubmissions-build-get_to_one_related", + "operationId": "apps-appInfos-get_to_many_related", "parameters": [ { - "name": "fields[builds]", + "name": "fields[ageRatingDeclarations]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type ageRatingDeclarations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + }, + { + "name": "fields[appInfos]", + "in": "query", + "description": "the fields to include for returned resources of type appInfos", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appInfoLocalizations", + "appStoreAgeRating", + "appStoreState", + "brazilAgeRating", + "brazilAgeRatingV2", + "kidsAgeBand", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo" + ] } - } + }, + "style": "form", + "explode": false }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[appInfoLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appInfoLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appInfo", + "locale", + "name", + "privacyChoicesUrl", + "privacyPolicyText", + "privacyPolicyUrl", + "subtitle" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[appCategories]", + "in": "query", + "description": "the fields to include for returned resources of type appCategories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "parent", + "platforms", + "subcategories" + ] } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "Single Build", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildResponse" - } + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/betaBuildLocalizations/{id}/relationships/build": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/betaBuildLocalizations/{id}/build": { - "get": { - "tags": [ - "BetaBuildLocalizations" - ], - "operationId": "betaBuildLocalizations-build-get_to_one_related", - "parameters": [ { - "name": "fields[builds]", + "name": "limit[appInfoLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "maximum number of related appInfoLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "ageRatingDeclaration", "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "appInfoLocalizations", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo" ] } }, @@ -52199,11 +52524,11 @@ } }, "200": { - "description": "Single Build", + "description": "List of AppInfos", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildResponse" + "$ref": "#/components/schemas/AppInfosResponse" } } } @@ -52223,7 +52548,7 @@ } ] }, - "/v1/betaGroups/{id}/relationships/app": { + "/v1/apps/{id}/relationships/appPricePoints": { "parameters": [ { "name": "id", @@ -52237,13 +52562,46 @@ } ] }, - "/v1/betaGroups/{id}/app": { + "/v1/apps/{id}/appPricePoints": { "get": { "tags": [ - "BetaGroups" + "Apps" ], - "operationId": "betaGroups-app-get_to_one_related", + "operationId": "apps-appPricePoints-get_to_many_related", "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type appPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "customerPrice", + "equalizations", + "proceeds", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[apps]", "in": "query", @@ -52256,6 +52614,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -52275,6 +52634,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -52300,71 +52660,23 @@ }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single App", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppResponse" - } + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/betaGroups/{id}/relationships/betaTesters": { - "get": { - "tags": [ - "BetaGroups" - ], - "operationId": "betaGroups-betaTesters-get_to_many_relationship", - "parameters": [ { "name": "limit", "in": "query", @@ -52374,6 +52686,23 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "territory" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -52408,121 +52737,36 @@ } }, "200": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesResponse" - } - } - } - } - } - }, - "post": { - "tags": [ - "BetaGroups" - ], - "operationId": "betaGroups-betaTesters-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", + "description": "List of AppPricePoints", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/AppPricePointsV3Response" } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { + }, + "text/csv": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/csv" } } } - }, - "204": { - "description": "Success (no content)" } } }, - "delete": { - "tags": [ - "BetaGroups" - ], - "operationId": "betaGroups-betaTesters-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesRequest" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } } - }, + ] + }, + "/v1/apps/{id}/relationships/appPriceSchedule": { "parameters": [ { "name": "id", @@ -52536,29 +52780,105 @@ } ] }, - "/v1/betaGroups/{id}/betaTesters": { + "/v1/apps/{id}/appPriceSchedule": { "get": { "tags": [ - "BetaGroups" + "Apps" ], - "operationId": "betaGroups-betaTesters-get_to_many_related", + "operationId": "apps-appPriceSchedule-get_to_one_related", "parameters": [ { - "name": "fields[betaTesters]", + "name": "fields[appPrices]", "in": "query", - "description": "the fields to include for returned resources of type betaTesters", + "description": "the fields to include for returned resources of type appPrices", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "apps", + "appPricePoint", + "endDate", + "manual", + "startDate", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type appPriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "automaticPrices", + "baseTerritory", + "manualPrices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", "betaGroups", + "betaLicenseAgreement", + "betaTesters", "builds", - "email", - "firstName", - "inviteType", - "lastName" + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -52566,14 +52886,59 @@ "explode": false }, { - "name": "limit", + "name": "fields[territories]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[manualPrices]", + "in": "query", + "description": "maximum number of related manualPrices returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[automaticPrices]", + "in": "query", + "description": "maximum number of related automaticPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "automaticPrices", + "baseTerritory", + "manualPrices" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -52608,11 +52973,11 @@ } }, "200": { - "description": "List of BetaTesters", + "description": "Single AppPriceSchedule", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaTestersResponse" + "$ref": "#/components/schemas/AppPriceScheduleResponse" } } } @@ -52632,224 +52997,188 @@ } ] }, - "/v1/betaGroups/{id}/relationships/builds": { + "/v1/apps/{id}/relationships/appStoreVersionExperimentsV2": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/appStoreVersionExperimentsV2": { "get": { "tags": [ - "BetaGroups" + "Apps" ], - "operationId": "betaGroups-builds-get_to_many_relationship", + "operationId": "apps-appStoreVersionExperimentsV2-get_to_many_related", "parameters": [ { - "name": "limit", + "name": "filter[state]", "in": "query", - "description": "maximum resources per page", + "description": "filter by attribute 'state'", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "type": "array", + "items": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" + ] } - } + }, + "style": "form", + "explode": false }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperimentTreatments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appIcon", + "appIconName", + "appStoreVersionExperiment", + "appStoreVersionExperimentTreatmentLocalizations", + "appStoreVersionExperimentV2", + "name", + "promotedDate" + ] } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaGroupBuildsLinkagesResponse" - } + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] } - } - } - } - }, - "post": { - "tags": [ - "BetaGroups" - ], - "operationId": "betaGroups-builds-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaGroupBuildsLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "delete": { - "tags": [ - "BetaGroups" - ], - "operationId": "betaGroups-builds-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaGroupBuildsLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/betaGroups/{id}/builds": { - "get": { - "tags": [ - "BetaGroups" - ], - "operationId": "betaGroups-builds-get_to_many_related", - "parameters": [ { - "name": "fields[builds]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -52865,6 +53194,45 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[controlVersions]", + "in": "query", + "description": "maximum number of related controlVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentTreatments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentTreatments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "latestControlVersion" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -52899,11 +53267,11 @@ } }, "200": { - "description": "List of Builds", + "description": "List of AppStoreVersionExperiments", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildsResponse" + "$ref": "#/components/schemas/AppStoreVersionExperimentsV2Response" } } } @@ -52923,7 +53291,7 @@ } ] }, - "/v1/betaLicenseAgreements/{id}/relationships/app": { + "/v1/apps/{id}/relationships/appStoreVersions": { "parameters": [ { "name": "id", @@ -52937,13 +53305,227 @@ } ] }, - "/v1/betaLicenseAgreements/{id}/app": { + "/v1/apps/{id}/appStoreVersions": { "get": { "tags": [ - "BetaLicenseAgreements" + "Apps" ], - "operationId": "betaLicenseAgreements-app-get_to_one_related", + "operationId": "apps-appStoreVersions-get_to_many_related", "parameters": [ + { + "name": "filter[appStoreState]", + "in": "query", + "description": "filter by attribute 'appStoreState'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ACCEPTED", + "DEVELOPER_REMOVED_FROM_SALE", + "DEVELOPER_REJECTED", + "IN_REVIEW", + "INVALID_BINARY", + "METADATA_REJECTED", + "PENDING_APPLE_RELEASE", + "PENDING_CONTRACT", + "PENDING_DEVELOPER_RELEASE", + "PREPARE_FOR_SUBMISSION", + "PREORDER_READY_FOR_SALE", + "PROCESSING_FOR_APP_STORE", + "READY_FOR_REVIEW", + "READY_FOR_SALE", + "REJECTED", + "REMOVED_FROM_SALE", + "WAITING_FOR_EXPORT_COMPLIANCE", + "WAITING_FOR_REVIEW", + "REPLACED_WITH_NEW_VERSION" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[versionString]", + "in": "query", + "description": "filter by attribute 'versionString'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[ageRatingDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type ageRatingDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewAttachments", + "appStoreVersion", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "fields[apps]", "in": "query", @@ -52956,6 +53538,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -52975,6 +53558,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -53000,71 +53584,134 @@ }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[routingAppCoverages]", + "in": "query", + "description": "the fields to include for returned resources of type routingAppCoverages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" + ] } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "Single App", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppResponse" - } + { + "name": "fields[appStoreVersionPhasedReleases]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "currentDayNumber", + "phasedReleaseState", + "startDate", + "totalPauseDuration" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/betaTesters/{id}/relationships/apps": { - "get": { - "tags": [ - "BetaTesters" - ], - "operationId": "betaTesters-apps-get_to_many_relationship", - "parameters": [ { "name": "limit", "in": "query", @@ -53074,6 +53721,63 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[appStoreVersionLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperiments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "routingAppCoverage" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -53108,72 +53812,31 @@ } }, "200": { - "description": "List of related linkages", + "description": "List of AppStoreVersions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaTesterAppsLinkagesResponse" + "$ref": "#/components/schemas/AppStoreVersionsResponse" } } } } } }, - "delete": { - "tags": [ - "BetaTesters" - ], - "operationId": "betaTesters-apps-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaTesterAppsLinkagesRequest" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "202": { - "description": "Accepted for future completion" - }, - "204": { - "description": "Success (no content)" - } } - }, + ] + }, + "/v1/apps/{id}/relationships/availableTerritories": { "parameters": [ { "name": "id", @@ -53187,64 +53850,24 @@ } ] }, - "/v1/betaTesters/{id}/apps": { + "/v1/apps/{id}/availableTerritories": { "get": { "tags": [ - "BetaTesters" + "Apps" ], - "operationId": "betaTesters-apps-get_to_many_related", + "operationId": "apps-availableTerritories-get_to_many_related", + "deprecated": true, "parameters": [ { - "name": "fields[apps]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "currency" ] } }, @@ -53294,11 +53917,11 @@ } }, "200": { - "description": "List of Apps", + "description": "List of Territories", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppsResponse" + "$ref": "#/components/schemas/TerritoriesResponse" } } } @@ -53318,13 +53941,49 @@ } ] }, - "/v1/betaTesters/{id}/relationships/betaGroups": { + "/v1/apps/{id}/relationships/betaAppLocalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/betaAppLocalizations": { "get": { "tags": [ - "BetaTesters" + "Apps" ], - "operationId": "betaTesters-betaGroups-get_to_many_relationship", + "operationId": "apps-betaAppLocalizations-get_to_many_related", "parameters": [ + { + "name": "fields[betaAppLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "description", + "feedbackEmail", + "locale", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy" + ] + } + }, + "style": "form", + "explode": false + }, { "name": "limit", "in": "query", @@ -53368,56 +54027,79 @@ } }, "200": { - "description": "List of related linkages", + "description": "List of BetaAppLocalizations with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesResponse" + "$ref": "#/components/schemas/BetaAppLocalizationsWithoutIncludesResponse" } } } } } }, - "post": { - "tags": [ - "BetaTesters" - ], - "operationId": "betaTesters-betaGroups-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesRequest" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + } + ] + }, + "/v1/apps/{id}/relationships/betaAppReviewDetail": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/betaAppReviewDetail": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps-betaAppReviewDetail-get_to_one_related", + "parameters": [ + { + "name": "fields[betaAppReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" + ] } - } - }, - "409": { - "description": "Request entity error(s)", + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", "content": { "application/json": { "schema": { @@ -53426,28 +54108,6 @@ } } }, - "204": { - "description": "Success (no content)" - } - } - }, - "delete": { - "tags": [ - "BetaTesters" - ], - "operationId": "betaTesters-betaGroups-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -53468,18 +54128,15 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Single BetaAppReviewDetail with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/BetaAppReviewDetailWithoutIncludesResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, @@ -53496,12 +54153,26 @@ } ] }, - "/v1/betaTesters/{id}/betaGroups": { + "/v1/apps/{id}/relationships/betaGroups": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/betaGroups": { "get": { "tags": [ - "BetaTesters" + "Apps" ], - "operationId": "betaTesters-betaGroups-get_to_many_related", + "operationId": "apps-betaGroups-get_to_many_related", "parameters": [ { "name": "fields[betaGroups]", @@ -53575,11 +54246,11 @@ } }, "200": { - "description": "List of BetaGroups", + "description": "List of BetaGroups with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaGroupsResponse" + "$ref": "#/components/schemas/BetaGroupsWithoutIncludesResponse" } } } @@ -53599,22 +54270,43 @@ } ] }, - "/v1/betaTesters/{id}/relationships/builds": { + "/v1/apps/{id}/relationships/betaLicenseAgreement": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/betaLicenseAgreement": { "get": { "tags": [ - "BetaTesters" + "Apps" ], - "operationId": "betaTesters-builds-get_to_many_relationship", + "operationId": "apps-betaLicenseAgreement-get_to_one_related", "parameters": [ { - "name": "limit", + "name": "fields[betaLicenseAgreements]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type betaLicenseAgreements", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -53649,80 +54341,42 @@ } }, "200": { - "description": "List of related linkages", + "description": "Single BetaLicenseAgreement with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaTesterBuildsLinkagesResponse" + "$ref": "#/components/schemas/BetaLicenseAgreementWithoutIncludesResponse" } } } } } }, - "post": { - "tags": [ - "BetaTesters" - ], - "operationId": "betaTesters-builds-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaTesterBuildsLinkagesRequest" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } } - }, + ] + }, + "/v1/apps/{id}/relationships/betaTesters": { "delete": { "tags": [ - "BetaTesters" + "Apps" ], - "operationId": "betaTesters-builds-delete_to_many_relationship", + "operationId": "apps-betaTesters-delete_to_many_relationship", "requestBody": { "description": "List of related linkages", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaTesterBuildsLinkagesRequest" + "$ref": "#/components/schemas/AppBetaTestersLinkagesRequest" } } }, @@ -53759,6 +54413,9 @@ } } }, + "202": { + "description": "Accepted for future completion" + }, "204": { "description": "Success (no content)" } @@ -53777,120 +54434,7 @@ } ] }, - "/v1/betaTesters/{id}/builds": { - "get": { - "tags": [ - "BetaTesters" - ], - "operationId": "betaTesters-builds-get_to_many_related", - "parameters": [ - { - "name": "fields[builds]", - "in": "query", - "description": "the fields to include for returned resources of type builds", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of Builds", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildsResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/buildBetaDetails/{id}/relationships/build": { + "/v1/apps/{id}/relationships/builds": { "parameters": [ { "name": "id", @@ -53904,12 +54448,12 @@ } ] }, - "/v1/buildBetaDetails/{id}/build": { + "/v1/apps/{id}/builds": { "get": { "tags": [ - "BuildBetaDetails" + "Apps" ], - "operationId": "buildBetaDetails-build-get_to_one_related", + "operationId": "apps-builds-get_to_many_related", "parameters": [ { "name": "fields[builds]", @@ -53949,6 +54493,16 @@ }, "style": "form", "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" } ], "responses": { @@ -53983,11 +54537,11 @@ } }, "200": { - "description": "Single Build", + "description": "List of Builds with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildResponse" + "$ref": "#/components/schemas/BuildsWithoutIncludesResponse" } } } @@ -54007,7 +54561,7 @@ } ] }, - "/v1/buildBundles/{id}/relationships/appClipDomainCacheStatus": { + "/v1/apps/{id}/relationships/ciProduct": { "parameters": [ { "name": "id", @@ -54021,215 +54575,114 @@ } ] }, - "/v1/buildBundles/{id}/appClipDomainCacheStatus": { + "/v1/apps/{id}/ciProduct": { "get": { "tags": [ - "BuildBundles" + "Apps" ], - "operationId": "buildBundles-appClipDomainCacheStatus-get_to_one_related", + "operationId": "apps-ciProduct-get_to_one_related", "parameters": [ { - "name": "fields[appClipDomainStatuses]", + "name": "fields[ciProducts]", "in": "query", - "description": "the fields to include for returned resources of type appClipDomainStatuses", + "description": "the fields to include for returned resources of type ciProducts", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "domains", - "lastUpdatedDate" + "additionalRepositories", + "app", + "buildRuns", + "bundleId", + "createdDate", + "name", + "primaryRepositories", + "productType", + "workflows" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single AppClipDomainStatus", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppClipDomainStatusResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/buildBundles/{id}/relationships/appClipDomainDebugStatus": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/buildBundles/{id}/appClipDomainDebugStatus": { - "get": { - "tags": [ - "BuildBundles" - ], - "operationId": "buildBundles-appClipDomainDebugStatus-get_to_one_related", - "parameters": [ { - "name": "fields[appClipDomainStatuses]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type appClipDomainStatuses", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "domains", - "lastUpdatedDate" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single AppClipDomainStatus", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppClipDomainStatusResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/buildBundles/{id}/relationships/betaAppClipInvocations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/buildBundles/{id}/betaAppClipInvocations": { - "get": { - "tags": [ - "BuildBundles" - ], - "operationId": "buildBundles-betaAppClipInvocations-get_to_many_related", - "parameters": [ { - "name": "fields[betaAppClipInvocations]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type betaAppClipInvocations", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "betaAppClipInvocationLocalizations", - "buildBundle", - "url" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, @@ -54237,17 +54690,21 @@ "explode": false }, { - "name": "fields[betaAppClipInvocationLocalizations]", + "name": "fields[bundleIds]", "in": "query", - "description": "the fields to include for returned resources of type betaAppClipInvocationLocalizations", + "description": "the fields to include for returned resources of type bundleIds", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "betaAppClipInvocation", - "locale", - "title" + "app", + "bundleIdCapabilities", + "identifier", + "name", + "platform", + "profiles", + "seedId" ] } }, @@ -54255,19 +54712,9 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[betaAppClipInvocationLocalizations]", + "name": "limit[primaryRepositories]", "in": "query", - "description": "maximum number of related betaAppClipInvocationLocalizations returned (when they are included)", + "description": "maximum number of related primaryRepositories returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -54283,7 +54730,9 @@ "items": { "type": "string", "enum": [ - "betaAppClipInvocationLocalizations" + "app", + "bundleId", + "primaryRepositories" ] } }, @@ -54323,11 +54772,11 @@ } }, "200": { - "description": "List of BetaAppClipInvocations", + "description": "Single CiProduct", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaAppClipInvocationsResponse" + "$ref": "#/components/schemas/CiProductResponse" } } } @@ -54347,7 +54796,7 @@ } ] }, - "/v1/buildBundles/{id}/relationships/buildBundleFileSizes": { + "/v1/apps/{id}/relationships/customerReviews": { "parameters": [ { "name": "id", @@ -54361,26 +54810,337 @@ } ] }, - "/v1/buildBundles/{id}/buildBundleFileSizes": { + "/v1/apps/{id}/customerReviews": { "get": { "tags": [ - "BuildBundles" + "Apps" ], - "operationId": "buildBundles-buildBundleFileSizes-get_to_many_related", + "operationId": "apps-customerReviews-get_to_many_related", "parameters": [ { - "name": "fields[buildBundleFileSizes]", + "name": "filter[rating]", "in": "query", - "description": "the fields to include for returned resources of type buildBundleFileSizes", + "description": "filter by attribute 'rating'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "deviceModel", - "downloadBytes", - "installBytes", - "osVersion" + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[territory]", + "in": "query", + "description": "filter by attribute 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ABW", + "AFG", + "AGO", + "AIA", + "ALB", + "AND", + "ANT", + "ARE", + "ARG", + "ARM", + "ASM", + "ATG", + "AUS", + "AUT", + "AZE", + "BDI", + "BEL", + "BEN", + "BES", + "BFA", + "BGD", + "BGR", + "BHR", + "BHS", + "BIH", + "BLR", + "BLZ", + "BMU", + "BOL", + "BRA", + "BRB", + "BRN", + "BTN", + "BWA", + "CAF", + "CAN", + "CHE", + "CHL", + "CHN", + "CIV", + "CMR", + "COD", + "COG", + "COK", + "COL", + "COM", + "CPV", + "CRI", + "CUB", + "CUW", + "CXR", + "CYM", + "CYP", + "CZE", + "DEU", + "DJI", + "DMA", + "DNK", + "DOM", + "DZA", + "ECU", + "EGY", + "ERI", + "ESP", + "EST", + "ETH", + "FIN", + "FJI", + "FLK", + "FRA", + "FRO", + "FSM", + "GAB", + "GBR", + "GEO", + "GGY", + "GHA", + "GIB", + "GIN", + "GLP", + "GMB", + "GNB", + "GNQ", + "GRC", + "GRD", + "GRL", + "GTM", + "GUF", + "GUM", + "GUY", + "HKG", + "HND", + "HRV", + "HTI", + "HUN", + "IDN", + "IMN", + "IND", + "IRL", + "IRQ", + "ISL", + "ISR", + "ITA", + "JAM", + "JEY", + "JOR", + "JPN", + "KAZ", + "KEN", + "KGZ", + "KHM", + "KIR", + "KNA", + "KOR", + "KWT", + "LAO", + "LBN", + "LBR", + "LBY", + "LCA", + "LIE", + "LKA", + "LSO", + "LTU", + "LUX", + "LVA", + "MAC", + "MAR", + "MCO", + "MDA", + "MDG", + "MDV", + "MEX", + "MHL", + "MKD", + "MLI", + "MLT", + "MMR", + "MNE", + "MNG", + "MNP", + "MOZ", + "MRT", + "MSR", + "MTQ", + "MUS", + "MWI", + "MYS", + "MYT", + "NAM", + "NCL", + "NER", + "NFK", + "NGA", + "NIC", + "NIU", + "NLD", + "NOR", + "NPL", + "NRU", + "NZL", + "OMN", + "PAK", + "PAN", + "PER", + "PHL", + "PLW", + "PNG", + "POL", + "PRI", + "PRT", + "PRY", + "PSE", + "PYF", + "QAT", + "REU", + "ROU", + "RUS", + "RWA", + "SAU", + "SEN", + "SGP", + "SHN", + "SLB", + "SLE", + "SLV", + "SMR", + "SOM", + "SPM", + "SRB", + "SSD", + "STP", + "SUR", + "SVK", + "SVN", + "SWE", + "SWZ", + "SXM", + "SYC", + "TCA", + "TCD", + "TGO", + "THA", + "TJK", + "TKM", + "TLS", + "TON", + "TTO", + "TUN", + "TUR", + "TUV", + "TWN", + "TZA", + "UGA", + "UKR", + "UMI", + "URY", + "USA", + "UZB", + "VAT", + "VCT", + "VEN", + "VGB", + "VIR", + "VNM", + "VUT", + "WLF", + "WSM", + "YEM", + "ZAF", + "ZMB", + "ZWE" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "exists[publishedResponse]", + "in": "query", + "description": "filter by publishedResponse", + "schema": { + "type": "boolean" + }, + "style": "form", + "explode": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "createdDate", + "-createdDate", + "rating", + "-rating" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[customerReviews]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviews", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "body", + "createdDate", + "rating", + "response", + "reviewerNickname", + "territory", + "title" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[customerReviewResponses]", + "in": "query", + "description": "the fields to include for returned resources of type customerReviewResponses", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "lastModifiedDate", + "responseBody", + "review", + "state" ] } }, @@ -54396,6 +55156,22 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "response" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -54430,11 +55206,11 @@ } }, "200": { - "description": "List of BuildBundleFileSizes", + "description": "List of CustomerReviews", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildBundleFileSizesResponse" + "$ref": "#/components/schemas/CustomerReviewsResponse" } } } @@ -54454,7 +55230,7 @@ } ] }, - "/v1/builds/{id}/relationships/app": { + "/v1/apps/{id}/relationships/endUserLicenseAgreement": { "parameters": [ { "name": "id", @@ -54468,64 +55244,25 @@ } ] }, - "/v1/builds/{id}/app": { + "/v1/apps/{id}/endUserLicenseAgreement": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-app-get_to_one_related", + "operationId": "apps-endUserLicenseAgreement-get_to_one_related", "parameters": [ { - "name": "fields[apps]", + "name": "fields[endUserLicenseAgreements]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type endUserLicenseAgreements", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "agreementText", + "app", + "territories" ] } }, @@ -54565,11 +55302,11 @@ } }, "200": { - "description": "Single App", + "description": "Single EndUserLicenseAgreement with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/EndUserLicenseAgreementWithoutIncludesResponse" } } } @@ -54589,108 +55326,7 @@ } ] }, - "/v1/builds/{id}/relationships/appEncryptionDeclaration": { - "get": { - "tags": [ - "Builds" - ], - "operationId": "builds-appEncryptionDeclaration-get_to_one_relationship", - "parameters": [], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildAppEncryptionDeclarationLinkageResponse" - } - } - } - } - } - }, - "patch": { - "tags": [ - "Builds" - ], - "operationId": "builds-appEncryptionDeclaration-update_to_one_relationship", - "requestBody": { - "description": "Related linkage", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildAppEncryptionDeclarationLinkageRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, + "/v1/apps/{id}/relationships/gameCenterDetail": { "parameters": [ { "name": "id", @@ -54704,144 +55340,66 @@ } ] }, - "/v1/builds/{id}/appEncryptionDeclaration": { + "/v1/apps/{id}/gameCenterDetail": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-appEncryptionDeclaration-get_to_one_related", + "operationId": "apps-gameCenterDetail-get_to_one_related", "parameters": [ { - "name": "fields[appEncryptionDeclarations]", + "name": "fields[gameCenterAchievementReleases]", "in": "query", - "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appDescription", - "appEncryptionDeclarationDocument", - "appEncryptionDeclarationState", - "availableOnFrenchStore", - "builds", - "codeValue", - "containsProprietaryCryptography", - "containsThirdPartyCryptography", - "createdDate", - "documentName", - "documentType", - "documentUrl", - "exempt", - "platform", - "uploadedDate", - "usesEncryption" + "gameCenterAchievement", + "gameCenterDetail", + "live" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single AppEncryptionDeclaration", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppEncryptionDeclarationResponse" - } + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/relationships/appStoreVersion": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/appStoreVersion": { - "get": { - "tags": [ - "Builds" - ], - "operationId": "builds-appStoreVersion-get_to_one_related", - "parameters": [ { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[gameCenterLeaderboardSets]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" ] } }, @@ -54849,23 +55407,19 @@ "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[gameCenterGroups]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type gameCenterGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" ] } }, @@ -54873,31 +55427,27 @@ "explode": false }, { - "name": "fields[ageRatingDeclarations]", + "name": "fields[gameCenterDetails]", "in": "query", - "description": "the fields to include for returned resources of type ageRatingDeclarations", + "description": "the fields to include for returned resources of type gameCenterDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "alcoholTobaccoOrDrugUseOrReferences", - "contests", - "gambling", - "gamblingAndContests", - "gamblingSimulated", - "horrorOrFearThemes", - "kidsAgeBand", - "matureOrSuggestiveThemes", - "medicalOrTreatmentInformation", - "profanityOrCrudeHumor", - "seventeenPlus", - "sexualContentGraphicAndNudity", - "sexualContentOrNudity", - "unrestrictedWebAccess", - "violenceCartoonOrFantasy", - "violenceRealistic", - "violenceRealisticProlongedGraphicOrSadistic" + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" ] } }, @@ -54905,15 +55455,31 @@ "explode": false }, { - "name": "fields[appStoreVersionSubmissions]", + "name": "fields[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionSubmissions", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion" + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" ] } }, @@ -54921,24 +55487,17 @@ "explode": false }, { - "name": "fields[appStoreReviewDetails]", + "name": "fields[gameCenterAppVersions]", "in": "query", - "description": "the fields to include for returned resources of type appStoreReviewDetails", + "description": "the fields to include for returned resources of type gameCenterAppVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewAttachments", "appStoreVersion", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" + "compatibilityVersions", + "enabled" ] } }, @@ -54946,34 +55505,25 @@ "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "the fields to include for returned resources of type gameCenterAchievements", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" ] } }, @@ -54992,6 +55542,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -55011,6 +55562,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -55038,21 +55590,17 @@ "explode": false }, { - "name": "fields[routingAppCoverages]", + "name": "fields[gameCenterLeaderboardReleases]", "in": "query", - "description": "the fields to include for returned resources of type routingAppCoverages", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreVersion", - "assetDeliveryState", - "fileName", - "fileSize", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "gameCenterDetail", + "gameCenterLeaderboard", + "live" ] } }, @@ -55060,114 +55608,49 @@ "explode": false }, { - "name": "fields[appClipDefaultExperiences]", + "name": "limit[gameCenterAppVersions]", "in": "query", - "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "description": "maximum number of related gameCenterAppVersions returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "action", - "appClip", - "appClipAppStoreReviewDetail", - "appClipDefaultExperienceLocalizations", - "appClipDefaultExperienceTemplate", - "releaseWithAppStoreVersion" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appStoreVersionPhasedReleases]", + "name": "limit[gameCenterLeaderboards]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreVersion", - "currentDayNumber", - "phasedReleaseState", - "startDate", - "totalPauseDuration" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[builds]", + "name": "limit[gameCenterLeaderboardSets]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[appStoreVersionLocalizations]", + "name": "limit[gameCenterAchievements]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appPreviewSets", - "appScreenshotSets", - "appStoreVersion", - "description", - "keywords", - "locale", - "marketingUrl", - "promotionalText", - "supportUrl", - "whatsNew" - ] - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "limit[appStoreVersionLocalizations]", + "name": "limit[achievementReleases]", "in": "query", - "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", + "description": "maximum number of related achievementReleases returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -55175,20 +55658,19 @@ "style": "form" }, { - "name": "limit[appStoreVersionExperiments]", + "name": "limit[leaderboardReleases]", "in": "query", - "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", + "description": "maximum number of related leaderboardReleases returned (when they are included)", "schema": { "type": "integer", "maximum": 50 }, - "style": "form", - "deprecated": true + "style": "form" }, { - "name": "limit[appStoreVersionExperimentsV2]", + "name": "limit[leaderboardSetReleases]", "in": "query", - "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "description": "maximum number of related leaderboardSetReleases returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -55204,17 +55686,17 @@ "items": { "type": "string", "enum": [ - "ageRatingDeclaration", + "achievementReleases", "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "routingAppCoverage" + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" ] } }, @@ -55254,11 +55736,11 @@ } }, "200": { - "description": "Single AppStoreVersion", + "description": "Single GameCenterDetail", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppStoreVersionResponse" + "$ref": "#/components/schemas/GameCenterDetailResponse" } } } @@ -55278,7 +55760,7 @@ } ] }, - "/v1/builds/{id}/relationships/betaAppReviewSubmission": { + "/v1/apps/{id}/relationships/gameCenterEnabledVersions": { "parameters": [ { "name": "id", @@ -55292,25 +55774,186 @@ } ] }, - "/v1/builds/{id}/betaAppReviewSubmission": { + "/v1/apps/{id}/gameCenterEnabledVersions": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-betaAppReviewSubmission-get_to_one_related", + "operationId": "apps-gameCenterEnabledVersions-get_to_many_related", + "deprecated": true, "parameters": [ { - "name": "fields[betaAppReviewSubmissions]", + "name": "filter[platform]", "in": "query", - "description": "the fields to include for returned resources of type betaAppReviewSubmissions", + "description": "filter by attribute 'platform'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "betaReviewState", - "build", - "submittedDate" + "IOS", + "MAC_OS", + "TV_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[versionString]", + "in": "query", + "description": "filter by attribute 'versionString'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "versionString", + "-versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterEnabledVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "compatibleVersions", + "iconAsset", + "platform", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[compatibleVersions]", + "in": "query", + "description": "maximum number of related compatibleVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "compatibleVersions" ] } }, @@ -55350,11 +55993,11 @@ } }, "200": { - "description": "Single BetaAppReviewSubmission", + "description": "List of GameCenterEnabledVersions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaAppReviewSubmissionResponse" + "$ref": "#/components/schemas/GameCenterEnabledVersionsResponse" } } } @@ -55374,7 +56017,7 @@ } ] }, - "/v1/builds/{id}/relationships/betaBuildLocalizations": { + "/v1/apps/{id}/relationships/inAppPurchases": { "parameters": [ { "name": "id", @@ -55388,345 +56031,82 @@ } ] }, - "/v1/builds/{id}/betaBuildLocalizations": { + "/v1/apps/{id}/inAppPurchases": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-betaBuildLocalizations-get_to_many_related", + "operationId": "apps-inAppPurchases-get_to_many_related", + "deprecated": true, "parameters": [ { - "name": "fields[betaBuildLocalizations]", + "name": "filter[inAppPurchaseType]", "in": "query", - "description": "the fields to include for returned resources of type betaBuildLocalizations", + "description": "filter by attribute 'inAppPurchaseType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "build", - "locale", - "whatsNew" - ] - } - }, + "AUTOMATICALLY_RENEWABLE_SUBSCRIPTION", + "NON_CONSUMABLE", + "CONSUMABLE", + "NON_RENEWING_SUBSCRIPTION", + "FREE_SUBSCRIPTION" + ] + } + }, "style": "form", "explode": false }, { - "name": "limit", + "name": "filter[canBeSubmitted]", "in": "query", - "description": "maximum resources per page", + "description": "filter by canBeSubmitted", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of BetaBuildLocalizations", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BetaBuildLocalizationsResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/relationships/betaGroups": { - "post": { - "tags": [ - "Builds" - ], - "operationId": "builds-betaGroups-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildBetaGroupsLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "delete": { - "tags": [ - "Builds" - ], - "operationId": "builds-betaGroups-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildBetaGroupsLinkagesRequest" - } - } - }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "type": "array", + "items": { + "type": "string" } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/relationships/buildBetaDetail": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/buildBetaDetail": { - "get": { - "tags": [ - "Builds" - ], - "operationId": "builds-buildBetaDetail-get_to_one_related", - "parameters": [ { - "name": "fields[buildBetaDetails]", + "name": "sort", "in": "query", - "description": "the fields to include for returned resources of type buildBetaDetails", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "autoNotifyEnabled", - "build", - "externalBuildState", - "internalBuildState" + "inAppPurchaseType", + "-inAppPurchaseType", + "productId", + "-productId", + "referenceName", + "-referenceName" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single BuildBetaDetail", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildBetaDetailResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/relationships/diagnosticSignatures": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/diagnosticSignatures": { - "get": { - "tags": [ - "Builds" - ], - "operationId": "builds-diagnosticSignatures-get_to_many_related", - "parameters": [ { - "name": "filter[diagnosticType]", + "name": "fields[inAppPurchases]", "in": "query", - "description": "filter by attribute 'diagnosticType'", + "description": "the fields to include for returned resources of type inAppPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "DISK_WRITES", - "HANGS" + "apps", + "inAppPurchaseType", + "productId", + "referenceName", + "state" ] } }, @@ -55734,18 +56114,58 @@ "explode": false }, { - "name": "fields[diagnosticSignatures]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type diagnosticSignatures", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "diagnosticType", - "logs", - "signature", - "weight" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -55761,6 +56181,32 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[apps]", + "in": "query", + "description": "maximum number of related apps returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "apps" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -55795,11 +56241,11 @@ } }, "200": { - "description": "List of DiagnosticSignatures", + "description": "List of InAppPurchases", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DiagnosticSignaturesResponse" + "$ref": "#/components/schemas/InAppPurchasesResponse" } } } @@ -55819,7 +56265,7 @@ } ] }, - "/v1/builds/{id}/relationships/icons": { + "/v1/apps/{id}/relationships/inAppPurchasesV2": { "parameters": [ { "name": "id", @@ -55833,25 +56279,25 @@ } ] }, - "/v1/builds/{id}/icons": { + "/v1/apps/{id}/inAppPurchasesV2": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-icons-get_to_many_related", + "operationId": "apps-inAppPurchasesV2-get_to_many_related", "parameters": [ { - "name": "fields[buildIcons]", + "name": "filter[inAppPurchaseType]", "in": "query", - "description": "the fields to include for returned resources of type buildIcons", + "description": "filter by attribute 'inAppPurchaseType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "iconAsset", - "iconType", - "name" + "CONSUMABLE", + "NON_CONSUMABLE", + "NON_RENEWING_SUBSCRIPTION" ] } }, @@ -55859,273 +56305,225 @@ "explode": false }, { - "name": "limit", + "name": "filter[name]", "in": "query", - "description": "maximum resources per page", + "description": "filter by attribute 'name'", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "type": "array", + "items": { + "type": "string" } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "List of BuildIcons", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildIconsResponse" - } + { + "name": "filter[productId]", + "in": "query", + "description": "filter by attribute 'productId'", + "schema": { + "type": "array", + "items": { + "type": "string" } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/relationships/individualTesters": { - "get": { - "tags": [ - "Builds" - ], - "operationId": "builds-individualTesters-get_to_many_relationship", - "parameters": [ { - "name": "limit", + "name": "filter[state]", "in": "query", - "description": "maximum resources per page", + "description": "filter by attribute 'state'", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildIndividualTestersLinkagesResponse" - } - } - } - } - } - }, - "post": { - "tags": [ - "Builds" - ], - "operationId": "builds-individualTesters-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildIndividualTestersLinkagesRequest" + "type": "array", + "items": { + "type": "string", + "enum": [ + "MISSING_METADATA", + "WAITING_FOR_UPLOAD", + "PROCESSING_CONTENT", + "READY_TO_SUBMIT", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "DEVELOPER_ACTION_NEEDED", + "PENDING_BINARY_APPROVAL", + "APPROVED", + "DEVELOPER_REMOVED_FROM_SALE", + "REMOVED_FROM_SALE", + "REJECTED" + ] } - } + }, + "style": "form", + "explode": false }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseType", + "-inAppPurchaseType", + "name", + "-name" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "inAppPurchaseV2", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] } - } + }, + "style": "form", + "explode": false }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[inAppPurchaseAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" + ] } - } + }, + "style": "form", + "explode": false }, - "204": { - "description": "Success (no content)" - } - } - }, - "delete": { - "tags": [ - "Builds" - ], - "operationId": "builds-individualTesters-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BuildIndividualTestersLinkagesRequest" + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] } - } + }, + "style": "form", + "explode": false }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "inAppPurchaseV2", + "locale", + "name", + "state" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] } - } + }, + "style": "form", + "explode": false }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[inAppPurchasePriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" + ] } - } - }, - "204": { - "description": "Success (no content)" - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/builds/{id}/individualTesters": { - "get": { - "tags": [ - "Builds" - ], - "operationId": "builds-individualTesters-get_to_many_related", - "parameters": [ { - "name": "fields[betaTesters]", + "name": "fields[inAppPurchaseContents]", "in": "query", - "description": "the fields to include for returned resources of type betaTesters", + "description": "the fields to include for returned resources of type inAppPurchaseContents", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "apps", - "betaGroups", - "builds", - "email", - "firstName", - "inviteType", - "lastName" + "fileName", + "fileSize", + "inAppPurchaseV2", + "lastModifiedDate", + "url" ] } }, @@ -56141,6 +56539,37 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[inAppPurchaseLocalizations]", + "in": "query", + "description": "maximum number of related inAppPurchaseLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "content", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "promotedPurchase" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -56175,11 +56604,11 @@ } }, "200": { - "description": "List of BetaTesters", + "description": "List of InAppPurchases", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BetaTestersResponse" + "$ref": "#/components/schemas/InAppPurchasesV2Response" } } } @@ -56199,12 +56628,12 @@ } ] }, - "/v1/builds/{id}/perfPowerMetrics": { + "/v1/apps/{id}/perfPowerMetrics": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-perfPowerMetrics-get_to_many_related", + "operationId": "apps-perfPowerMetrics-get_to_many_related", "parameters": [ { "name": "filter[deviceType]", @@ -56314,7 +56743,7 @@ } ] }, - "/v1/builds/{id}/relationships/preReleaseVersion": { + "/v1/apps/{id}/relationships/preOrder": { "parameters": [ { "name": "id", @@ -56328,26 +56757,25 @@ } ] }, - "/v1/builds/{id}/preReleaseVersion": { + "/v1/apps/{id}/preOrder": { "get": { "tags": [ - "Builds" + "Apps" ], - "operationId": "builds-preReleaseVersion-get_to_one_related", + "operationId": "apps-preOrder-get_to_one_related", "parameters": [ { - "name": "fields[preReleaseVersions]", + "name": "fields[appPreOrders]", "in": "query", - "description": "the fields to include for returned resources of type preReleaseVersions", + "description": "the fields to include for returned resources of type appPreOrders", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "builds", - "platform", - "version" + "appReleaseDate", + "preOrderAvailableDate" ] } }, @@ -56387,11 +56815,11 @@ } }, "200": { - "description": "Single PreReleaseVersion", + "description": "Single AppPreOrder with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PreReleaseVersionResponse" + "$ref": "#/components/schemas/AppPreOrderWithoutIncludesResponse" } } } @@ -56411,7 +56839,7 @@ } ] }, - "/v1/bundleIds/{id}/relationships/app": { + "/v1/apps/{id}/relationships/preReleaseVersions": { "parameters": [ { "name": "id", @@ -56425,69 +56853,41 @@ } ] }, - "/v1/bundleIds/{id}/app": { + "/v1/apps/{id}/preReleaseVersions": { "get": { "tags": [ - "BundleIds" + "Apps" ], - "operationId": "bundleIds-app-get_to_one_related", + "operationId": "apps-preReleaseVersions-get_to_many_related", "parameters": [ { - "name": "fields[apps]", + "name": "fields[preReleaseVersions]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type preReleaseVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", + "app", "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "platform", + "version" ] } }, "style": "form", "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" } ], "responses": { @@ -56522,11 +56922,11 @@ } }, "200": { - "description": "Single App", + "description": "List of PreReleaseVersions with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/PreReleaseVersionsWithoutIncludesResponse" } } } @@ -56546,7 +56946,7 @@ } ] }, - "/v1/bundleIds/{id}/relationships/bundleIdCapabilities": { + "/v1/apps/{id}/relationships/pricePoints": { "parameters": [ { "name": "id", @@ -56560,25 +56960,51 @@ } ] }, - "/v1/bundleIds/{id}/bundleIdCapabilities": { + "/v1/apps/{id}/pricePoints": { "get": { "tags": [ - "BundleIds" + "Apps" ], - "operationId": "bundleIds-bundleIdCapabilities-get_to_many_related", + "operationId": "apps-pricePoints-get_to_many_related", + "deprecated": true, "parameters": [ { - "name": "fields[bundleIdCapabilities]", + "name": "filter[priceTier]", "in": "query", - "description": "the fields to include for returned resources of type bundleIdCapabilities", + "description": "filter by id(s) of related 'priceTier'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false, + "deprecated": true + }, + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appPriceTiers]", + "in": "query", + "description": "the fields to include for returned resources of type appPriceTiers", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "bundleId", - "capabilityType", - "settings" + "pricePoints" ] } }, @@ -56586,113 +57012,78 @@ "explode": false }, { - "name": "limit", + "name": "fields[appPricePoints]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type appPricePoints", "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of BundleIdCapabilities", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/BundleIdCapabilitiesResponse" - } + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "customerPrice", + "priceTier", + "proceeds", + "territory" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/bundleIds/{id}/relationships/profiles": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/bundleIds/{id}/profiles": { - "get": { - "tags": [ - "BundleIds" - ], - "operationId": "bundleIds-profiles-get_to_many_related", - "parameters": [ { - "name": "fields[profiles]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type profiles", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", "bundleId", - "certificates", - "createdDate", - "devices", - "expirationDate", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", "name", - "platform", - "profileContent", - "profileState", - "profileType", - "uuid" + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -56700,106 +57091,15 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of Profiles", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ProfilesResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciBuildActions/{id}/relationships/artifacts": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciBuildActions/{id}/artifacts": { - "get": { - "tags": [ - "CiBuildActions" - ], - "operationId": "ciBuildActions-artifacts-get_to_many_related", - "parameters": [ - { - "name": "fields[ciArtifacts]", + "name": "fields[territories]", "in": "query", - "description": "the fields to include for returned resources of type ciArtifacts", + "description": "the fields to include for returned resources of type territories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "downloadUrl", - "fileName", - "fileSize", - "fileType" + "currency" ] } }, @@ -56815,6 +57115,24 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "priceTier", + "territory" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -56849,11 +57167,11 @@ } }, "200": { - "description": "List of CiArtifacts", + "description": "List of AppPricePoints", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiArtifactsResponse" + "$ref": "#/components/schemas/AppPricePointsV2Response" } } } @@ -56873,7 +57191,7 @@ } ] }, - "/v1/ciBuildActions/{id}/relationships/buildRun": { + "/v1/apps/{id}/relationships/prices": { "parameters": [ { "name": "id", @@ -56887,27 +57205,24 @@ } ] }, - "/v1/ciBuildActions/{id}/buildRun": { + "/v1/apps/{id}/prices": { "get": { "tags": [ - "CiBuildActions" + "Apps" ], - "operationId": "ciBuildActions-buildRun-get_to_one_related", + "operationId": "apps-prices-get_to_many_related", + "deprecated": true, "parameters": [ { - "name": "fields[scmGitReferences]", + "name": "fields[appPriceTiers]", "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", + "description": "the fields to include for returned resources of type appPriceTiers", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" + "pricePoints" ] } }, @@ -56915,118 +57230,58 @@ "explode": false }, { - "name": "fields[ciBuildRuns]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type ciBuildRuns", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "actions", - "buildRun", + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", "builds", - "cancelReason", - "clean", - "completionStatus", - "createdDate", - "destinationBranch", - "destinationCommit", - "executionProgress", - "finishedDate", - "isPullRequestBuild", - "issueCounts", - "number", - "product", - "pullRequest", - "sourceBranchOrTag", - "sourceCommit", - "startReason", - "startedDate", - "workflow" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciWorkflows]", - "in": "query", - "description": "the fields to include for returned resources of type ciWorkflows", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actions", - "branchStartCondition", - "buildRuns", - "clean", - "containerFilePath", - "description", - "isEnabled", - "isLockedForEditing", - "lastModifiedDate", - "macOsVersion", - "name", - "product", - "pullRequestStartCondition", - "repository", - "scheduledStartCondition", - "tagStartCondition", - "xcodeVersion" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmPullRequests]", - "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciProducts]", - "in": "query", - "description": "the fields to include for returned resources of type ciProducts", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "additionalRepositories", - "app", - "buildRuns", "bundleId", - "createdDate", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", "name", - "primaryRepositories", - "productType", - "workflows" + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -57034,38 +57289,16 @@ "explode": false }, { - "name": "fields[builds]", + "name": "fields[appPrices]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type appPrices", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "priceTier" ] } }, @@ -57073,12 +57306,12 @@ "explode": false }, { - "name": "limit[builds]", + "name": "limit", "in": "query", - "description": "maximum number of related builds returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" }, @@ -57091,12 +57324,8 @@ "items": { "type": "string", "enum": [ - "builds", - "destinationBranch", - "product", - "pullRequest", - "sourceBranchOrTag", - "workflow" + "app", + "priceTier" ] } }, @@ -57136,11 +57365,11 @@ } }, "200": { - "description": "Single CiBuildRun", + "description": "List of AppPrices", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiBuildRunResponse" + "$ref": "#/components/schemas/AppPricesResponse" } } } @@ -57160,46 +57389,13 @@ } ] }, - "/v1/ciBuildActions/{id}/relationships/issues": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciBuildActions/{id}/issues": { + "/v1/apps/{id}/relationships/promotedPurchases": { "get": { "tags": [ - "CiBuildActions" + "Apps" ], - "operationId": "ciBuildActions-issues-get_to_many_related", + "operationId": "apps-promotedPurchases-get_to_many_relationship", "parameters": [ - { - "name": "fields[ciIssues]", - "in": "query", - "description": "the fields to include for returned resources of type ciIssues", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "category", - "fileSource", - "issueType", - "message" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "limit", "in": "query", @@ -57243,94 +57439,34 @@ } }, "200": { - "description": "List of CiIssues", + "description": "List of related linkages", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiIssuesResponse" + "$ref": "#/components/schemas/AppPromotedPurchasesLinkagesResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciBuildActions/{id}/relationships/testResults": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciBuildActions/{id}/testResults": { - "get": { + "patch": { "tags": [ - "CiBuildActions" - ], - "operationId": "ciBuildActions-testResults-get_to_many_related", - "parameters": [ - { - "name": "fields[ciTestResults]", - "in": "query", - "description": "the fields to include for returned resources of type ciTestResults", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "className", - "destinationTestResults", - "fileSource", - "message", - "name", - "status" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } + "Apps" ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + "operationId": "apps-promotedPurchases-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppPromotedPurchasesLinkagesRequest" } } }, + "required": true + }, + "responses": { "403": { "description": "Forbidden error", "content": { @@ -57351,15 +57487,18 @@ } } }, - "200": { - "description": "List of CiTestResults", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiTestResultsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -57376,57 +57515,29 @@ } ] }, - "/v1/ciBuildRuns/{id}/relationships/actions": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciBuildRuns/{id}/actions": { + "/v1/apps/{id}/promotedPurchases": { "get": { "tags": [ - "CiBuildRuns" + "Apps" ], - "operationId": "ciBuildRuns-actions-get_to_many_related", + "operationId": "apps-promotedPurchases-get_to_many_related", "parameters": [ { - "name": "fields[ciBuildRuns]", + "name": "fields[promotedPurchases]", "in": "query", - "description": "the fields to include for returned resources of type ciBuildRuns", + "description": "the fields to include for returned resources of type promotedPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "actions", - "buildRun", - "builds", - "cancelReason", - "clean", - "completionStatus", - "createdDate", - "destinationBranch", - "destinationCommit", - "executionProgress", - "finishedDate", - "isPullRequestBuild", - "issueCounts", - "number", - "product", - "pullRequest", - "sourceBranchOrTag", - "sourceCommit", - "startReason", - "startedDate", - "workflow" + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" ] } }, @@ -57434,26 +57545,88 @@ "explode": false }, { - "name": "fields[ciBuildActions]", + "name": "fields[subscriptions]", "in": "query", - "description": "the fields to include for returned resources of type ciBuildActions", + "description": "the fields to include for returned resources of type subscriptions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "actionType", - "artifacts", - "buildRun", - "completionStatus", - "executionProgress", - "finishedDate", - "isRequiredToPass", - "issueCounts", - "issues", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", "name", - "startedDate", - "testResults" + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[promotedPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "promotedPurchase", + "sourceFileChecksum", + "state", + "uploadOperations", + "uploaded" ] } }, @@ -57470,6 +57643,16 @@ }, "style": "form" }, + { + "name": "limit[promotionImages]", + "in": "query", + "description": "maximum number of related promotionImages returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "include", "in": "query", @@ -57479,7 +57662,9 @@ "items": { "type": "string", "enum": [ - "buildRun" + "inAppPurchaseV2", + "promotionImages", + "subscription" ] } }, @@ -57519,11 +57704,11 @@ } }, "200": { - "description": "List of CiBuildActions", + "description": "List of PromotedPurchases", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiBuildActionsResponse" + "$ref": "#/components/schemas/PromotedPurchasesResponse" } } } @@ -57543,7 +57728,7 @@ } ] }, - "/v1/ciBuildRuns/{id}/relationships/builds": { + "/v1/apps/{id}/relationships/reviewSubmissions": { "parameters": [ { "name": "id", @@ -57557,26 +57742,25 @@ } ] }, - "/v1/ciBuildRuns/{id}/builds": { + "/v1/apps/{id}/reviewSubmissions": { "get": { "tags": [ - "CiBuildRuns" + "Apps" ], - "operationId": "ciBuildRuns-builds-get_to_many_related", + "operationId": "apps-reviewSubmissions-get_to_many_related", "parameters": [ { - "name": "filter[betaAppReviewSubmission.betaReviewState]", + "name": "filter[platform]", "in": "query", - "description": "filter by attribute 'betaAppReviewSubmission.betaReviewState'", + "description": "filter by attribute 'platform'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "REJECTED", - "APPROVED" + "IOS", + "MAC_OS", + "TV_OS" ] } }, @@ -57584,16 +57768,21 @@ "explode": false }, { - "name": "filter[buildAudienceType]", + "name": "filter[state]", "in": "query", - "description": "filter by attribute 'buildAudienceType'", + "description": "filter by attribute 'state'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "INTERNAL_ONLY", - "APP_STORE_ELIGIBLE" + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "UNRESOLVED_ISSUES", + "CANCELING", + "COMPLETING", + "COMPLETE" ] } }, @@ -57601,30 +57790,43 @@ "explode": false }, { - "name": "filter[expired]", + "name": "fields[reviewSubmissionItems]", "in": "query", - "description": "filter by attribute 'expired'", + "description": "the fields to include for returned resources of type reviewSubmissionItems", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appEvent", + "appStoreVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "removed", + "resolved", + "reviewSubmission", + "state" + ] } }, "style": "form", "explode": false }, { - "name": "filter[preReleaseVersion.platform]", + "name": "fields[actors]", "in": "query", - "description": "filter by attribute 'preReleaseVersion.platform'", + "description": "the fields to include for returned resources of type actors", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IOS", - "MAC_OS", - "TV_OS" + "actorType", + "apiKeyId", + "userEmail", + "userFirstName", + "userLastName" ] } }, @@ -57632,31 +57834,93 @@ "explode": false }, { - "name": "filter[preReleaseVersion.version]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "filter by attribute 'preReleaseVersion.version'", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] } }, "style": "form", "explode": false }, { - "name": "filter[processingState]", + "name": "fields[apps]", "in": "query", - "description": "filter by attribute 'processingState'", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "PROCESSING", - "FAILED", - "INVALID", - "VALID" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -57664,296 +57928,277 @@ "explode": false }, { - "name": "filter[usesNonExemptEncryption]", + "name": "fields[reviewSubmissions]", "in": "query", - "description": "filter by attribute 'usesNonExemptEncryption'", + "description": "the fields to include for returned resources of type reviewSubmissions", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "app", + "appStoreVersionForReview", + "canceled", + "items", + "lastUpdatedByActor", + "platform", + "state", + "submitted", + "submittedByActor", + "submittedDate" + ] } }, "style": "form", "explode": false }, { - "name": "filter[version]", + "name": "limit", "in": "query", - "description": "filter by attribute 'version'", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "filter[app]", + "name": "limit[items]", "in": "query", - "description": "filter by id(s) of related 'app'", + "description": "maximum number of related items returned (when they are included)", "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "integer", + "maximum": 50 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "filter[appStoreVersion]", + "name": "include", "in": "query", - "description": "filter by id(s) of related 'appStoreVersion'", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "app", + "appStoreVersionForReview", + "items", + "lastUpdatedByActor", + "submittedByActor" + ] } }, "style": "form", "explode": false - }, - { - "name": "filter[betaGroups]", - "in": "query", - "description": "filter by id(s) of related 'betaGroups'", - "schema": { - "type": "array", - "items": { - "type": "string" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "filter[preReleaseVersion]", - "in": "query", - "description": "filter by id(s) of related 'preReleaseVersion'", - "schema": { - "type": "array", - "items": { - "type": "string" + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "filter[id]", - "in": "query", - "description": "filter by id(s)", - "schema": { - "type": "array", - "items": { - "type": "string" + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "sort", - "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "preReleaseVersion", - "-preReleaseVersion", - "uploadedDate", - "-uploadedDate", - "version", - "-version" - ] + "200": { + "description": "List of ReviewSubmissions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionsResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, - { - "name": "fields[buildBundles]", - "in": "query", - "description": "the fields to include for returned resources of type buildBundles", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appClipDomainCacheStatus", - "appClipDomainDebugStatus", - "betaAppClipInvocations", - "buildBundleFileSizes", - "bundleId", - "bundleType", - "dSYMUrl", - "deviceProtocols", - "entitlements", - "fileName", - "hasOnDemandResources", - "hasPrerenderedIcon", - "hasSirikit", - "includesSymbols", - "isIosBuildMacAppStoreCompatible", - "locales", - "platformBuild", - "requiredCapabilities", - "sdkBuild", - "supportedArchitectures", - "usesLocationServices" - ] - } - }, - "style": "form", - "explode": false + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/relationships/subscriptionGracePeriod": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/subscriptionGracePeriod": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps-subscriptionGracePeriod-get_to_one_related", + "parameters": [ { - "name": "fields[buildIcons]", + "name": "fields[subscriptionGracePeriods]", "in": "query", - "description": "the fields to include for returned resources of type buildIcons", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "iconAsset", - "iconType", - "name" + "duration", + "optIn", + "renewalType", + "sandboxOptIn" ] } }, "style": "form", "explode": false - }, - { - "name": "fields[betaAppReviewSubmissions]", - "in": "query", - "description": "the fields to include for returned resources of type betaAppReviewSubmissions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "betaReviewState", - "build", - "submittedDate" - ] + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[buildBetaDetails]", - "in": "query", - "description": "the fields to include for returned resources of type buildBetaDetails", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "autoNotifyEnabled", - "build", - "externalBuildState", - "internalBuildState" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[betaTesters]", - "in": "query", - "description": "the fields to include for returned resources of type betaTesters", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "apps", - "betaGroups", - "builds", - "email", - "firstName", - "inviteType", - "lastName" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[preReleaseVersions]", - "in": "query", - "description": "the fields to include for returned resources of type preReleaseVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "builds", - "platform", - "version" - ] + "200": { + "description": "Single SubscriptionGracePeriod", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGracePeriodResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/relationships/subscriptionGroups": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/apps/{id}/subscriptionGroups": { + "get": { + "tags": [ + "Apps" + ], + "operationId": "apps-subscriptionGroups-get_to_many_related", + "parameters": [ { - "name": "fields[betaBuildLocalizations]", + "name": "filter[referenceName]", "in": "query", - "description": "the fields to include for returned resources of type betaBuildLocalizations", + "description": "filter by attribute 'referenceName'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "build", - "locale", - "whatsNew" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[appStoreVersions]", + "name": "filter[subscriptions.state]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", + "description": "filter by attribute 'subscriptions.state'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" + "MISSING_METADATA", + "READY_TO_SUBMIT", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "DEVELOPER_ACTION_NEEDED", + "PENDING_BINARY_APPROVAL", + "APPROVED", + "DEVELOPER_REMOVED_FROM_SALE", + "REMOVED_FROM_SALE", + "REJECTED" ] } }, @@ -57961,31 +58206,16 @@ "explode": false }, { - "name": "fields[appEncryptionDeclarations]", + "name": "sort", "in": "query", - "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appDescription", - "appEncryptionDeclarationDocument", - "appEncryptionDeclarationState", - "availableOnFrenchStore", - "builds", - "codeValue", - "containsProprietaryCryptography", - "containsThirdPartyCryptography", - "createdDate", - "documentName", - "documentType", - "documentUrl", - "exempt", - "platform", - "uploadedDate", - "usesEncryption" + "referenceName", + "-referenceName" ] } }, @@ -57993,56 +58223,32 @@ "explode": false }, { - "name": "fields[apps]", + "name": "fields[subscriptions]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type subscriptions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", + "offerCodes", "pricePoints", "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" ] } }, @@ -58050,38 +58256,18 @@ "explode": false }, { - "name": "fields[builds]", + "name": "fields[subscriptionGroups]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type subscriptionGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "referenceName", + "subscriptionGroupLocalizations", + "subscriptions" ] } }, @@ -58089,28 +58275,19 @@ "explode": false }, { - "name": "fields[betaGroups]", + "name": "fields[subscriptionGroupLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type betaGroups", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "betaTesters", - "builds", - "createdDate", - "feedbackEnabled", - "hasAccessToAllBuilds", - "iosBuildsAvailableForAppleSiliconMac", - "isInternalGroup", + "customAppName", + "locale", "name", - "publicLink", - "publicLinkEnabled", - "publicLinkId", - "publicLinkLimit", - "publicLinkLimitEnabled" + "state", + "subscriptionGroup" ] } }, @@ -58128,39 +58305,9 @@ "style": "form" }, { - "name": "limit[individualTesters]", - "in": "query", - "description": "maximum number of related individualTesters returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[betaGroups]", - "in": "query", - "description": "maximum number of related betaGroups returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[betaBuildLocalizations]", - "in": "query", - "description": "maximum number of related betaBuildLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[icons]", + "name": "limit[subscriptions]", "in": "query", - "description": "maximum number of related icons returned (when they are included)", + "description": "maximum number of related subscriptions returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -58168,9 +58315,9 @@ "style": "form" }, { - "name": "limit[buildBundles]", + "name": "limit[subscriptionGroupLocalizations]", "in": "query", - "description": "maximum number of related buildBundles returned (when they are included)", + "description": "maximum number of related subscriptionGroupLocalizations returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -58186,17 +58333,8 @@ "items": { "type": "string", "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildBetaDetail", - "buildBundles", - "icons", - "individualTesters", - "preReleaseVersion" + "subscriptionGroupLocalizations", + "subscriptions" ] } }, @@ -58236,11 +58374,11 @@ } }, "200": { - "description": "List of Builds", + "description": "List of SubscriptionGroups", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildsResponse" + "$ref": "#/components/schemas/SubscriptionGroupsResponse" } } } @@ -58260,7 +58398,7 @@ } ] }, - "/v1/ciMacOsVersions/{id}/relationships/xcodeVersions": { + "/v1/betaAppLocalizations/{id}/relationships/app": { "parameters": [ { "name": "id", @@ -58274,80 +58412,66 @@ } ] }, - "/v1/ciMacOsVersions/{id}/xcodeVersions": { + "/v1/betaAppLocalizations/{id}/app": { "get": { "tags": [ - "CiMacOsVersions" + "BetaAppLocalizations" ], - "operationId": "ciMacOsVersions-xcodeVersions-get_to_many_related", + "operationId": "betaAppLocalizations-app-get_to_one_related", "parameters": [ { - "name": "fields[ciXcodeVersions]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type ciXcodeVersions", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "macOsVersions", + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", "name", - "testDestinations", - "version" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciMacOsVersions]", - "in": "query", - "description": "the fields to include for returned resources of type ciMacOsVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "name", - "version", - "xcodeVersions" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[macOsVersions]", - "in": "query", - "description": "maximum number of related macOsVersions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "macOsVersions" + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -58387,11 +58511,11 @@ } }, "200": { - "description": "List of CiXcodeVersions", + "description": "Single App with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiXcodeVersionsResponse" + "$ref": "#/components/schemas/AppWithoutIncludesResponse" } } } @@ -58411,7 +58535,7 @@ } ] }, - "/v1/ciProducts/{id}/relationships/additionalRepositories": { + "/v1/betaAppReviewDetails/{id}/relationships/app": { "parameters": [ { "name": "id", @@ -58425,109 +58549,183 @@ } ] }, - "/v1/ciProducts/{id}/additionalRepositories": { + "/v1/betaAppReviewDetails/{id}/app": { "get": { "tags": [ - "CiProducts" + "BetaAppReviewDetails" ], - "operationId": "ciProducts-additionalRepositories-get_to_many_related", + "operationId": "betaAppReviewDetails-app-get_to_one_related", "parameters": [ { - "name": "filter[id]", - "in": "query", - "description": "filter by id(s)", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmGitReferences]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "canonicalName", - "isDeleted", - "kind", + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", "name", - "repository" + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[scmProviders]", - "in": "query", - "description": "the fields to include for returned resources of type scmProviders", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "repositories", - "scmProviderType", - "url" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[scmRepositories]", - "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" + "200": { + "description": "Single App with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaAppReviewSubmissions/{id}/relationships/build": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaAppReviewSubmissions/{id}/build": { + "get": { + "tags": [ + "BetaAppReviewSubmissions" + ], + "operationId": "betaAppReviewSubmissions-build-get_to_one_related", + "parameters": [ { - "name": "include", + "name": "fields[builds]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type builds", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "scmProvider" + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" ] } }, @@ -58567,11 +58765,11 @@ } }, "200": { - "description": "List of ScmRepositories", + "description": "Single Build with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmRepositoriesResponse" + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" } } } @@ -58591,7 +58789,7 @@ } ] }, - "/v1/ciProducts/{id}/relationships/app": { + "/v1/betaBuildLocalizations/{id}/relationships/build": { "parameters": [ { "name": "id", @@ -58605,137 +58803,130 @@ } ] }, - "/v1/ciProducts/{id}/app": { + "/v1/betaBuildLocalizations/{id}/build": { "get": { "tags": [ - "CiProducts" + "BetaBuildLocalizations" ], - "operationId": "ciProducts-app-get_to_one_related", + "operationId": "betaBuildLocalizations-build-get_to_one_related", "parameters": [ { - "name": "fields[betaAppReviewDetails]", + "name": "fields[builds]", "in": "query", - "description": "the fields to include for returned resources of type betaAppReviewDetails", + "description": "the fields to include for returned resources of type builds", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "contactEmail", - "contactFirstName", - "contactLastName", - "contactPhone", - "demoAccountName", - "demoAccountPassword", - "demoAccountRequired", - "notes" + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" ] } }, "style": "form", "explode": false - }, - { - "name": "fields[ciProducts]", - "in": "query", - "description": "the fields to include for returned resources of type ciProducts", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "additionalRepositories", - "app", - "buildRuns", - "bundleId", - "createdDate", - "name", - "primaryRepositories", - "productType", - "workflows" - ] + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[reviewSubmissions]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionForReview", - "canceled", - "items", - "lastUpdatedByActor", - "platform", - "state", - "submitted", - "submittedByActor", - "submittedDate" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[betaGroups]", - "in": "query", - "description": "the fields to include for returned resources of type betaGroups", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "betaTesters", - "builds", - "createdDate", - "feedbackEnabled", - "hasAccessToAllBuilds", - "iosBuildsAvailableForAppleSiliconMac", - "isInternalGroup", - "name", - "publicLink", - "publicLinkEnabled", - "publicLinkId", - "publicLinkLimit", - "publicLinkLimitEnabled" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[promotedPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] + "200": { + "description": "Single Build with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaGroups/{id}/relationships/app": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaGroups/{id}/app": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-app-get_to_one_related", + "parameters": [ { "name": "fields[apps]", "in": "query", @@ -58748,6 +58939,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -58767,6 +58959,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -58792,34 +58985,523 @@ }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appEvents]", - "in": "query", - "description": "the fields to include for returned resources of type appEvents", - "schema": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single App with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaGroups/{id}/relationships/betaTesters": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-betaTesters-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-betaTesters-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-betaTesters-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBetaTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaGroups/{id}/betaTesters": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-betaTesters-get_to_many_related", + "parameters": [ + { + "name": "fields[betaTesters]", + "in": "query", + "description": "the fields to include for returned resources of type betaTesters", + "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "archivedTerritorySchedules", - "badge", - "deepLink", - "eventState", - "localizations", - "primaryLocale", - "priority", - "purchaseRequirement", - "purpose", - "referenceName", - "territorySchedules" + "apps", + "betaGroups", + "builds", + "email", + "firstName", + "inviteType", + "lastName" ] } }, "style": "form", "explode": false }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of BetaTesters with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTestersWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaGroups/{id}/relationships/builds": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-builds-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBuildsLinkagesResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-builds-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-builds-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaGroupBuildsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaGroups/{id}/builds": { + "get": { + "tags": [ + "BetaGroups" + ], + "operationId": "betaGroups-builds-get_to_many_related", + "parameters": [ { "name": "fields[builds]", "in": "query", @@ -58860,230 +59542,398 @@ "explode": false }, { - "name": "fields[betaLicenseAgreements]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type betaLicenseAgreements", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "agreementText", - "app" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appClips]", - "in": "query", - "description": "the fields to include for returned resources of type appClips", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appClipAdvancedExperiences", - "appClipDefaultExperiences", - "bundleId" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[betaAppLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type betaAppLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "description", - "feedbackEmail", - "locale", - "marketingUrl", - "privacyPolicyUrl", - "tvOsPrivacyPolicy" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appInfos]", - "in": "query", - "description": "the fields to include for returned resources of type appInfos", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appInfoLocalizations", - "appStoreAgeRating", - "appStoreState", - "brazilAgeRating", - "brazilAgeRatingV2", - "kidsAgeBand", - "primaryCategory", - "primarySubcategoryOne", - "primarySubcategoryTwo", - "secondaryCategory", - "secondarySubcategoryOne", - "secondarySubcategoryTwo" - ] + "200": { + "description": "List of Builds with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildsWithoutIncludesResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaLicenseAgreements/{id}/relationships/app": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaLicenseAgreements/{id}/app": { + "get": { + "tags": [ + "BetaLicenseAgreements" + ], + "operationId": "betaLicenseAgreements-app-get_to_one_related", + "parameters": [ { - "name": "fields[preReleaseVersions]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type preReleaseVersions", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", "builds", - "platform", - "version" + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "apps", - "inAppPurchaseType", - "productId", - "referenceName", - "state" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[subscriptionGroups]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroups", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "referenceName", - "subscriptionGroupLocalizations", - "subscriptions" - ] + "200": { + "description": "Single App with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppWithoutIncludesResponse" + } } - }, - "style": "form", - "explode": false + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaTesters/{id}/relationships/apps": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-apps-get_to_many_relationship", + "parameters": [ { - "name": "fields[appPreOrders]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appPreOrders", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appReleaseDate", - "preOrderAvailableDate" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[appPrices]", - "in": "query", - "description": "the fields to include for returned resources of type appPrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "priceTier" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterAppsLinkagesResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-apps-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "202": { + "description": "Accepted for future completion" + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaTesters/{id}/apps": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-apps-get_to_many_related", + "parameters": [ { - "name": "fields[gameCenterEnabledVersions]", + "name": "fields[apps]", "in": "query", - "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "compatibleVersions", - "iconAsset", - "platform", - "versionString" + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" ] } }, @@ -59091,361 +59941,14 @@ "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", - "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionGracePeriods]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionGracePeriods", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "duration", - "optIn", - "renewalType", - "sandboxOptIn" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[endUserLicenseAgreements]", - "in": "query", - "description": "the fields to include for returned resources of type endUserLicenseAgreements", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "agreementText", - "app", - "territories" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appStoreVersions]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[appCustomProductPages]", - "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPages", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appCustomProductPageVersions", - "appStoreVersionTemplate", - "customProductPageTemplate", - "name", - "url", - "visible" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit[betaGroups]", - "in": "query", - "description": "maximum number of related betaGroups returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appStoreVersions]", - "in": "query", - "description": "maximum number of related appStoreVersions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[preReleaseVersions]", - "in": "query", - "description": "maximum number of related preReleaseVersions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[betaAppLocalizations]", - "in": "query", - "description": "maximum number of related betaAppLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[builds]", - "in": "query", - "description": "maximum number of related builds returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appInfos]", - "in": "query", - "description": "maximum number of related appInfos returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appClips]", - "in": "query", - "description": "maximum number of related appClips returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[prices]", - "in": "query", - "description": "maximum number of related prices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form", - "deprecated": true - }, - { - "name": "limit[availableTerritories]", - "in": "query", - "description": "maximum number of related availableTerritories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[inAppPurchases]", - "in": "query", - "description": "maximum number of related inAppPurchases returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[subscriptionGroups]", - "in": "query", - "description": "maximum number of related subscriptionGroups returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[gameCenterEnabledVersions]", - "in": "query", - "description": "maximum number of related gameCenterEnabledVersions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appCustomProductPages]", - "in": "query", - "description": "maximum number of related appCustomProductPages returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[inAppPurchasesV2]", - "in": "query", - "description": "maximum number of related inAppPurchasesV2 returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[promotedPurchases]", - "in": "query", - "description": "maximum number of related promotedPurchases returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appEvents]", - "in": "query", - "description": "maximum number of related appEvents returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[reviewSubmissions]", - "in": "query", - "description": "maximum number of related reviewSubmissions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[appStoreVersionExperimentsV2]", - "in": "query", - "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "builds", - "ciProduct", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "preOrder", - "preReleaseVersions", - "prices", - "promotedPurchases", - "reviewSubmissions", - "subscriptionGracePeriod", - "subscriptionGroups" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -59480,11 +59983,11 @@ } }, "200": { - "description": "Single App", + "description": "List of Apps with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/AppsWithoutIncludesResponse" } } } @@ -59504,263 +60007,106 @@ } ] }, - "/v1/ciProducts/{id}/relationships/buildRuns": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciProducts/{id}/buildRuns": { + "/v1/betaTesters/{id}/relationships/betaGroups": { "get": { "tags": [ - "CiProducts" + "BetaTesters" ], - "operationId": "ciProducts-buildRuns-get_to_many_related", + "operationId": "betaTesters-betaGroups-get_to_many_relationship", "parameters": [ { - "name": "filter[builds]", + "name": "limit", "in": "query", - "description": "filter by id(s) of related 'builds'", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string" - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmGitReferences]", - "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" - ] + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[ciBuildRuns]", - "in": "query", - "description": "the fields to include for returned resources of type ciBuildRuns", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actions", - "buildRun", - "builds", - "cancelReason", - "clean", - "completionStatus", - "createdDate", - "destinationBranch", - "destinationCommit", - "executionProgress", - "finishedDate", - "isPullRequestBuild", - "issueCounts", - "number", - "product", - "pullRequest", - "sourceBranchOrTag", - "sourceCommit", - "startReason", - "startedDate", - "workflow" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[ciWorkflows]", - "in": "query", - "description": "the fields to include for returned resources of type ciWorkflows", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actions", - "branchStartCondition", - "buildRuns", - "clean", - "containerFilePath", - "description", - "isEnabled", - "isLockedForEditing", - "lastModifiedDate", - "macOsVersion", - "name", - "product", - "pullRequestStartCondition", - "repository", - "scheduledStartCondition", - "tagStartCondition", - "xcodeVersion" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[scmPullRequests]", - "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" - ] + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesResponse" + } } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciProducts]", - "in": "query", - "description": "the fields to include for returned resources of type ciProducts", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "additionalRepositories", - "app", - "buildRuns", - "bundleId", - "createdDate", - "name", - "primaryRepositories", - "productType", - "workflows" - ] + } + } + } + }, + "post": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-betaGroups-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesRequest" } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[builds]", - "in": "query", - "description": "the fields to include for returned resources of type builds", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" - ] + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[builds]", - "in": "query", - "description": "maximum number of related builds returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" + } }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "builds", - "destinationBranch", - "product", - "pullRequest", - "sourceBranchOrTag", - "workflow" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", + } + }, + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { @@ -59769,6 +60115,28 @@ } } }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-betaGroups-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { "403": { "description": "Forbidden error", "content": { @@ -59789,15 +60157,18 @@ } } }, - "200": { - "description": "List of CiBuildRuns", + "409": { + "description": "Request entity error(s)", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiBuildRunsResponse" + "$ref": "#/components/schemas/ErrorResponse" } } } + }, + "204": { + "description": "Success (no content)" } } }, @@ -59814,96 +60185,36 @@ } ] }, - "/v1/ciProducts/{id}/relationships/primaryRepositories": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciProducts/{id}/primaryRepositories": { + "/v1/betaTesters/{id}/betaGroups": { "get": { "tags": [ - "CiProducts" + "BetaTesters" ], - "operationId": "ciProducts-primaryRepositories-get_to_many_related", + "operationId": "betaTesters-betaGroups-get_to_many_related", "parameters": [ { - "name": "filter[id]", - "in": "query", - "description": "filter by id(s)", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmGitReferences]", + "name": "fields[betaGroups]", "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", + "description": "the fields to include for returned resources of type betaGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "canonicalName", - "isDeleted", - "kind", + "app", + "betaTesters", + "builds", + "createdDate", + "feedbackEnabled", + "hasAccessToAllBuilds", + "iosBuildsAvailableForAppleSiliconMac", + "isInternalGroup", "name", - "repository" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmProviders]", - "in": "query", - "description": "the fields to include for returned resources of type scmProviders", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "repositories", - "scmProviderType", - "url" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmRepositories]", - "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" + "publicLink", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimit", + "publicLinkLimitEnabled" ] } }, @@ -59919,23 +60230,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "scmProvider" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -59970,11 +60264,11 @@ } }, "200": { - "description": "List of ScmRepositories", + "description": "List of BetaGroups with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmRepositoriesResponse" + "$ref": "#/components/schemas/BetaGroupsWithoutIncludesResponse" } } } @@ -59994,144 +60288,13 @@ } ] }, - "/v1/ciProducts/{id}/relationships/workflows": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciProducts/{id}/workflows": { + "/v1/betaTesters/{id}/relationships/builds": { "get": { "tags": [ - "CiProducts" + "BetaTesters" ], - "operationId": "ciProducts-workflows-get_to_many_related", + "operationId": "betaTesters-builds-get_to_many_relationship", "parameters": [ - { - "name": "fields[ciXcodeVersions]", - "in": "query", - "description": "the fields to include for returned resources of type ciXcodeVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "macOsVersions", - "name", - "testDestinations", - "version" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciWorkflows]", - "in": "query", - "description": "the fields to include for returned resources of type ciWorkflows", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actions", - "branchStartCondition", - "buildRuns", - "clean", - "containerFilePath", - "description", - "isEnabled", - "isLockedForEditing", - "lastModifiedDate", - "macOsVersion", - "name", - "product", - "pullRequestStartCondition", - "repository", - "scheduledStartCondition", - "tagStartCondition", - "xcodeVersion" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciMacOsVersions]", - "in": "query", - "description": "the fields to include for returned resources of type ciMacOsVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "name", - "version", - "xcodeVersions" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciProducts]", - "in": "query", - "description": "the fields to include for returned resources of type ciProducts", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "additionalRepositories", - "app", - "buildRuns", - "bundleId", - "createdDate", - "name", - "primaryRepositories", - "productType", - "workflows" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmRepositories]", - "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "limit", "in": "query", @@ -60141,25 +60304,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "macOsVersion", - "product", - "repository", - "xcodeVersion" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -60194,203 +60338,141 @@ } }, "200": { - "description": "List of CiWorkflows", + "description": "List of related linkages", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiWorkflowsResponse" + "$ref": "#/components/schemas/BetaTesterBuildsLinkagesResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "post": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-builds-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBuildsLinkagesRequest" + } + } }, - "style": "simple", "required": true - } - ] - }, - "/v1/ciWorkflows/{id}/relationships/buildRuns": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - "style": "simple", - "required": true - } - ] - }, - "/v1/ciWorkflows/{id}/buildRuns": { - "get": { - "tags": [ - "CiWorkflows" - ], - "operationId": "ciWorkflows-buildRuns-get_to_many_related", - "parameters": [ - { - "name": "filter[builds]", - "in": "query", - "description": "filter by id(s) of related 'builds'", - "schema": { - "type": "array", - "items": { - "type": "string" + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[scmGitReferences]", - "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[ciBuildRuns]", - "in": "query", - "description": "the fields to include for returned resources of type ciBuildRuns", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actions", - "buildRun", - "builds", - "cancelReason", - "clean", - "completionStatus", - "createdDate", - "destinationBranch", - "destinationCommit", - "executionProgress", - "finishedDate", - "isPullRequestBuild", - "issueCounts", - "number", - "product", - "pullRequest", - "sourceBranchOrTag", - "sourceCommit", - "startReason", - "startedDate", - "workflow" - ] + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-builds-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BetaTesterBuildsLinkagesRequest" } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[ciWorkflows]", - "in": "query", - "description": "the fields to include for returned resources of type ciWorkflows", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "actions", - "branchStartCondition", - "buildRuns", - "clean", - "containerFilePath", - "description", - "isEnabled", - "isLockedForEditing", - "lastModifiedDate", - "macOsVersion", - "name", - "product", - "pullRequestStartCondition", - "repository", - "scheduledStartCondition", - "tagStartCondition", - "xcodeVersion" - ] + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[scmPullRequests]", - "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[ciProducts]", - "in": "query", - "description": "the fields to include for returned resources of type ciProducts", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "additionalRepositories", - "app", - "buildRuns", - "bundleId", - "createdDate", - "name", - "primaryRepositories", - "productType", - "workflows" - ] + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/betaTesters/{id}/builds": { + "get": { + "tags": [ + "BetaTesters" + ], + "operationId": "betaTesters-builds-get_to_many_related", + "parameters": [ { "name": "fields[builds]", "in": "query", @@ -60439,37 +60521,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "limit[builds]", - "in": "query", - "description": "maximum number of related builds returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "builds", - "destinationBranch", - "product", - "pullRequest", - "sourceBranchOrTag", - "workflow" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -60504,11 +60555,11 @@ } }, "200": { - "description": "List of CiBuildRuns", + "description": "List of Builds with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiBuildRunsResponse" + "$ref": "#/components/schemas/BuildsWithoutIncludesResponse" } } } @@ -60528,7 +60579,7 @@ } ] }, - "/v1/ciWorkflows/{id}/relationships/repository": { + "/v1/buildBetaDetails/{id}/relationships/build": { "parameters": [ { "name": "id", @@ -60542,86 +60593,46 @@ } ] }, - "/v1/ciWorkflows/{id}/repository": { + "/v1/buildBetaDetails/{id}/build": { "get": { "tags": [ - "CiWorkflows" + "BuildBetaDetails" ], - "operationId": "ciWorkflows-repository-get_to_one_related", + "operationId": "buildBetaDetails-build-get_to_one_related", "parameters": [ { - "name": "fields[scmGitReferences]", - "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmProviders]", - "in": "query", - "description": "the fields to include for returned resources of type scmProviders", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "repositories", - "scmProviderType", - "url" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[scmRepositories]", - "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "include", + "name": "fields[builds]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type builds", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "scmProvider" + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" ] } }, @@ -60661,11 +60672,11 @@ } }, "200": { - "description": "Single ScmRepository", + "description": "Single Build with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ScmRepositoryResponse" + "$ref": "#/components/schemas/BuildWithoutIncludesResponse" } } } @@ -60685,7 +60696,7 @@ } ] }, - "/v1/ciXcodeVersions/{id}/relationships/macOsVersions": { + "/v1/buildBundles/{id}/relationships/appClipDomainCacheStatus": { "parameters": [ { "name": "id", @@ -60699,80 +60710,24 @@ } ] }, - "/v1/ciXcodeVersions/{id}/macOsVersions": { + "/v1/buildBundles/{id}/appClipDomainCacheStatus": { "get": { "tags": [ - "CiXcodeVersions" + "BuildBundles" ], - "operationId": "ciXcodeVersions-macOsVersions-get_to_many_related", + "operationId": "buildBundles-appClipDomainCacheStatus-get_to_one_related", "parameters": [ { - "name": "fields[ciXcodeVersions]", - "in": "query", - "description": "the fields to include for returned resources of type ciXcodeVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "macOsVersions", - "name", - "testDestinations", - "version" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[ciMacOsVersions]", - "in": "query", - "description": "the fields to include for returned resources of type ciMacOsVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "name", - "version", - "xcodeVersions" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[xcodeVersions]", - "in": "query", - "description": "maximum number of related xcodeVersions returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[appClipDomainStatuses]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type appClipDomainStatuses", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "xcodeVersions" + "domains", + "lastUpdatedDate" ] } }, @@ -60812,11 +60767,11 @@ } }, "200": { - "description": "List of CiMacOsVersions", + "description": "Single AppClipDomainStatus", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CiMacOsVersionsResponse" + "$ref": "#/components/schemas/AppClipDomainStatusResponse" } } } @@ -60836,7 +60791,7 @@ } ] }, - "/v1/customerReviews/{id}/relationships/response": { + "/v1/buildBundles/{id}/relationships/appClipDomainDebugStatus": { "parameters": [ { "name": "id", @@ -60850,64 +60805,24 @@ } ] }, - "/v1/customerReviews/{id}/response": { + "/v1/buildBundles/{id}/appClipDomainDebugStatus": { "get": { "tags": [ - "CustomerReviews" + "BuildBundles" ], - "operationId": "customerReviews-response-get_to_one_related", + "operationId": "buildBundles-appClipDomainDebugStatus-get_to_one_related", "parameters": [ { - "name": "fields[customerReviews]", - "in": "query", - "description": "the fields to include for returned resources of type customerReviews", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "body", - "createdDate", - "rating", - "response", - "reviewerNickname", - "territory", - "title" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[customerReviewResponses]", - "in": "query", - "description": "the fields to include for returned resources of type customerReviewResponses", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "lastModifiedDate", - "responseBody", - "review", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "include", + "name": "fields[appClipDomainStatuses]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type appClipDomainStatuses", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "review" + "domains", + "lastUpdatedDate" ] } }, @@ -60947,11 +60862,11 @@ } }, "200": { - "description": "Single CustomerReviewResponse", + "description": "Single AppClipDomainStatus", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CustomerReviewResponseV1Response" + "$ref": "#/components/schemas/AppClipDomainStatusResponse" } } } @@ -60971,15 +60886,65 @@ } ] }, - "/v1/diagnosticSignatures/{id}/logs": { - "get": { - "tags": [ - "DiagnosticSignatures" - ], - "operationId": "diagnosticSignatures-logs-get_to_many_related", - "parameters": [ - { - "name": "limit", + "/v1/buildBundles/{id}/relationships/betaAppClipInvocations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/buildBundles/{id}/betaAppClipInvocations": { + "get": { + "tags": [ + "BuildBundles" + ], + "operationId": "buildBundles-betaAppClipInvocations-get_to_many_related", + "parameters": [ + { + "name": "fields[betaAppClipInvocations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppClipInvocations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations", + "buildBundle", + "url" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaAppClipInvocationLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaAppClipInvocationLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaAppClipInvocation", + "locale", + "title" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", "in": "query", "description": "maximum resources per page", "schema": { @@ -60987,6 +60952,32 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[betaAppClipInvocationLocalizations]", + "in": "query", + "description": "maximum number of related betaAppClipInvocationLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -61021,11 +61012,11 @@ } }, "200": { - "description": "List of DiagnosticLogs", + "description": "List of BetaAppClipInvocations", "content": { - "application/vnd.apple.diagnostic-logs+json": { + "application/json": { "schema": { - "$ref": "#/components/schemas/diagnosticLogs" + "$ref": "#/components/schemas/BetaAppClipInvocationsResponse" } } } @@ -61045,7 +61036,7 @@ } ] }, - "/v1/endUserLicenseAgreements/{id}/relationships/territories": { + "/v1/buildBundles/{id}/relationships/buildBundleFileSizes": { "parameters": [ { "name": "id", @@ -61059,23 +61050,26 @@ } ] }, - "/v1/endUserLicenseAgreements/{id}/territories": { + "/v1/buildBundles/{id}/buildBundleFileSizes": { "get": { "tags": [ - "EndUserLicenseAgreements" + "BuildBundles" ], - "operationId": "endUserLicenseAgreements-territories-get_to_many_related", + "operationId": "buildBundles-buildBundleFileSizes-get_to_many_related", "parameters": [ { - "name": "fields[territories]", + "name": "fields[buildBundleFileSizes]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type buildBundleFileSizes", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "deviceModel", + "downloadBytes", + "installBytes", + "osVersion" ] } }, @@ -61125,11 +61119,11 @@ } }, "200": { - "description": "List of Territories", + "description": "List of BuildBundleFileSizes", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoriesResponse" + "$ref": "#/components/schemas/BuildBundleFileSizesResponse" } } } @@ -61149,22 +61143,85 @@ } ] }, - "/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions": { + "/v1/builds/{id}/relationships/app": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/builds/{id}/app": { "get": { "tags": [ - "GameCenterEnabledVersions" + "Builds" ], - "operationId": "gameCenterEnabledVersions-compatibleVersions-get_to_many_relationship", + "operationId": "builds-app-get_to_one_related", "parameters": [ { - "name": "limit", + "name": "fields[apps]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type apps", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } }, - "style": "form" + "style": "form", + "explode": false } ], "responses": { @@ -61199,34 +61256,48 @@ } }, "200": { - "description": "List of related linkages", + "description": "Single App with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse" + "$ref": "#/components/schemas/AppWithoutIncludesResponse" } } } } } }, - "post": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/builds/{id}/relationships/appEncryptionDeclaration": { + "get": { "tags": [ - "GameCenterEnabledVersions" + "Builds" ], - "operationId": "gameCenterEnabledVersions-compatibleVersions-create_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + "operationId": "builds-appEncryptionDeclaration-get_to_one_relationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } } }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -61247,32 +61318,29 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Related linkage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/BuildAppEncryptionDeclarationLinkageResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, "patch": { "tags": [ - "GameCenterEnabledVersions" + "Builds" ], - "operationId": "gameCenterEnabledVersions-compatibleVersions-replace_to_many_relationship", + "operationId": "builds-appEncryptionDeclaration-update_to_one_relationship", "requestBody": { - "description": "List of related linkages", + "description": "Related linkage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + "$ref": "#/components/schemas/BuildAppEncryptionDeclarationLinkageRequest" } } }, @@ -61314,23 +61382,70 @@ } } }, - "delete": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/builds/{id}/appEncryptionDeclaration": { + "get": { "tags": [ - "GameCenterEnabledVersions" + "Builds" ], - "operationId": "gameCenterEnabledVersions-compatibleVersions-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + "operationId": "builds-appEncryptionDeclaration-get_to_one_related", + "parameters": [ + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appDescription", + "appEncryptionDeclarationDocument", + "appEncryptionDeclarationState", + "availableOnFrenchStore", + "builds", + "codeValue", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "createdDate", + "documentName", + "documentType", + "documentUrl", + "exempt", + "platform", + "uploadedDate", + "usesEncryption" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } } }, - "required": true - }, - "responses": { "403": { "description": "Forbidden error", "content": { @@ -61351,18 +61466,15 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "Single AppEncryptionDeclaration with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/AppEncryptionDeclarationWithoutIncludesResponse" } } } - }, - "204": { - "description": "Success (no content)" } } }, @@ -61379,25 +61491,49 @@ } ] }, - "/v1/gameCenterEnabledVersions/{id}/compatibleVersions": { + "/v1/builds/{id}/relationships/appStoreVersion": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/builds/{id}/appStoreVersion": { "get": { "tags": [ - "GameCenterEnabledVersions" + "Builds" ], - "operationId": "gameCenterEnabledVersions-compatibleVersions-get_to_many_related", + "operationId": "builds-appStoreVersion-get_to_one_related", "parameters": [ { - "name": "filter[platform]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "filter by attribute 'platform'", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "IOS", - "MAC_OS", - "TV_OS" + "app", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -61405,55 +61541,72 @@ "explode": false }, { - "name": "filter[versionString]", - "in": "query", - "description": "filter by attribute 'versionString'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[app]", + "name": "fields[ageRatingDeclarations]", "in": "query", - "description": "filter by id(s) of related 'app'", + "description": "the fields to include for returned resources of type ageRatingDeclarations", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" + ] } }, "style": "form", "explode": false }, { - "name": "filter[id]", + "name": "fields[appStoreVersionSubmissions]", "in": "query", - "description": "filter by id(s)", + "description": "the fields to include for returned resources of type appStoreVersionSubmissions", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appStoreVersion" + ] } }, "style": "form", "explode": false }, { - "name": "sort", + "name": "fields[appStoreReviewDetails]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type appStoreReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "versionString", - "-versionString" + "appStoreReviewAttachments", + "appStoreVersion", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" ] } }, @@ -61461,18 +61614,33 @@ "explode": false }, { - "name": "fields[gameCenterEnabledVersions]", + "name": "fields[appStoreVersions]", "in": "query", - "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "description": "the fields to include for returned resources of type appStoreVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ + "ageRatingDeclaration", "app", - "compatibleVersions", - "iconAsset", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", "platform", + "releaseType", + "routingAppCoverage", "versionString" ] } @@ -61492,6 +61660,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -61511,6 +61680,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -61538,49 +61708,196 @@ "explode": false }, { - "name": "limit", + "name": "fields[routingAppCoverages]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type routingAppCoverages", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "limit[compatibleVersions]", + "name": "fields[appClipDefaultExperiences]", "in": "query", - "description": "maximum number of related compatibleVersions returned (when they are included)", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", "schema": { - "type": "integer", - "maximum": 50 + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "include", + "name": "fields[appStoreVersionPhasedReleases]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "compatibleVersions" + "appStoreVersion", + "currentDayNumber", + "phasedReleaseState", + "startDate", + "totalPauseDuration" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appStoreVersionLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperiments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "routingAppCoverage" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { "$ref": "#/components/schemas/ErrorResponse" } } @@ -61607,11 +61924,11 @@ } }, "200": { - "description": "List of GameCenterEnabledVersions", + "description": "Single AppStoreVersion", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/GameCenterEnabledVersionsResponse" + "$ref": "#/components/schemas/AppStoreVersionResponse" } } } @@ -61631,7 +61948,7 @@ } ] }, - "/v1/inAppPurchaseAvailabilities/{id}/relationships/availableTerritories": { + "/v1/builds/{id}/relationships/betaAppReviewSubmission": { "parameters": [ { "name": "id", @@ -61645,38 +61962,30 @@ } ] }, - "/v1/inAppPurchaseAvailabilities/{id}/availableTerritories": { + "/v1/builds/{id}/betaAppReviewSubmission": { "get": { "tags": [ - "InAppPurchaseAvailabilities" + "Builds" ], - "operationId": "inAppPurchaseAvailabilities-availableTerritories-get_to_many_related", + "operationId": "builds-betaAppReviewSubmission-get_to_one_related", "parameters": [ { - "name": "fields[territories]", + "name": "fields[betaAppReviewSubmissions]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type betaAppReviewSubmissions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "betaReviewState", + "build", + "submittedDate" ] } }, "style": "form", "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" } ], "responses": { @@ -61711,11 +62020,11 @@ } }, "200": { - "description": "List of Territories", + "description": "Single BetaAppReviewSubmission with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoriesResponse" + "$ref": "#/components/schemas/BetaAppReviewSubmissionWithoutIncludesResponse" } } } @@ -61735,7 +62044,7 @@ } ] }, - "/v1/inAppPurchasePriceSchedules/{id}/relationships/automaticPrices": { + "/v1/builds/{id}/relationships/betaBuildLocalizations": { "parameters": [ { "name": "id", @@ -61749,77 +62058,25 @@ } ] }, - "/v1/inAppPurchasePriceSchedules/{id}/automaticPrices": { + "/v1/builds/{id}/betaBuildLocalizations": { "get": { "tags": [ - "InAppPurchasePriceSchedules" + "Builds" ], - "operationId": "inAppPurchasePriceSchedules-automaticPrices-get_to_many_related", + "operationId": "builds-betaBuildLocalizations-get_to_many_related", "parameters": [ { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customerPrice", - "inAppPurchaseV2", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePrices]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "endDate", - "inAppPurchasePricePoint", - "inAppPurchaseV2", - "manual", - "startDate", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[territories]", + "name": "fields[betaBuildLocalizations]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type betaBuildLocalizations", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "build", + "locale", + "whatsNew" ] } }, @@ -61835,23 +62092,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchasePricePoint", - "territory" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -61886,11 +62126,11 @@ } }, "200": { - "description": "List of InAppPurchasePrices", + "description": "List of BetaBuildLocalizations with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePricesResponse" + "$ref": "#/components/schemas/BetaBuildLocalizationsWithoutIncludesResponse" } } } @@ -61910,7 +62150,111 @@ } ] }, - "/v1/inAppPurchasePriceSchedules/{id}/relationships/baseTerritory": { + "/v1/builds/{id}/relationships/betaGroups": { + "post": { + "tags": [ + "Builds" + ], + "operationId": "builds-betaGroups-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "Builds" + ], + "operationId": "builds-betaGroups-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildBetaGroupsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, "parameters": [ { "name": "id", @@ -61924,23 +62268,40 @@ } ] }, - "/v1/inAppPurchasePriceSchedules/{id}/baseTerritory": { + "/v1/builds/{id}/relationships/buildBetaDetail": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/builds/{id}/buildBetaDetail": { "get": { "tags": [ - "InAppPurchasePriceSchedules" + "Builds" ], - "operationId": "inAppPurchasePriceSchedules-baseTerritory-get_to_one_related", + "operationId": "builds-buildBetaDetail-get_to_one_related", "parameters": [ { - "name": "fields[territories]", + "name": "fields[buildBetaDetails]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type buildBetaDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "autoNotifyEnabled", + "build", + "externalBuildState", + "internalBuildState" ] } }, @@ -61980,11 +62341,11 @@ } }, "200": { - "description": "Single Territory", + "description": "Single BuildBetaDetail with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoryResponse" + "$ref": "#/components/schemas/BuildBetaDetailWithoutIncludesResponse" } } } @@ -62004,7 +62365,7 @@ } ] }, - "/v1/inAppPurchasePriceSchedules/{id}/relationships/manualPrices": { + "/v1/builds/{id}/relationships/diagnosticSignatures": { "parameters": [ { "name": "id", @@ -62018,61 +62379,24 @@ } ] }, - "/v1/inAppPurchasePriceSchedules/{id}/manualPrices": { + "/v1/builds/{id}/diagnosticSignatures": { "get": { "tags": [ - "InAppPurchasePriceSchedules" + "Builds" ], - "operationId": "inAppPurchasePriceSchedules-manualPrices-get_to_many_related", + "operationId": "builds-diagnosticSignatures-get_to_many_related", "parameters": [ { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customerPrice", - "inAppPurchaseV2", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePrices]", + "name": "filter[diagnosticType]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePrices", + "description": "filter by attribute 'diagnosticType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "endDate", - "inAppPurchasePricePoint", - "inAppPurchaseV2", - "manual", - "startDate", - "territory" + "DISK_WRITES", + "HANGS" ] } }, @@ -62080,15 +62404,18 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[diagnosticSignatures]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type diagnosticSignatures", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "diagnosticType", + "logs", + "signature", + "weight" ] } }, @@ -62104,23 +62431,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchasePricePoint", - "territory" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -62155,11 +62465,11 @@ } }, "200": { - "description": "List of InAppPurchasePrices", + "description": "List of DiagnosticSignatures", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePricesResponse" + "$ref": "#/components/schemas/DiagnosticSignaturesResponse" } } } @@ -62179,7 +62489,7 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot": { + "/v1/builds/{id}/relationships/icons": { "parameters": [ { "name": "id", @@ -62193,32 +62503,25 @@ } ] }, - "/v2/inAppPurchases/{id}/appStoreReviewScreenshot": { + "/v1/builds/{id}/icons": { "get": { "tags": [ - "InAppPurchases" + "Builds" ], - "operationId": "inAppPurchases-appStoreReviewScreenshot-get_to_one_related", + "operationId": "builds-icons-get_to_many_related", "parameters": [ { - "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "name": "fields[buildIcons]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "description": "the fields to include for returned resources of type buildIcons", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "inAppPurchaseV2", - "sourceFileChecksum", - "uploadOperations", - "uploaded" + "iconAsset", + "iconType", + "name" ] } }, @@ -62226,51 +62529,14 @@ "explode": false }, { - "name": "fields[inAppPurchases]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchaseV2" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" } ], "responses": { @@ -62305,11 +62571,11 @@ } }, "200": { - "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "description": "List of BuildIcons with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + "$ref": "#/components/schemas/BuildIconsWithoutIncludesResponse" } } } @@ -62329,93 +62595,22 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/content": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v2/inAppPurchases/{id}/content": { + "/v1/builds/{id}/relationships/individualTesters": { "get": { "tags": [ - "InAppPurchases" + "Builds" ], - "operationId": "inAppPurchases-content-get_to_one_related", + "operationId": "builds-individualTesters-get_to_many_relationship", "parameters": [ { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchaseContents]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseContents", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "fileName", - "fileSize", - "inAppPurchaseV2", - "lastModifiedDate", - "url" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "include", + "name": "limit", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchaseV2" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" } ], "responses": { @@ -62450,31 +62645,121 @@ } }, "200": { - "description": "Single InAppPurchaseContent", + "description": "List of related linkages", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseContentResponse" + "$ref": "#/components/schemas/BuildIndividualTestersLinkagesResponse" } } } } } }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + "post": { + "tags": [ + "Builds" + ], + "operationId": "builds-individualTesters-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildIndividualTestersLinkagesRequest" + } + } }, - "style": "simple", "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } } - ] - }, - "/v2/inAppPurchases/{id}/relationships/iapPriceSchedule": { + }, + "delete": { + "tags": [ + "Builds" + ], + "operationId": "builds-individualTesters-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildIndividualTestersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, "parameters": [ { "name": "id", @@ -62488,94 +62773,29 @@ } ] }, - "/v2/inAppPurchases/{id}/iapPriceSchedule": { + "/v1/builds/{id}/individualTesters": { "get": { "tags": [ - "InAppPurchases" + "Builds" ], - "operationId": "inAppPurchases-iapPriceSchedule-get_to_one_related", + "operationId": "builds-individualTesters-get_to_many_related", "parameters": [ { - "name": "fields[inAppPurchasePrices]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "endDate", - "inAppPurchasePricePoint", - "inAppPurchaseV2", - "manual", - "startDate", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePriceSchedules]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[territories]", + "name": "fields[betaTesters]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type betaTesters", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "apps", + "betaGroups", + "builds", + "email", + "firstName", + "inviteType", + "lastName" ] } }, @@ -62583,43 +62803,14 @@ "explode": false }, { - "name": "limit[manualPrices]", - "in": "query", - "description": "maximum number of related manualPrices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[automaticPrices]", + "name": "limit", "in": "query", - "description": "maximum number of related automaticPrices returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "automaticPrices", - "baseTerritory", - "inAppPurchase", - "manualPrices" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -62654,11 +62845,11 @@ } }, "200": { - "description": "Single InAppPurchasePriceSchedule", + "description": "List of BetaTesters with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" + "$ref": "#/components/schemas/BetaTestersWithoutIncludesResponse" } } } @@ -62678,55 +62869,42 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v2/inAppPurchases/{id}/inAppPurchaseAvailability": { + "/v1/builds/{id}/perfPowerMetrics": { "get": { "tags": [ - "InAppPurchases" + "Builds" ], - "operationId": "inAppPurchases-inAppPurchaseAvailability-get_to_one_related", + "operationId": "builds-perfPowerMetrics-get_to_many_related", "parameters": [ { - "name": "fields[inAppPurchaseAvailabilities]", + "name": "filter[deviceType]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", + "description": "filter by attribute 'deviceType'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "availableInNewTerritories", - "availableTerritories", - "inAppPurchase" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[territories]", + "name": "filter[metricType]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "filter by attribute 'metricType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "DISK", + "HANG", + "BATTERY", + "LAUNCH", + "MEMORY", + "ANIMATION", + "TERMINATION" ] } }, @@ -62734,25 +62912,15 @@ "explode": false }, { - "name": "limit[availableTerritories]", - "in": "query", - "description": "maximum number of related availableTerritories returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", + "name": "filter[platform]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "filter by attribute 'platform'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "availableTerritories" + "IOS" ] } }, @@ -62792,11 +62960,11 @@ } }, "200": { - "description": "Single InAppPurchaseAvailability", + "description": "List of PerfPowerMetrics", "content": { - "application/json": { + "application/vnd.apple.xcode-metrics+json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" + "$ref": "#/components/schemas/xcodeMetrics" } } } @@ -62816,7 +62984,7 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/inAppPurchaseLocalizations": { + "/v1/builds/{id}/relationships/preReleaseVersion": { "parameters": [ { "name": "id", @@ -62830,84 +62998,26 @@ } ] }, - "/v2/inAppPurchases/{id}/inAppPurchaseLocalizations": { + "/v1/builds/{id}/preReleaseVersion": { "get": { "tags": [ - "InAppPurchases" + "Builds" ], - "operationId": "inAppPurchases-inAppPurchaseLocalizations-get_to_many_related", + "operationId": "builds-preReleaseVersion-get_to_one_related", "parameters": [ { - "name": "fields[inAppPurchaseLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "description", - "inAppPurchaseV2", - "locale", - "name", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchases]", + "name": "fields[preReleaseVersions]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "the fields to include for returned resources of type preReleaseVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchaseV2" + "builds", + "platform", + "version" ] } }, @@ -62947,11 +63057,11 @@ } }, "200": { - "description": "List of InAppPurchaseLocalizations", + "description": "Single PrereleaseVersion with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/InAppPurchaseLocalizationsResponse" + "$ref": "#/components/schemas/PrereleaseVersionWithoutIncludesResponse" } } } @@ -62971,7 +63081,7 @@ } ] }, - "/v2/inAppPurchases/{id}/relationships/pricePoints": { + "/v1/bundleIds/{id}/relationships/app": { "parameters": [ { "name": "id", @@ -62985,405 +63095,17 @@ } ] }, - "/v2/inAppPurchases/{id}/pricePoints": { + "/v1/bundleIds/{id}/app": { "get": { "tags": [ - "InAppPurchases" + "BundleIds" ], - "operationId": "inAppPurchases-pricePoints-get_to_many_related", + "operationId": "bundleIds-app-get_to_one_related", "parameters": [ { - "name": "filter[priceTier]", + "name": "fields[apps]", "in": "query", - "description": "filter by attribute 'priceTier'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchasePricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchasePricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customerPrice", - "inAppPurchaseV2", - "priceTier", - "proceeds", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[territories]", - "in": "query", - "description": "the fields to include for returned resources of type territories", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "currency" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 8000 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "territory" - ] - } - }, - "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of InAppPurchasePricePoints", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/InAppPurchasePricePointsResponse" - } - }, - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v2/inAppPurchases/{id}/relationships/promotedPurchase": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v2/inAppPurchases/{id}/promotedPurchase": { - "get": { - "tags": [ - "InAppPurchases" - ], - "operationId": "inAppPurchases-promotedPurchase-get_to_one_related", - "parameters": [ - { - "name": "fields[promotedPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptions]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[inAppPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", - "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[promotedPurchaseImages]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchaseImages", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "promotedPurchase", - "sourceFileChecksum", - "state", - "uploadOperations", - "uploaded" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit[promotionImages]", - "in": "query", - "description": "maximum number of related promotionImages returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "inAppPurchaseV2", - "promotionImages", - "subscription" - ] - } - }, - "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single PromotedPurchase", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PromotedPurchaseResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/preReleaseVersions/{id}/relationships/app": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/preReleaseVersions/{id}/app": { - "get": { - "tags": [ - "PreReleaseVersions" - ], - "operationId": "preReleaseVersions-app-get_to_one_related", - "parameters": [ - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { @@ -63392,6 +63114,7 @@ "appAvailability", "appClips", "appCustomProductPages", + "appEncryptionDeclarations", "appEvents", "appInfos", "appPricePoints", @@ -63411,6 +63134,7 @@ "contentRightsDeclaration", "customerReviews", "endUserLicenseAgreement", + "gameCenterDetail", "gameCenterEnabledVersions", "inAppPurchases", "inAppPurchasesV2", @@ -63470,11 +63194,11 @@ } }, "200": { - "description": "Single App", + "description": "Single App with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppResponse" + "$ref": "#/components/schemas/AppWithoutIncludesResponse" } } } @@ -63494,7 +63218,7 @@ } ] }, - "/v1/preReleaseVersions/{id}/relationships/builds": { + "/v1/bundleIds/{id}/relationships/bundleIdCapabilities": { "parameters": [ { "name": "id", @@ -63508,46 +63232,25 @@ } ] }, - "/v1/preReleaseVersions/{id}/builds": { + "/v1/bundleIds/{id}/bundleIdCapabilities": { "get": { "tags": [ - "PreReleaseVersions" + "BundleIds" ], - "operationId": "preReleaseVersions-builds-get_to_many_related", + "operationId": "bundleIds-bundleIdCapabilities-get_to_many_related", "parameters": [ { - "name": "fields[builds]", + "name": "fields[bundleIdCapabilities]", "in": "query", - "description": "the fields to include for returned resources of type builds", + "description": "the fields to include for returned resources of type bundleIdCapabilities", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appEncryptionDeclaration", - "appStoreVersion", - "betaAppReviewSubmission", - "betaBuildLocalizations", - "betaGroups", - "buildAudienceType", - "buildBetaDetail", - "buildBundles", - "computedMinMacOsVersion", - "diagnosticSignatures", - "expirationDate", - "expired", - "iconAssetToken", - "icons", - "individualTesters", - "lsMinimumSystemVersion", - "minOsVersion", - "perfPowerMetrics", - "preReleaseVersion", - "processingState", - "uploadedDate", - "usesNonExemptEncryption", - "version" + "bundleId", + "capabilityType", + "settings" ] } }, @@ -63597,11 +63300,11 @@ } }, "200": { - "description": "List of Builds", + "description": "List of BundleIdCapabilities with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BuildsResponse" + "$ref": "#/components/schemas/BundleIdCapabilitiesWithoutIncludesResponse" } } } @@ -63621,7 +63324,7 @@ } ] }, - "/v1/profiles/{id}/relationships/bundleId": { + "/v1/bundleIds/{id}/relationships/profiles": { "parameters": [ { "name": "id", @@ -63635,34 +63338,48 @@ } ] }, - "/v1/profiles/{id}/bundleId": { + "/v1/bundleIds/{id}/profiles": { "get": { "tags": [ - "Profiles" + "BundleIds" ], - "operationId": "profiles-bundleId-get_to_one_related", + "operationId": "bundleIds-profiles-get_to_many_related", "parameters": [ { - "name": "fields[bundleIds]", + "name": "fields[profiles]", "in": "query", - "description": "the fields to include for returned resources of type bundleIds", + "description": "the fields to include for returned resources of type profiles", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "bundleIdCapabilities", - "identifier", + "bundleId", + "certificates", + "createdDate", + "devices", + "expirationDate", "name", "platform", - "profiles", - "seedId" + "profileContent", + "profileState", + "profileType", + "uuid" ] } }, "style": "form", "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" } ], "responses": { @@ -63697,11 +63414,11 @@ } }, "200": { - "description": "Single BundleId", + "description": "List of Profiles with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/BundleIdResponse" + "$ref": "#/components/schemas/ProfilesWithoutIncludesResponse" } } } @@ -63721,7 +63438,7 @@ } ] }, - "/v1/profiles/{id}/relationships/certificates": { + "/v1/ciBuildActions/{id}/relationships/artifacts": { "parameters": [ { "name": "id", @@ -63735,30 +63452,26 @@ } ] }, - "/v1/profiles/{id}/certificates": { + "/v1/ciBuildActions/{id}/artifacts": { "get": { "tags": [ - "Profiles" + "CiBuildActions" ], - "operationId": "profiles-certificates-get_to_many_related", + "operationId": "ciBuildActions-artifacts-get_to_many_related", "parameters": [ { - "name": "fields[certificates]", + "name": "fields[ciArtifacts]", "in": "query", - "description": "the fields to include for returned resources of type certificates", + "description": "the fields to include for returned resources of type ciArtifacts", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "certificateContent", - "certificateType", - "csrContent", - "displayName", - "expirationDate", - "name", - "platform", - "serialNumber" + "downloadUrl", + "fileName", + "fileSize", + "fileType" ] } }, @@ -63808,11 +63521,11 @@ } }, "200": { - "description": "List of Certificates", + "description": "List of CiArtifacts", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CertificatesResponse" + "$ref": "#/components/schemas/CiArtifactsResponse" } } } @@ -63832,7 +63545,7 @@ } ] }, - "/v1/profiles/{id}/relationships/devices": { + "/v1/ciBuildActions/{id}/relationships/buildRun": { "parameters": [ { "name": "id", @@ -63846,29 +63559,27 @@ } ] }, - "/v1/profiles/{id}/devices": { + "/v1/ciBuildActions/{id}/buildRun": { "get": { "tags": [ - "Profiles" + "CiBuildActions" ], - "operationId": "profiles-devices-get_to_many_related", + "operationId": "ciBuildActions-buildRun-get_to_one_related", "parameters": [ { - "name": "fields[devices]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type devices", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "addedDate", - "deviceClass", - "model", + "canonicalName", + "isDeleted", + "kind", "name", - "platform", - "status", - "udid" + "repository" ] } }, @@ -63876,14 +63587,193 @@ "explode": false }, { - "name": "limit", + "name": "fields[ciBuildRuns]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type ciBuildRuns", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actions", + "buildRun", + "builds", + "cancelReason", + "clean", + "completionStatus", + "createdDate", + "destinationBranch", + "destinationCommit", + "executionProgress", + "finishedDate", + "isPullRequestBuild", + "issueCounts", + "number", + "product", + "pullRequest", + "sourceBranchOrTag", + "sourceCommit", + "startReason", + "startedDate", + "workflow" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[ciWorkflows]", + "in": "query", + "description": "the fields to include for returned resources of type ciWorkflows", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "actions", + "branchStartCondition", + "buildRuns", + "clean", + "containerFilePath", + "description", + "isEnabled", + "isLockedForEditing", + "lastModifiedDate", + "macOsVersion", + "name", + "product", + "pullRequestStartCondition", + "repository", + "scheduledStartCondition", + "tagStartCondition", + "xcodeVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "additionalRepositories", + "app", + "buildRuns", + "bundleId", + "createdDate", + "name", + "primaryRepositories", + "productType", + "workflows" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "builds", + "destinationBranch", + "product", + "pullRequest", + "sourceBranchOrTag", + "workflow" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -63918,11 +63808,11 @@ } }, "200": { - "description": "List of Devices", + "description": "Single CiBuildRun", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/DevicesResponse" + "$ref": "#/components/schemas/CiBuildRunResponse" } } } @@ -63942,7 +63832,7 @@ } ] }, - "/v1/promotedPurchases/{id}/relationships/promotionImages": { + "/v1/ciBuildActions/{id}/relationships/issues": { "parameters": [ { "name": "id", @@ -63956,54 +63846,26 @@ } ] }, - "/v1/promotedPurchases/{id}/promotionImages": { + "/v1/ciBuildActions/{id}/issues": { "get": { "tags": [ - "PromotedPurchases" + "CiBuildActions" ], - "operationId": "promotedPurchases-promotionImages-get_to_many_related", + "operationId": "ciBuildActions-issues-get_to_many_related", "parameters": [ { - "name": "fields[promotedPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[promotedPurchaseImages]", + "name": "fields[ciIssues]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchaseImages", + "description": "the fields to include for returned resources of type ciIssues", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "promotedPurchase", - "sourceFileChecksum", - "state", - "uploadOperations", - "uploaded" + "category", + "fileSource", + "issueType", + "message" ] } }, @@ -64019,22 +63881,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "promotedPurchase" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -64069,11 +63915,11 @@ } }, "200": { - "description": "List of PromotedPurchaseImages", + "description": "List of CiIssues", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseImagesResponse" + "$ref": "#/components/schemas/CiIssuesResponse" } } } @@ -64093,7 +63939,7 @@ } ] }, - "/v1/reviewSubmissions/{id}/relationships/items": { + "/v1/ciBuildActions/{id}/relationships/testResults": { "parameters": [ { "name": "id", @@ -64107,34 +63953,28 @@ } ] }, - "/v1/reviewSubmissions/{id}/items": { + "/v1/ciBuildActions/{id}/testResults": { "get": { "tags": [ - "ReviewSubmissions" + "CiBuildActions" ], - "operationId": "reviewSubmissions-items-get_to_many_related", + "operationId": "ciBuildActions-testResults-get_to_many_related", "parameters": [ { - "name": "fields[appStoreVersionExperiments]", + "name": "fields[ciTestResults]", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "the fields to include for returned resources of type ciTestResults", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreVersionExperimentTreatments", - "controlVersions", - "endDate", - "latestControlVersion", + "className", + "destinationTestResults", + "fileSource", + "message", "name", - "platform", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" + "status" ] } }, @@ -64142,101 +63982,123 @@ "explode": false }, { - "name": "fields[appStoreVersionExperiments]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreVersion", - "appStoreVersionExperimentTreatments", - "endDate", - "name", - "reviewRequired", - "startDate", - "started", - "state", - "trafficProportion" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[reviewSubmissionItems]", - "in": "query", - "description": "the fields to include for returned resources of type reviewSubmissionItems", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appCustomProductPageVersion", - "appEvent", - "appStoreVersion", - "appStoreVersionExperiment", - "appStoreVersionExperimentV2", - "removed", - "resolved", - "reviewSubmission", - "state" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } }, - { - "name": "fields[appStoreVersions]", - "in": "query", - "description": "the fields to include for returned resources of type appStoreVersions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "ageRatingDeclaration", - "app", - "appClipDefaultExperience", - "appStoreReviewDetail", - "appStoreState", - "appStoreVersionExperiments", - "appStoreVersionExperimentsV2", - "appStoreVersionLocalizations", - "appStoreVersionPhasedRelease", - "appStoreVersionSubmission", - "build", - "copyright", - "createdDate", - "customerReviews", - "downloadable", - "earliestReleaseDate", - "platform", - "releaseType", - "routingAppCoverage", - "versionString" - ] + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "200": { + "description": "List of CiTestResults", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CiTestResultsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/ciBuildRuns/{id}/relationships/actions": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/ciBuildRuns/{id}/actions": { + "get": { + "tags": [ + "CiBuildRuns" + ], + "operationId": "ciBuildRuns-actions-get_to_many_related", + "parameters": [ { - "name": "fields[appCustomProductPageVersions]", + "name": "fields[ciBuildRuns]", "in": "query", - "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "description": "the fields to include for returned resources of type ciBuildRuns", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appCustomProductPage", - "appCustomProductPageLocalizations", - "state", - "version" + "actions", + "buildRun", + "builds", + "cancelReason", + "clean", + "completionStatus", + "createdDate", + "destinationBranch", + "destinationCommit", + "executionProgress", + "finishedDate", + "isPullRequestBuild", + "issueCounts", + "number", + "product", + "pullRequest", + "sourceBranchOrTag", + "sourceCommit", + "startReason", + "startedDate", + "workflow" ] } }, @@ -64244,26 +64106,26 @@ "explode": false }, { - "name": "fields[appEvents]", + "name": "fields[ciBuildActions]", "in": "query", - "description": "the fields to include for returned resources of type appEvents", + "description": "the fields to include for returned resources of type ciBuildActions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "archivedTerritorySchedules", - "badge", - "deepLink", - "eventState", - "localizations", - "primaryLocale", - "priority", - "purchaseRequirement", - "purpose", - "referenceName", - "territorySchedules" + "actionType", + "artifacts", + "buildRun", + "completionStatus", + "executionProgress", + "finishedDate", + "isRequiredToPass", + "issueCounts", + "issues", + "name", + "startedDate", + "testResults" ] } }, @@ -64289,11 +64151,7 @@ "items": { "type": "string", "enum": [ - "appCustomProductPageVersion", - "appEvent", - "appStoreVersion", - "appStoreVersionExperiment", - "appStoreVersionExperimentV2" + "buildRun" ] } }, @@ -64333,11 +64191,11 @@ } }, "200": { - "description": "List of ReviewSubmissionItems", + "description": "List of CiBuildActions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ReviewSubmissionItemsResponse" + "$ref": "#/components/schemas/CiBuildActionsResponse" } } } @@ -64357,7 +64215,7 @@ } ] }, - "/v1/scmProviders/{id}/relationships/repositories": { + "/v1/ciBuildRuns/{id}/relationships/builds": { "parameters": [ { "name": "id", @@ -64371,40 +64229,43 @@ } ] }, - "/v1/scmProviders/{id}/repositories": { + "/v1/ciBuildRuns/{id}/builds": { "get": { "tags": [ - "ScmProviders" + "CiBuildRuns" ], - "operationId": "scmProviders-repositories-get_to_many_related", + "operationId": "ciBuildRuns-builds-get_to_many_related", "parameters": [ { - "name": "filter[id]", + "name": "filter[betaAppReviewSubmission.betaReviewState]", "in": "query", - "description": "filter by id(s)", + "description": "filter by attribute 'betaAppReviewSubmission.betaReviewState'", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "APPROVED" + ] } }, "style": "form", "explode": false }, { - "name": "fields[scmGitReferences]", + "name": "filter[buildAudienceType]", "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", + "description": "filter by attribute 'buildAudienceType'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" + "INTERNAL_ONLY", + "APP_STORE_ELIGIBLE" ] } }, @@ -64412,41 +64273,30 @@ "explode": false }, { - "name": "fields[scmProviders]", + "name": "filter[expired]", "in": "query", - "description": "the fields to include for returned resources of type scmProviders", + "description": "filter by attribute 'expired'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "repositories", - "scmProviderType", - "url" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[scmRepositories]", + "name": "filter[preReleaseVersion.platform]", "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", + "description": "filter by attribute 'preReleaseVersion.platform'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" + "IOS", + "MAC_OS", + "TV_OS" ] } }, @@ -64454,279 +64304,179 @@ "explode": false }, { - "name": "limit", + "name": "filter[preReleaseVersion.version]", "in": "query", - "description": "maximum resources per page", + "description": "filter by attribute 'preReleaseVersion.version'", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string" + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "include", + "name": "filter[processingState]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "filter by attribute 'processingState'", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "scmProvider" + "PROCESSING", + "FAILED", + "INVALID", + "VALID" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "filter[usesNonExemptEncryption]", + "in": "query", + "description": "filter by attribute 'usesNonExemptEncryption'", + "schema": { + "type": "array", + "items": { + "type": "string" } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "filter[version]", + "in": "query", + "description": "filter by attribute 'version'", + "schema": { + "type": "array", + "items": { + "type": "string" } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "List of ScmRepositories", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScmRepositoriesResponse" - } + { + "name": "filter[app]", + "in": "query", + "description": "filter by id(s) of related 'app'", + "schema": { + "type": "array", + "items": { + "type": "string" } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/scmRepositories/{id}/relationships/gitReferences": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + { + "name": "filter[appStoreVersion]", + "in": "query", + "description": "filter by id(s) of related 'appStoreVersion'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/scmRepositories/{id}/gitReferences": { - "get": { - "tags": [ - "ScmRepositories" - ], - "operationId": "scmRepositories-gitReferences-get_to_many_related", - "parameters": [ { - "name": "fields[scmGitReferences]", + "name": "filter[betaGroups]", "in": "query", - "description": "the fields to include for returned resources of type scmGitReferences", + "description": "filter by id(s) of related 'betaGroups'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "canonicalName", - "isDeleted", - "kind", - "name", - "repository" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "fields[scmRepositories]", + "name": "filter[preReleaseVersion]", "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", + "description": "filter by id(s) of related 'preReleaseVersion'", "schema": { "type": "array", "items": { - "type": "string", - "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" - ] + "type": "string" } }, "style": "form", "explode": false }, { - "name": "limit", + "name": "filter[id]", "in": "query", - "description": "maximum resources per page", + "description": "filter by id(s)", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string" + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "include", + "name": "sort", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "repository" + "preReleaseVersion", + "-preReleaseVersion", + "uploadedDate", + "-uploadedDate", + "version", + "-version" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of ScmGitReferences", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScmGitReferencesResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/scmRepositories/{id}/relationships/pullRequests": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/scmRepositories/{id}/pullRequests": { - "get": { - "tags": [ - "ScmRepositories" - ], - "operationId": "scmRepositories-pullRequests-get_to_many_related", - "parameters": [ { - "name": "fields[scmPullRequests]", + "name": "fields[buildBundles]", "in": "query", - "description": "the fields to include for returned resources of type scmPullRequests", + "description": "the fields to include for returned resources of type buildBundles", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "destinationBranchName", - "destinationRepositoryName", - "destinationRepositoryOwner", - "isClosed", - "isCrossRepository", - "number", - "repository", - "sourceBranchName", - "sourceRepositoryName", - "sourceRepositoryOwner", - "title", - "webUrl" + "appClipDomainCacheStatus", + "appClipDomainDebugStatus", + "betaAppClipInvocations", + "buildBundleFileSizes", + "bundleId", + "bundleType", + "dSYMUrl", + "deviceProtocols", + "entitlements", + "fileName", + "hasOnDemandResources", + "hasPrerenderedIcon", + "hasSirikit", + "includesSymbols", + "isIosBuildMacAppStoreCompatible", + "locales", + "platformBuild", + "requiredCapabilities", + "sdkBuild", + "supportedArchitectures", + "usesLocationServices" ] } }, @@ -64734,23 +64484,17 @@ "explode": false }, { - "name": "fields[scmRepositories]", + "name": "fields[buildIcons]", "in": "query", - "description": "the fields to include for returned resources of type scmRepositories", + "description": "the fields to include for returned resources of type buildIcons", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "defaultBranch", - "gitReferences", - "httpCloneUrl", - "lastAccessedDate", - "ownerName", - "pullRequests", - "repositoryName", - "scmProvider", - "sshCloneUrl" + "iconAsset", + "iconType", + "name" ] } }, @@ -64758,119 +64502,58 @@ "explode": false }, { - "name": "limit", + "name": "fields[betaAppReviewSubmissions]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type betaAppReviewSubmissions", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "betaReviewState", + "build", + "submittedDate" + ] + } }, - "style": "form" + "style": "form", + "explode": false }, { - "name": "include", + "name": "fields[buildBetaDetails]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type buildBetaDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "repository" + "autoNotifyEnabled", + "build", + "externalBuildState", + "internalBuildState" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of ScmPullRequests", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ScmPullRequestsResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionAvailabilities/{id}/relationships/availableTerritories": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionAvailabilities/{id}/availableTerritories": { - "get": { - "tags": [ - "SubscriptionAvailabilities" - ], - "operationId": "subscriptionAvailabilities-availableTerritories-get_to_many_related", - "parameters": [ { - "name": "fields[territories]", + "name": "fields[betaTesters]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type betaTesters", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "apps", + "betaGroups", + "builds", + "email", + "firstName", + "inviteType", + "lastName" ] } }, @@ -64878,14 +64561,321 @@ "explode": false }, { - "name": "limit", + "name": "fields[preReleaseVersions]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type preReleaseVersions", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "builds", + "platform", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaBuildLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type betaBuildLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "build", + "locale", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appDescription", + "appEncryptionDeclarationDocument", + "appEncryptionDeclarationState", + "availableOnFrenchStore", + "builds", + "codeValue", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "createdDate", + "documentName", + "documentType", + "documentUrl", + "exempt", + "platform", + "uploadedDate", + "usesEncryption" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[betaGroups]", + "in": "query", + "description": "the fields to include for returned resources of type betaGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "betaTesters", + "builds", + "createdDate", + "feedbackEnabled", + "hasAccessToAllBuilds", + "iosBuildsAvailableForAppleSiliconMac", + "isInternalGroup", + "name", + "publicLink", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimit", + "publicLinkLimitEnabled" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[individualTesters]", + "in": "query", + "description": "maximum number of related individualTesters returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[betaBuildLocalizations]", + "in": "query", + "description": "maximum number of related betaBuildLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[icons]", + "in": "query", + "description": "maximum number of related icons returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[buildBundles]", + "in": "query", + "description": "maximum number of related buildBundles returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 }, "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildBetaDetail", + "buildBundles", + "icons", + "individualTesters", + "preReleaseVersion" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -64920,11 +64910,11 @@ } }, "200": { - "description": "List of Territories", + "description": "List of Builds", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/TerritoriesResponse" + "$ref": "#/components/schemas/BuildsResponse" } } } @@ -64944,7 +64934,7 @@ } ] }, - "/v1/subscriptionGroups/{id}/relationships/subscriptionGroupLocalizations": { + "/v1/ciMacOsVersions/{id}/relationships/xcodeVersions": { "parameters": [ { "name": "id", @@ -64958,26 +64948,26 @@ } ] }, - "/v1/subscriptionGroups/{id}/subscriptionGroupLocalizations": { + "/v1/ciMacOsVersions/{id}/xcodeVersions": { "get": { "tags": [ - "SubscriptionGroups" + "CiMacOsVersions" ], - "operationId": "subscriptionGroups-subscriptionGroupLocalizations-get_to_many_related", + "operationId": "ciMacOsVersions-xcodeVersions-get_to_many_related", "parameters": [ { - "name": "fields[subscriptionGroups]", + "name": "fields[ciXcodeVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroups", + "description": "the fields to include for returned resources of type ciXcodeVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "referenceName", - "subscriptionGroupLocalizations", - "subscriptions" + "macOsVersions", + "name", + "testDestinations", + "version" ] } }, @@ -64985,19 +64975,17 @@ "explode": false }, { - "name": "fields[subscriptionGroupLocalizations]", + "name": "fields[ciMacOsVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "description": "the fields to include for returned resources of type ciMacOsVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customAppName", - "locale", "name", - "state", - "subscriptionGroup" + "version", + "xcodeVersions" ] } }, @@ -65014,6 +65002,16 @@ }, "style": "form" }, + { + "name": "limit[macOsVersions]", + "in": "query", + "description": "maximum number of related macOsVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, { "name": "include", "in": "query", @@ -65023,7 +65021,7 @@ "items": { "type": "string", "enum": [ - "subscriptionGroup" + "macOsVersions" ] } }, @@ -65063,11 +65061,11 @@ } }, "200": { - "description": "List of SubscriptionGroupLocalizations", + "description": "List of CiXcodeVersions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionGroupLocalizationsResponse" + "$ref": "#/components/schemas/CiXcodeVersionsResponse" } } } @@ -65087,7 +65085,7 @@ } ] }, - "/v1/subscriptionGroups/{id}/relationships/subscriptions": { + "/v1/ciProducts/{id}/relationships/additionalRepositories": { "parameters": [ { "name": "id", @@ -65101,30 +65099,17 @@ } ] }, - "/v1/subscriptionGroups/{id}/subscriptions": { + "/v1/ciProducts/{id}/additionalRepositories": { "get": { "tags": [ - "SubscriptionGroups" + "CiProducts" ], - "operationId": "subscriptionGroups-subscriptions-get_to_many_related", + "operationId": "ciProducts-additionalRepositories-get_to_many_related", "parameters": [ { - "name": "filter[name]", - "in": "query", - "description": "filter by attribute 'name'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[productId]", + "name": "filter[id]", "in": "query", - "description": "filter by attribute 'productId'", + "description": "filter by id(s)", "schema": { "type": "array", "items": { @@ -65135,24 +65120,19 @@ "explode": false }, { - "name": "filter[state]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "filter by attribute 'state'", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "MISSING_METADATA", - "READY_TO_SUBMIT", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "DEVELOPER_ACTION_NEEDED", - "PENDING_BINARY_APPROVAL", - "APPROVED", - "DEVELOPER_REMOVED_FROM_SALE", - "REMOVED_FROM_SALE", - "REJECTED" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, @@ -65160,16 +65140,17 @@ "explode": false }, { - "name": "sort", + "name": "fields[scmProviders]", "in": "query", - "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "description": "the fields to include for returned resources of type scmProviders", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "name", - "-name" + "repositories", + "scmProviderType", + "url" ] } }, @@ -65177,21 +65158,23 @@ "explode": false }, { - "name": "fields[promotedPurchases]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, @@ -65199,318 +65182,53 @@ "explode": false }, { - "name": "fields[subscriptionPromotionalOffers]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "duration", - "name", - "numberOfPeriods", - "offerCode", - "offerMode", - "prices", - "subscription" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "fields[subscriptionOfferCodes]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "customCodes", - "customerEligibilities", - "duration", - "name", - "numberOfPeriods", - "offerEligibility", - "offerMode", - "oneTimeUseCodes", - "prices", - "subscription", - "totalNumberOfCodes" + "defaultBranch", + "scmProvider" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[subscriptionAppStoreReviewScreenshots]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "subscription", - "uploadOperations", - "uploaded" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptions]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionAvailabilities]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionAvailabilities", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "availableInNewTerritories", - "availableTerritories", - "subscription" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionGroups]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionGroups", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "referenceName", - "subscriptionGroupLocalizations", - "subscriptions" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionIntroductoryOffers]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "duration", - "endDate", - "numberOfPeriods", - "offerMode", - "startDate", - "subscription", - "subscriptionPricePoint", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionPrices]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionPrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "preserveCurrentPrice", - "preserved", - "startDate", - "subscription", - "subscriptionPricePoint", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionLocalizations]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionLocalizations", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "description", - "locale", - "name", - "state", - "subscription" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "limit[subscriptionLocalizations]", - "in": "query", - "description": "maximum number of related subscriptionLocalizations returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[introductoryOffers]", - "in": "query", - "description": "maximum number of related introductoryOffers returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[promotionalOffers]", - "in": "query", - "description": "maximum number of related promotionalOffers returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[offerCodes]", - "in": "query", - "description": "maximum number of related offerCodes returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[prices]", - "in": "query", - "description": "maximum number of related prices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "group", - "introductoryOffers", - "offerCodes", - "prices", - "promotedPurchase", - "promotionalOffers", - "subscriptionAvailability", - "subscriptionLocalizations" - ] - } - }, - "style": "form", - "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } + } }, "404": { "description": "Not found error", @@ -65523,74 +65241,11 @@ } }, "200": { - "description": "List of Subscriptions", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionsResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodeOneTimeUseCodes/{id}/values": { - "get": { - "tags": [ - "SubscriptionOfferCodeOneTimeUseCodes" - ], - "operationId": "subscriptionOfferCodeOneTimeUseCodes-values-get_to_one_related", - "parameters": [], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", + "description": "List of ScmRepositories", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "Single SubscriptionOfferCodeOneTimeUseCodeValue", - "content": { - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" + "$ref": "#/components/schemas/ScmRepositoriesResponse" } } } @@ -65610,7 +65265,7 @@ } ] }, - "/v1/subscriptionOfferCodes/{id}/relationships/customCodes": { + "/v1/ciProducts/{id}/relationships/app": { "parameters": [ { "name": "id", @@ -65624,28 +65279,31 @@ } ] }, - "/v1/subscriptionOfferCodes/{id}/customCodes": { + "/v1/ciProducts/{id}/app": { "get": { "tags": [ - "SubscriptionOfferCodes" + "CiProducts" ], - "operationId": "subscriptionOfferCodes-customCodes-get_to_many_related", + "operationId": "ciProducts-app-get_to_one_related", "parameters": [ { - "name": "fields[subscriptionOfferCodeCustomCodes]", + "name": "fields[betaAppReviewDetails]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "description": "the fields to include for returned resources of type betaAppReviewDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "customCode", - "expirationDate", - "numberOfCodes", - "offerCode" + "app", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" ] } }, @@ -65653,26 +65311,27 @@ "explode": false }, { - "name": "fields[subscriptionOfferCodes]", + "name": "fields[gameCenterDetails]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "description": "the fields to include for returned resources of type gameCenterDetails", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "customCodes", - "customerEligibilities", - "duration", - "name", - "numberOfPeriods", - "offerEligibility", - "offerMode", - "oneTimeUseCodes", - "prices", - "subscription", - "totalNumberOfCodes" + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" ] } }, @@ -65680,130 +65339,48 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[ciProducts]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type ciProducts", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "offerCode" + "additionalRepositories", + "app", + "buildRuns", + "bundleId", + "createdDate", + "name", + "primaryRepositories", + "productType", + "workflows" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of SubscriptionOfferCodeCustomCodes", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodesResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodes/{id}/relationships/oneTimeUseCodes": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodes/{id}/oneTimeUseCodes": { - "get": { - "tags": [ - "SubscriptionOfferCodes" - ], - "operationId": "subscriptionOfferCodes-oneTimeUseCodes-get_to_many_related", - "parameters": [ { - "name": "fields[subscriptionOfferCodes]", + "name": "fields[reviewSubmissions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "description": "the fields to include for returned resources of type reviewSubmissions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "customCodes", - "customerEligibilities", - "duration", - "name", - "numberOfPeriods", - "offerEligibility", - "offerMode", - "oneTimeUseCodes", - "prices", - "subscription", - "totalNumberOfCodes" + "app", + "appStoreVersionForReview", + "canceled", + "items", + "lastUpdatedByActor", + "platform", + "state", + "submitted", + "submittedByActor", + "submittedDate" ] } }, @@ -65811,20 +65388,28 @@ "explode": false }, { - "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "name": "fields[betaGroups]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "description": "the fields to include for returned resources of type betaGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", + "app", + "betaTesters", + "builds", "createdDate", - "expirationDate", - "numberOfCodes", - "offerCode", - "values" + "feedbackEnabled", + "hasAccessToAllBuilds", + "iosBuildsAvailableForAppleSiliconMac", + "isInternalGroup", + "name", + "publicLink", + "publicLinkEnabled", + "publicLinkId", + "publicLinkLimit", + "publicLinkLimitEnabled" ] } }, @@ -65832,137 +65417,107 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[promotedPurchases]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type promotedPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "offerCode" + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of SubscriptionOfferCodeOneTimeUseCodes", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodesResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodes/{id}/relationships/prices": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionOfferCodes/{id}/prices": { - "get": { - "tags": [ - "SubscriptionOfferCodes" - ], - "operationId": "subscriptionOfferCodes-prices-get_to_many_related", - "parameters": [ { - "name": "filter[territory]", + "name": "fields[apps]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "the fields to include for returned resources of type apps", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] } }, "style": "form", "explode": false }, { - "name": "fields[subscriptionPricePoints]", + "name": "fields[appEvents]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", + "description": "the fields to include for returned resources of type appEvents", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" + "app", + "archivedTerritorySchedules", + "badge", + "deepLink", + "eventState", + "localizations", + "primaryLocale", + "priority", + "purchaseRequirement", + "purpose", + "referenceName", + "territorySchedules" ] } }, @@ -65970,15 +65525,38 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[builds]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type builds", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" ] } }, @@ -65986,16 +65564,16 @@ "explode": false }, { - "name": "fields[subscriptionOfferCodePrices]", + "name": "fields[betaLicenseAgreements]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "description": "the fields to include for returned resources of type betaLicenseAgreements", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "agreementText", + "app" ] } }, @@ -66003,151 +65581,88 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[appClips]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type appClips", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "app", + "appClipAdvancedExperiences", + "appClipDefaultExperiences", + "bundleId" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of SubscriptionOfferCodePrices", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodePricesResponse" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionPricePoints/{id}/relationships/equalizations": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionPricePoints/{id}/equalizations": { - "get": { - "tags": [ - "SubscriptionPricePoints" - ], - "operationId": "subscriptionPricePoints-equalizations-get_to_many_related", - "parameters": [ { - "name": "filter[subscription]", + "name": "fields[betaAppLocalizations]", "in": "query", - "description": "filter by id(s) of related 'subscription'", + "description": "the fields to include for returned resources of type betaAppLocalizations", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "app", + "description", + "feedbackEmail", + "locale", + "marketingUrl", + "privacyPolicyUrl", + "tvOsPrivacyPolicy" + ] } }, "style": "form", "explode": false }, { - "name": "filter[territory]", + "name": "fields[appInfos]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "the fields to include for returned resources of type appInfos", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appInfoLocalizations", + "appStoreAgeRating", + "appStoreState", + "brazilAgeRating", + "brazilAgeRatingV2", + "kidsAgeBand", + "primaryCategory", + "primarySubcategoryOne", + "primarySubcategoryTwo", + "secondaryCategory", + "secondarySubcategoryOne", + "secondarySubcategoryTwo" + ] } }, "style": "form", "explode": false }, { - "name": "fields[subscriptionPricePoints]", + "name": "fields[preReleaseVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", + "description": "the fields to include for returned resources of type preReleaseVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" + "app", + "builds", + "platform", + "version" ] } }, @@ -66155,15 +65670,32 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[inAppPurchases]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type inAppPurchases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "app", + "appStoreReviewScreenshot", + "apps", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "referenceName", + "reviewNote", + "state" ] } }, @@ -66171,142 +65703,53 @@ "explode": false }, { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 8000 - }, - "style": "form" - }, - { - "name": "include", + "name": "fields[subscriptionGroups]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type subscriptionGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "territory" + "app", + "referenceName", + "subscriptionGroupLocalizations", + "subscriptions" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of SubscriptionPricePoints", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPricePointsResponse" - } - }, - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" - } - } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionPromotionalOffers/{id}/relationships/prices": { - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptionPromotionalOffers/{id}/prices": { - "get": { - "tags": [ - "SubscriptionPromotionalOffers" - ], - "operationId": "subscriptionPromotionalOffers-prices-get_to_many_related", - "parameters": [ { - "name": "filter[territory]", + "name": "fields[appPreOrders]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "the fields to include for returned resources of type appPreOrders", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "app", + "appReleaseDate", + "preOrderAvailableDate" + ] } }, "style": "form", "explode": false }, { - "name": "fields[subscriptionPricePoints]", + "name": "fields[appPrices]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", + "description": "the fields to include for returned resources of type appPrices", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" + "app", + "priceTier" ] } }, @@ -66314,15 +65757,19 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[gameCenterEnabledVersions]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type gameCenterEnabledVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "app", + "compatibleVersions", + "iconAsset", + "platform", + "versionString" ] } }, @@ -66330,16 +65777,26 @@ "explode": false }, { - "name": "fields[subscriptionPromotionalOfferPrices]", + "name": "fields[appStoreVersionExperiments]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "app", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" ] } }, @@ -66347,12 +65804,337 @@ "explode": false }, { - "name": "limit", + "name": "fields[subscriptionGracePeriods]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type subscriptionGracePeriods", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "duration", + "optIn", + "renewalType", + "sandboxOptIn" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[endUserLicenseAgreements]", + "in": "query", + "description": "the fields to include for returned resources of type endUserLicenseAgreements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "agreementText", + "app", + "territories" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEncryptionDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type appEncryptionDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appDescription", + "appEncryptionDeclarationDocument", + "appEncryptionDeclarationState", + "availableOnFrenchStore", + "builds", + "codeValue", + "containsProprietaryCryptography", + "containsThirdPartyCryptography", + "createdDate", + "documentName", + "documentType", + "documentUrl", + "exempt", + "platform", + "uploadedDate", + "usesEncryption" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPages]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appCustomProductPageVersions", + "appStoreVersionTemplate", + "customProductPageTemplate", + "name", + "url", + "visible" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appEncryptionDeclarations]", + "in": "query", + "description": "maximum number of related appEncryptionDeclarations returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[betaGroups]", + "in": "query", + "description": "maximum number of related betaGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersions]", + "in": "query", + "description": "maximum number of related appStoreVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[preReleaseVersions]", + "in": "query", + "description": "maximum number of related preReleaseVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[betaAppLocalizations]", + "in": "query", + "description": "maximum number of related betaAppLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appInfos]", + "in": "query", + "description": "maximum number of related appInfos returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appClips]", + "in": "query", + "description": "maximum number of related appClips returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[inAppPurchases]", + "in": "query", + "description": "maximum number of related inAppPurchases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[subscriptionGroups]", + "in": "query", + "description": "maximum number of related subscriptionGroups returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterEnabledVersions]", + "in": "query", + "description": "maximum number of related gameCenterEnabledVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appCustomProductPages]", + "in": "query", + "description": "maximum number of related appCustomProductPages returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[inAppPurchasesV2]", + "in": "query", + "description": "maximum number of related inAppPurchasesV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[promotedPurchases]", + "in": "query", + "description": "maximum number of related promotedPurchases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appEvents]", + "in": "query", + "description": "maximum number of related appEvents returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[reviewSubmissions]", + "in": "query", + "description": "maximum number of related reviewSubmissions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 }, "style": "form" }, @@ -66365,8 +66147,32 @@ "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "builds", + "ciProduct", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "preOrder", + "preReleaseVersions", + "prices", + "promotedPurchases", + "reviewSubmissions", + "subscriptionGracePeriod", + "subscriptionGroups" ] } }, @@ -66406,11 +66212,11 @@ } }, "200": { - "description": "List of SubscriptionPromotionalOfferPrices", + "description": "Single App", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferPricesResponse" + "$ref": "#/components/schemas/AppResponse" } } } @@ -66430,7 +66236,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/appStoreReviewScreenshot": { + "/v1/ciProducts/{id}/relationships/buildRuns": { "parameters": [ { "name": "id", @@ -66444,32 +66250,40 @@ } ] }, - "/v1/subscriptions/{id}/appStoreReviewScreenshot": { + "/v1/ciProducts/{id}/buildRuns": { "get": { "tags": [ - "Subscriptions" + "CiProducts" ], - "operationId": "subscriptions-appStoreReviewScreenshot-get_to_one_related", + "operationId": "ciProducts-buildRuns-get_to_many_related", "parameters": [ { - "name": "fields[subscriptionAppStoreReviewScreenshots]", + "name": "filter[builds]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "description": "filter by id(s) of related 'builds'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmGitReferences]", + "in": "query", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "assetDeliveryState", - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "sourceFileChecksum", - "subscription", - "uploadOperations", - "uploaded" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, @@ -66477,32 +66291,35 @@ "explode": false }, { - "name": "fields[subscriptions]", + "name": "fields[ciBuildRuns]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "the fields to include for returned resources of type ciBuildRuns", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "actions", + "buildRun", + "builds", + "cancelReason", + "clean", + "completionStatus", + "createdDate", + "destinationBranch", + "destinationCommit", + "executionProgress", + "finishedDate", + "isPullRequestBuild", + "issueCounts", + "number", + "product", + "pullRequest", + "sourceBranchOrTag", + "sourceCommit", + "startReason", + "startedDate", + "workflow" ] } }, @@ -66510,85 +66327,127 @@ "explode": false }, { - "name": "include", + "name": "fields[ciWorkflows]", "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type ciWorkflows", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscription" + "actions", + "branchStartCondition", + "buildRuns", + "clean", + "containerFilePath", + "description", + "isEnabled", + "isLockedForEditing", + "lastModifiedDate", + "macOsVersion", + "name", + "product", + "pullRequestStartCondition", + "repository", + "scheduledStartCondition", + "tagStartCondition", + "xcodeVersion" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "additionalRepositories", + "app", + "buildRuns", + "bundleId", + "createdDate", + "name", + "primaryRepositories", + "productType", + "workflows" + ] } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "Single SubscriptionAppStoreReviewScreenshot", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" - } + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptions/{id}/relationships/introductoryOffers": { - "get": { - "tags": [ - "Subscriptions" - ], - "operationId": "subscriptions-introductoryOffers-get_to_many_relationship", - "parameters": [ { "name": "limit", "in": "query", @@ -66598,6 +66457,37 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "builds", + "destinationBranch", + "product", + "pullRequest", + "sourceBranchOrTag", + "workflow" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -66632,69 +66522,31 @@ } }, "200": { - "description": "List of related linkages", + "description": "List of CiBuildRuns", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOffersLinkagesResponse" + "$ref": "#/components/schemas/CiBuildRunsResponse" } } } } } }, - "delete": { - "tags": [ - "Subscriptions" - ], - "operationId": "subscriptions-introductoryOffers-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOffersLinkagesRequest" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } } - }, + ] + }, + "/v1/ciProducts/{id}/relationships/primaryRepositories": { "parameters": [ { "name": "id", @@ -66708,17 +66560,17 @@ } ] }, - "/v1/subscriptions/{id}/introductoryOffers": { + "/v1/ciProducts/{id}/primaryRepositories": { "get": { "tags": [ - "Subscriptions" + "CiProducts" ], - "operationId": "subscriptions-introductoryOffers-get_to_many_related", + "operationId": "ciProducts-primaryRepositories-get_to_many_related", "parameters": [ { - "name": "filter[territory]", + "name": "filter[id]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "filter by id(s)", "schema": { "type": "array", "items": { @@ -66729,53 +66581,19 @@ "explode": false }, { - "name": "fields[subscriptionPricePoints]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptions]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", + "canonicalName", + "isDeleted", + "kind", "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "repository" ] } }, @@ -66783,22 +66601,17 @@ "explode": false }, { - "name": "fields[subscriptionIntroductoryOffers]", + "name": "fields[scmProviders]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", + "description": "the fields to include for returned resources of type scmProviders", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "duration", - "endDate", - "numberOfPeriods", - "offerMode", - "startDate", - "subscription", - "subscriptionPricePoint", - "territory" + "repositories", + "scmProviderType", + "url" ] } }, @@ -66806,15 +66619,23 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, @@ -66840,9 +66661,8 @@ "items": { "type": "string", "enum": [ - "subscription", - "subscriptionPricePoint", - "territory" + "defaultBranch", + "scmProvider" ] } }, @@ -66882,11 +66702,11 @@ } }, "200": { - "description": "List of SubscriptionIntroductoryOffers", + "description": "List of ScmRepositories", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionIntroductoryOffersResponse" + "$ref": "#/components/schemas/ScmRepositoriesResponse" } } } @@ -66906,7 +66726,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/offerCodes": { + "/v1/ciProducts/{id}/relationships/workflows": { "parameters": [ { "name": "id", @@ -66920,41 +66740,26 @@ } ] }, - "/v1/subscriptions/{id}/offerCodes": { + "/v1/ciProducts/{id}/workflows": { "get": { "tags": [ - "Subscriptions" + "CiProducts" ], - "operationId": "subscriptions-offerCodes-get_to_many_related", + "operationId": "ciProducts-workflows-get_to_many_related", "parameters": [ { - "name": "filter[territory]", - "in": "query", - "description": "filter by territory", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionOfferCodeCustomCodes]", + "name": "fields[ciXcodeVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "description": "the fields to include for returned resources of type ciXcodeVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "customCode", - "expirationDate", - "numberOfCodes", - "offerCode" + "macOsVersions", + "name", + "testDestinations", + "version" ] } }, @@ -66962,26 +66767,31 @@ "explode": false }, { - "name": "fields[subscriptionOfferCodes]", + "name": "fields[ciWorkflows]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "description": "the fields to include for returned resources of type ciWorkflows", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "customCodes", - "customerEligibilities", - "duration", + "actions", + "branchStartCondition", + "buildRuns", + "clean", + "containerFilePath", + "description", + "isEnabled", + "isLockedForEditing", + "lastModifiedDate", + "macOsVersion", "name", - "numberOfPeriods", - "offerEligibility", - "offerMode", - "oneTimeUseCodes", - "prices", - "subscription", - "totalNumberOfCodes" + "product", + "pullRequestStartCondition", + "repository", + "scheduledStartCondition", + "tagStartCondition", + "xcodeVersion" ] } }, @@ -66989,20 +66799,17 @@ "explode": false }, { - "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "name": "fields[ciMacOsVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "description": "the fields to include for returned resources of type ciMacOsVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "active", - "createdDate", - "expirationDate", - "numberOfCodes", - "offerCode", - "values" + "name", + "version", + "xcodeVersions" ] } }, @@ -67010,32 +66817,23 @@ "explode": false }, { - "name": "fields[subscriptions]", + "name": "fields[ciProducts]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "the fields to include for returned resources of type ciProducts", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", + "additionalRepositories", + "app", + "buildRuns", + "bundleId", + "createdDate", "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "primaryRepositories", + "productType", + "workflows" ] } }, @@ -67043,16 +66841,23 @@ "explode": false }, { - "name": "fields[subscriptionOfferCodePrices]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, @@ -67069,36 +66874,6 @@ }, "style": "form" }, - { - "name": "limit[oneTimeUseCodes]", - "in": "query", - "description": "maximum number of related oneTimeUseCodes returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[customCodes]", - "in": "query", - "description": "maximum number of related customCodes returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "limit[prices]", - "in": "query", - "description": "maximum number of related prices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -67108,10 +66883,10 @@ "items": { "type": "string", "enum": [ - "customCodes", - "oneTimeUseCodes", - "prices", - "subscription" + "macOsVersion", + "product", + "repository", + "xcodeVersion" ] } }, @@ -67151,11 +66926,11 @@ } }, "200": { - "description": "List of SubscriptionOfferCodes", + "description": "List of CiWorkflows", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionOfferCodesResponse" + "$ref": "#/components/schemas/CiWorkflowsResponse" } } } @@ -67175,7 +66950,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/pricePoints": { + "/v1/ciWorkflows/{id}/relationships/buildRuns": { "parameters": [ { "name": "id", @@ -67189,17 +66964,17 @@ } ] }, - "/v1/subscriptions/{id}/pricePoints": { + "/v1/ciWorkflows/{id}/buildRuns": { "get": { "tags": [ - "Subscriptions" + "CiWorkflows" ], - "operationId": "subscriptions-pricePoints-get_to_many_related", + "operationId": "ciWorkflows-buildRuns-get_to_many_related", "parameters": [ { - "name": "filter[territory]", + "name": "filter[builds]", "in": "query", - "description": "filter by id(s) of related 'territory'", + "description": "filter by id(s) of related 'builds'", "schema": { "type": "array", "items": { @@ -67210,20 +66985,19 @@ "explode": false }, { - "name": "fields[subscriptionPricePoints]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, @@ -67231,15 +67005,35 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[ciBuildRuns]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type ciBuildRuns", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "actions", + "buildRun", + "builds", + "cancelReason", + "clean", + "completionStatus", + "createdDate", + "destinationBranch", + "destinationCommit", + "executionProgress", + "finishedDate", + "isPullRequestBuild", + "issueCounts", + "number", + "product", + "pullRequest", + "sourceBranchOrTag", + "sourceCommit", + "startReason", + "startedDate", + "workflow" ] } }, @@ -67247,100 +67041,127 @@ "explode": false }, { - "name": "limit", + "name": "fields[ciWorkflows]", "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 8000 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", + "description": "the fields to include for returned resources of type ciWorkflows", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "territory" + "actions", + "branchStartCondition", + "buildRuns", + "clean", + "containerFilePath", + "description", + "isEnabled", + "isLockedForEditing", + "lastModifiedDate", + "macOsVersion", + "name", + "product", + "pullRequestStartCondition", + "repository", + "scheduledStartCondition", + "tagStartCondition", + "xcodeVersion" ] } }, "style": "form", "explode": false - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[ciProducts]", + "in": "query", + "description": "the fields to include for returned resources of type ciProducts", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "additionalRepositories", + "app", + "buildRuns", + "bundleId", + "createdDate", + "name", + "primaryRepositories", + "productType", + "workflows" + ] } - } + }, + "style": "form", + "explode": false }, - "200": { - "description": "List of SubscriptionPricePoints", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPricePointsResponse" - } - }, - "text/csv": { - "schema": { - "$ref": "#/components/schemas/csv" - } + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] } - } - } - } - }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" + }, + "style": "form", + "explode": false }, - "style": "simple", - "required": true - } - ] - }, - "/v1/subscriptions/{id}/relationships/prices": { - "get": { - "tags": [ - "Subscriptions" - ], - "operationId": "subscriptions-prices-get_to_many_relationship", - "parameters": [ { "name": "limit", "in": "query", @@ -67350,6 +67171,37 @@ "maximum": 200 }, "style": "form" + }, + { + "name": "limit[builds]", + "in": "query", + "description": "maximum number of related builds returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "builds", + "destinationBranch", + "product", + "pullRequest", + "sourceBranchOrTag", + "workflow" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -67384,69 +67236,31 @@ } }, "200": { - "description": "List of related linkages", + "description": "List of CiBuildRuns", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPricesLinkagesResponse" + "$ref": "#/components/schemas/CiBuildRunsResponse" } } } } } }, - "delete": { - "tags": [ - "Subscriptions" - ], - "operationId": "subscriptions-prices-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/SubscriptionPricesLinkagesRequest" - } - } + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "204": { - "description": "Success (no content)" - } } - }, + ] + }, + "/v1/ciWorkflows/{id}/relationships/repository": { "parameters": [ { "name": "id", @@ -67460,54 +67274,27 @@ } ] }, - "/v1/subscriptions/{id}/prices": { + "/v1/ciWorkflows/{id}/repository": { "get": { "tags": [ - "Subscriptions" + "CiWorkflows" ], - "operationId": "subscriptions-prices-get_to_many_related", + "operationId": "ciWorkflows-repository-get_to_one_related", "parameters": [ { - "name": "filter[subscriptionPricePoint]", - "in": "query", - "description": "filter by id(s) of related 'subscriptionPricePoint'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "filter[territory]", - "in": "query", - "description": "filter by id(s) of related 'territory'", - "schema": { - "type": "array", - "items": { - "type": "string" - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptionPricePoints]", + "name": "fields[scmGitReferences]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPricePoints", + "description": "the fields to include for returned resources of type scmGitReferences", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "customerPrice", - "equalizations", - "proceeds", - "proceedsYear2", - "subscription", - "territory" + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" ] } }, @@ -67515,20 +67302,17 @@ "explode": false }, { - "name": "fields[subscriptionPrices]", + "name": "fields[scmProviders]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPrices", + "description": "the fields to include for returned resources of type scmProviders", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "preserveCurrentPrice", - "preserved", - "startDate", - "subscription", - "subscriptionPricePoint", - "territory" + "repositories", + "scmProviderType", + "url" ] } }, @@ -67536,31 +67320,29 @@ "explode": false }, { - "name": "fields[territories]", + "name": "fields[scmRepositories]", "in": "query", - "description": "the fields to include for returned resources of type territories", + "description": "the fields to include for returned resources of type scmRepositories", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "currency" + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" ] } }, "style": "form", "explode": false }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - }, { "name": "include", "in": "query", @@ -67570,8 +67352,8 @@ "items": { "type": "string", "enum": [ - "subscriptionPricePoint", - "territory" + "defaultBranch", + "scmProvider" ] } }, @@ -67611,11 +67393,11 @@ } }, "200": { - "description": "List of SubscriptionPrices", + "description": "Single ScmRepository", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPricesResponse" + "$ref": "#/components/schemas/ScmRepositoryResponse" } } } @@ -67635,7 +67417,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/promotedPurchase": { + "/v1/ciXcodeVersions/{id}/relationships/macOsVersions": { "parameters": [ { "name": "id", @@ -67649,62 +67431,26 @@ } ] }, - "/v1/subscriptions/{id}/promotedPurchase": { + "/v1/ciXcodeVersions/{id}/macOsVersions": { "get": { "tags": [ - "Subscriptions" + "CiXcodeVersions" ], - "operationId": "subscriptions-promotedPurchase-get_to_one_related", + "operationId": "ciXcodeVersions-macOsVersions-get_to_many_related", "parameters": [ { - "name": "fields[promotedPurchases]", - "in": "query", - "description": "the fields to include for returned resources of type promotedPurchases", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "app", - "enabled", - "inAppPurchaseV2", - "promotionImages", - "state", - "subscription", - "visibleForAllUsers" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptions]", + "name": "fields[ciXcodeVersions]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "the fields to include for returned resources of type ciXcodeVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", + "macOsVersions", "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "testDestinations", + "version" ] } }, @@ -67712,30 +67458,17 @@ "explode": false }, { - "name": "fields[inAppPurchases]", + "name": "fields[ciMacOsVersions]", "in": "query", - "description": "the fields to include for returned resources of type inAppPurchases", + "description": "the fields to include for returned resources of type ciMacOsVersions", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "app", - "appStoreReviewScreenshot", - "availableInAllTerritories", - "content", - "contentHosting", - "familySharable", - "iapPriceSchedule", - "inAppPurchaseAvailability", - "inAppPurchaseLocalizations", - "inAppPurchaseType", "name", - "pricePoints", - "productId", - "promotedPurchase", - "reviewNote", - "state" + "version", + "xcodeVersions" ] } }, @@ -67743,34 +67476,19 @@ "explode": false }, { - "name": "fields[promotedPurchaseImages]", + "name": "limit", "in": "query", - "description": "the fields to include for returned resources of type promotedPurchaseImages", + "description": "maximum resources per page", "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "assetToken", - "assetType", - "fileName", - "fileSize", - "imageAsset", - "promotedPurchase", - "sourceFileChecksum", - "state", - "uploadOperations", - "uploaded" - ] - } + "type": "integer", + "maximum": 200 }, - "style": "form", - "explode": false + "style": "form" }, { - "name": "limit[promotionImages]", + "name": "limit[xcodeVersions]", "in": "query", - "description": "maximum number of related promotionImages returned (when they are included)", + "description": "maximum number of related xcodeVersions returned (when they are included)", "schema": { "type": "integer", "maximum": 50 @@ -67786,9 +67504,7 @@ "items": { "type": "string", "enum": [ - "inAppPurchaseV2", - "promotionImages", - "subscription" + "xcodeVersions" ] } }, @@ -67828,11 +67544,11 @@ } }, "200": { - "description": "Single PromotedPurchase", + "description": "List of CiMacOsVersions", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/PromotedPurchaseResponse" + "$ref": "#/components/schemas/CiMacOsVersionsResponse" } } } @@ -67852,7 +67568,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/promotionalOffers": { + "/v1/customerReviews/{id}/relationships/response": { "parameters": [ { "name": "id", @@ -67866,42 +67582,48 @@ } ] }, - "/v1/subscriptions/{id}/promotionalOffers": { + "/v1/customerReviews/{id}/response": { "get": { "tags": [ - "Subscriptions" + "CustomerReviews" ], - "operationId": "subscriptions-promotionalOffers-get_to_many_related", + "operationId": "customerReviews-response-get_to_one_related", "parameters": [ { - "name": "filter[territory]", + "name": "fields[customerReviews]", "in": "query", - "description": "filter by territory", + "description": "the fields to include for returned resources of type customerReviews", "schema": { "type": "array", "items": { - "type": "string" + "type": "string", + "enum": [ + "body", + "createdDate", + "rating", + "response", + "reviewerNickname", + "territory", + "title" + ] } }, "style": "form", "explode": false }, { - "name": "fields[subscriptionPromotionalOffers]", + "name": "fields[customerReviewResponses]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", + "description": "the fields to include for returned resources of type customerReviewResponses", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "duration", - "name", - "numberOfPeriods", - "offerCode", - "offerMode", - "prices", - "subscription" + "lastModifiedDate", + "responseBody", + "review", + "state" ] } }, @@ -67909,55 +67631,85 @@ "explode": false }, { - "name": "fields[subscriptions]", + "name": "include", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "comma-separated list of relationships to include", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "review" ] } }, "style": "form", "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } }, - { - "name": "fields[subscriptionPromotionalOfferPrices]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "subscriptionPricePoint", - "territory" - ] + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } - }, - "style": "form", - "explode": false + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single CustomerReviewResponse", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerReviewResponseV1Response" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" }, + "style": "simple", + "required": true + } + ] + }, + "/v1/diagnosticSignatures/{id}/logs": { + "get": { + "tags": [ + "DiagnosticSignatures" + ], + "operationId": "diagnosticSignatures-logs-get_to_many_related", + "parameters": [ { "name": "limit", "in": "query", @@ -67967,33 +67719,6 @@ "maximum": 200 }, "style": "form" - }, - { - "name": "limit[prices]", - "in": "query", - "description": "maximum number of related prices returned (when they are included)", - "schema": { - "type": "integer", - "maximum": 50 - }, - "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "prices", - "subscription" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -68028,11 +67753,11 @@ } }, "200": { - "description": "List of SubscriptionPromotionalOffers", + "description": "List of DiagnosticLogs", "content": { - "application/json": { + "application/vnd.apple.diagnostic-logs+json": { "schema": { - "$ref": "#/components/schemas/SubscriptionPromotionalOffersResponse" + "$ref": "#/components/schemas/diagnosticLogs" } } } @@ -68052,7 +67777,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/subscriptionAvailability": { + "/v1/endUserLicenseAgreements/{id}/relationships/territories": { "parameters": [ { "name": "id", @@ -68066,64 +67791,13 @@ } ] }, - "/v1/subscriptions/{id}/subscriptionAvailability": { + "/v1/endUserLicenseAgreements/{id}/territories": { "get": { "tags": [ - "Subscriptions" + "EndUserLicenseAgreements" ], - "operationId": "subscriptions-subscriptionAvailability-get_to_one_related", + "operationId": "endUserLicenseAgreements-territories-get_to_many_related", "parameters": [ - { - "name": "fields[subscriptionAvailabilities]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptionAvailabilities", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "availableInNewTerritories", - "availableTerritories", - "subscription" - ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "fields[subscriptions]", - "in": "query", - "description": "the fields to include for returned resources of type subscriptions", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" - ] - } - }, - "style": "form", - "explode": false - }, { "name": "fields[territories]", "in": "query", @@ -68141,31 +67815,14 @@ "explode": false }, { - "name": "limit[availableTerritories]", + "name": "limit", "in": "query", - "description": "maximum number of related availableTerritories returned (when they are included)", + "description": "maximum resources per page", "schema": { "type": "integer", - "maximum": 50 + "maximum": 200 }, "style": "form" - }, - { - "name": "include", - "in": "query", - "description": "comma-separated list of relationships to include", - "schema": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "availableTerritories", - "subscription" - ] - } - }, - "style": "form", - "explode": false } ], "responses": { @@ -68200,11 +67857,11 @@ } }, "200": { - "description": "Single SubscriptionAvailability", + "description": "List of Territories with get", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + "$ref": "#/components/schemas/TerritoriesWithoutIncludesResponse" } } } @@ -68224,7 +67881,7 @@ } ] }, - "/v1/subscriptions/{id}/relationships/subscriptionLocalizations": { + "/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievement": { "parameters": [ { "name": "id", @@ -68238,40 +67895,25 @@ } ] }, - "/v1/subscriptions/{id}/subscriptionLocalizations": { + "/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievement": { "get": { "tags": [ - "Subscriptions" + "GameCenterAchievementLocalizations" ], - "operationId": "subscriptions-subscriptionLocalizations-get_to_many_related", + "operationId": "gameCenterAchievementLocalizations-gameCenterAchievement-get_to_one_related", "parameters": [ { - "name": "fields[subscriptions]", + "name": "fields[gameCenterAchievementReleases]", "in": "query", - "description": "the fields to include for returned resources of type subscriptions", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appStoreReviewScreenshot", - "availableInAllTerritories", - "familySharable", - "group", - "groupLevel", - "introductoryOffers", - "name", - "offerCodes", - "pricePoints", - "prices", - "productId", - "promotedPurchase", - "promotionalOffers", - "reviewNote", - "state", - "subscriptionAvailability", - "subscriptionLocalizations", - "subscriptionPeriod" + "gameCenterAchievement", + "gameCenterDetail", + "live" ] } }, @@ -68279,19 +67921,68 @@ "explode": false }, { - "name": "fields[subscriptionLocalizations]", + "name": "fields[gameCenterGroups]", "in": "query", - "description": "the fields to include for returned resources of type subscriptionLocalizations", + "description": "the fields to include for returned resources of type gameCenterGroups", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "description", + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", "locale", - "name", - "state", - "subscription" + "name" ] } }, @@ -68299,12 +67990,48 @@ "explode": false }, { - "name": "limit", + "name": "fields[gameCenterAchievements]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", "schema": { "type": "integer", - "maximum": 200 + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 }, "style": "form" }, @@ -68317,7 +68044,11 @@ "items": { "type": "string", "enum": [ - "subscription" + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases" ] } }, @@ -68357,11 +68088,11 @@ } }, "200": { - "description": "List of SubscriptionLocalizations", + "description": "Single GameCenterAchievement", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/SubscriptionLocalizationsResponse" + "$ref": "#/components/schemas/GameCenterAchievementResponse" } } } @@ -68381,7 +68112,7 @@ } ] }, - "/v1/userInvitations/{id}/relationships/visibleApps": { + "/v1/gameCenterAchievementLocalizations/{id}/relationships/gameCenterAchievementImage": { "parameters": [ { "name": "id", @@ -68395,64 +68126,29 @@ } ] }, - "/v1/userInvitations/{id}/visibleApps": { + "/v1/gameCenterAchievementLocalizations/{id}/gameCenterAchievementImage": { "get": { "tags": [ - "UserInvitations" + "GameCenterAchievementLocalizations" ], - "operationId": "userInvitations-visibleApps-get_to_many_related", + "operationId": "gameCenterAchievementLocalizations-gameCenterAchievementImage-get_to_one_related", "parameters": [ { - "name": "fields[apps]", + "name": "fields[gameCenterAchievementImages]", "in": "query", - "description": "the fields to include for returned resources of type apps", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", "schema": { "type": "array", "items": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterAchievementLocalization", + "imageAsset", + "uploadOperations", + "uploaded" ] } }, @@ -68460,14 +68156,41 @@ "explode": false }, { - "name": "limit", + "name": "fields[gameCenterAchievementLocalizations]", "in": "query", - "description": "maximum resources per page", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", "schema": { - "type": "integer", - "maximum": 200 + "type": "array", + "items": { + "type": "string", + "enum": [ + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" + ] + } }, - "style": "form" + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalization" + ] + } + }, + "style": "form", + "explode": false } ], "responses": { @@ -68502,11 +68225,11 @@ } }, "200": { - "description": "List of Apps", + "description": "Single GameCenterAchievementImage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AppsResponse" + "$ref": "#/components/schemas/GameCenterAchievementImageResponse" } } } @@ -68526,24 +68249,13 @@ } ] }, - "/v1/users/{id}/relationships/visibleApps": { + "/v1/gameCenterAchievements/{id}/relationships/groupAchievement": { "get": { "tags": [ - "Users" - ], - "operationId": "users-visibleApps-get_to_many_relationship", - "parameters": [ - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } + "GameCenterAchievements" ], + "operationId": "gameCenterAchievements-groupAchievement-get_to_one_relationship", + "parameters": [], "responses": { "400": { "description": "Parameter error(s)", @@ -68576,28 +68288,28 @@ } }, "200": { - "description": "List of related linkages", + "description": "Related linkage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserVisibleAppsLinkagesResponse" + "$ref": "#/components/schemas/GameCenterAchievementGroupAchievementLinkageResponse" } } } } } }, - "post": { + "patch": { "tags": [ - "Users" + "GameCenterAchievements" ], - "operationId": "users-visibleApps-create_to_many_relationship", + "operationId": "gameCenterAchievements-groupAchievement-update_to_one_relationship", "requestBody": { - "description": "List of related linkages", + "description": "Related linkage", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + "$ref": "#/components/schemas/GameCenterAchievementGroupAchievementLinkageRequest" } } }, @@ -68639,75 +68351,568 @@ } } }, - "patch": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAchievements/{id}/groupAchievement": { + "get": { "tags": [ - "Users" + "GameCenterAchievements" ], - "operationId": "users-visibleApps-replace_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + "operationId": "gameCenterAchievements-groupAchievement-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] } - } + }, + "style": "form", + "explode": false }, - "required": true - }, - "responses": { - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] } - } + }, + "style": "form", + "explode": false }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] } - } + }, + "style": "form", + "explode": false }, - "409": { - "description": "Request entity error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" + ] } - } - }, - "204": { - "description": "Success (no content)" + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterAchievement", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementResponse" + } + } + } } } }, - "delete": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAchievements/{id}/relationships/localizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAchievements/{id}/localizations": { + "get": { "tags": [ - "Users" + "GameCenterAchievements" ], - "operationId": "users-visibleApps-delete_to_many_relationship", - "requestBody": { - "description": "List of related linkages", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + "operationId": "gameCenterAchievements-localizations-get_to_many_related", + "parameters": [ + { + "name": "fields[gameCenterAchievementImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterAchievementLocalization", + "imageAsset", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterAchievementImage" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } } } }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterAchievementLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementLocalizationsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", "required": true - }, + } + ] + }, + "/v1/gameCenterAchievements/{id}/relationships/releases": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAchievements/{id}/releases": { + "get": { + "tags": [ + "GameCenterAchievements" + ], + "operationId": "gameCenterAchievements-releases-get_to_many_related", + "parameters": [ + { + "name": "filter[live]", + "in": "query", + "description": "filter by attribute 'live'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterDetail]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterDetail'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail" + ] + } + }, + "style": "form", + "explode": false + } + ], "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, "403": { "description": "Forbidden error", "content": { @@ -68728,176 +68933,21963 @@ } } }, - "409": { - "description": "Request entity error(s)", + "200": { + "description": "List of GameCenterAchievementReleases", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/ErrorResponse" + "$ref": "#/components/schemas/GameCenterAchievementReleasesResponse" } } - } - }, - "204": { - "description": "Success (no content)" + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAppVersions/{id}/relationships/appStoreVersion": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAppVersions/{id}/appStoreVersion": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions-appStoreVersion-get_to_one_related", + "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[ageRatingDeclarations]", + "in": "query", + "description": "the fields to include for returned resources of type ageRatingDeclarations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "alcoholTobaccoOrDrugUseOrReferences", + "contests", + "gambling", + "gamblingAndContests", + "gamblingSimulated", + "horrorOrFearThemes", + "kidsAgeBand", + "matureOrSuggestiveThemes", + "medicalOrTreatmentInformation", + "profanityOrCrudeHumor", + "seventeenPlus", + "sexualContentGraphicAndNudity", + "sexualContentOrNudity", + "unrestrictedWebAccess", + "violenceCartoonOrFantasy", + "violenceRealistic", + "violenceRealisticProlongedGraphicOrSadistic" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionSubmissions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionSubmissions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreReviewDetails]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreReviewDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewAttachments", + "appStoreVersion", + "contactEmail", + "contactFirstName", + "contactLastName", + "contactPhone", + "demoAccountName", + "demoAccountPassword", + "demoAccountRequired", + "notes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[routingAppCoverages]", + "in": "query", + "description": "the fields to include for returned resources of type routingAppCoverages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "assetDeliveryState", + "fileName", + "fileSize", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appClipDefaultExperiences]", + "in": "query", + "description": "the fields to include for returned resources of type appClipDefaultExperiences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "action", + "appClip", + "appClipAppStoreReviewDetail", + "appClipDefaultExperienceLocalizations", + "appClipDefaultExperienceTemplate", + "releaseWithAppStoreVersion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionPhasedReleases]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionPhasedReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "currentDayNumber", + "phasedReleaseState", + "startDate", + "totalPauseDuration" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appPreviewSets", + "appScreenshotSets", + "appStoreVersion", + "description", + "keywords", + "locale", + "marketingUrl", + "promotionalText", + "supportUrl", + "whatsNew" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[appStoreVersionLocalizations]", + "in": "query", + "description": "maximum number of related appStoreVersionLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[appStoreVersionExperiments]", + "in": "query", + "description": "maximum number of related appStoreVersionExperiments returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "limit[appStoreVersionExperimentsV2]", + "in": "query", + "description": "maximum number of related appStoreVersionExperimentsV2 returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "routingAppCoverage" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single AppStoreVersion", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppStoreVersionResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAppVersions/{id}/relationships/compatibilityVersions": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions-compatibilityVersions-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionCompatibilityVersionsLinkagesResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions-compatibilityVersions-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionCompatibilityVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions-compatibilityVersions-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionCompatibilityVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterAppVersions/{id}/compatibilityVersions": { + "get": { + "tags": [ + "GameCenterAppVersions" + ], + "operationId": "gameCenterAppVersions-compatibilityVersions-get_to_many_related", + "parameters": [ + { + "name": "filter[enabled]", + "in": "query", + "description": "filter by attribute 'enabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "compatibilityVersions", + "enabled" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[compatibilityVersions]", + "in": "query", + "description": "maximum number of related compatibilityVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "compatibilityVersions" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterAppVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/achievementReleases": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/achievementReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-achievementReleases-get_to_many_related", + "parameters": [ + { + "name": "filter[live]", + "in": "query", + "description": "filter by attribute 'live'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterAchievement]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterAchievement'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterAchievementReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementReleasesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterAchievements-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterAchievementsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterAchievements-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterAchievementsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterAchievements-get_to_many_related", + "parameters": [ + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterAchievements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/gameCenterAppVersions": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/gameCenterAppVersions": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterAppVersions-get_to_many_related", + "parameters": [ + { + "name": "filter[enabled]", + "in": "query", + "description": "filter by attribute 'enabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "compatibilityVersions", + "enabled" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[compatibilityVersions]", + "in": "query", + "description": "maximum number of related compatibilityVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "compatibilityVersions" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterAppVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAppVersionsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/gameCenterGroup": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/gameCenterGroup": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterGroup-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[gameCenterDetails]", + "in": "query", + "description": "maximum number of related gameCenterDetails returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterAchievements]", + "in": "query", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterGroup", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterLeaderboardSets-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterLeaderboardSets-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterLeaderboardSets-get_to_many_related", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterLeaderboards-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterLeaderboards-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-gameCenterLeaderboards-get_to_many_related", + "parameters": [ + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboards", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/leaderboardReleases": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/leaderboardReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-leaderboardReleases-get_to_many_related", + "parameters": [ + { + "name": "filter[live]", + "in": "query", + "description": "filter by attribute 'live'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterLeaderboard]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterLeaderboard'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardReleasesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/relationships/leaderboardSetReleases": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterDetails/{id}/leaderboardSetReleases": { + "get": { + "tags": [ + "GameCenterDetails" + ], + "operationId": "gameCenterDetails-leaderboardSetReleases-get_to_many_related", + "parameters": [ + { + "name": "filter[live]", + "in": "query", + "description": "filter by attribute 'live'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterLeaderboardSet]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterLeaderboardSet'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardSetReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleasesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterEnabledVersions/{id}/relationships/compatibleVersions": { + "get": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions-compatibleVersions-get_to_many_relationship", + "deprecated": true, + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions-compatibleVersions-create_to_many_relationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "patch": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions-compatibleVersions-replace_to_many_relationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions-compatibleVersions-delete_to_many_relationship", + "deprecated": true, + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterEnabledVersions/{id}/compatibleVersions": { + "get": { + "tags": [ + "GameCenterEnabledVersions" + ], + "operationId": "gameCenterEnabledVersions-compatibleVersions-get_to_many_related", + "deprecated": true, + "parameters": [ + { + "name": "filter[platform]", + "in": "query", + "description": "filter by attribute 'platform'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "IOS", + "MAC_OS", + "TV_OS" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[versionString]", + "in": "query", + "description": "filter by attribute 'versionString'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[app]", + "in": "query", + "description": "filter by id(s) of related 'app'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "versionString", + "-versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterEnabledVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterEnabledVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "compatibleVersions", + "iconAsset", + "platform", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[compatibleVersions]", + "in": "query", + "description": "maximum number of related compatibleVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form", + "deprecated": true + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "compatibleVersions" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterEnabledVersions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterEnabledVersionsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/relationships/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterAchievements-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterAchievementsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterAchievements-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterAchievementsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/gameCenterAchievements": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterAchievements-get_to_many_related", + "parameters": [ + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "afterEarnedDescription", + "beforeEarnedDescription", + "gameCenterAchievement", + "gameCenterAchievementImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterAchievements", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterAchievementsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/relationships/gameCenterDetails": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/gameCenterDetails": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterDetails-get_to_many_related", + "parameters": [ + { + "name": "filter[gameCenterAppVersions.enabled]", + "in": "query", + "description": "filter by attribute 'gameCenterAppVersions.enabled'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievementReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievementReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievement", + "gameCenterDetail", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAppVersions]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAppVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreVersion", + "compatibilityVersions", + "enabled" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterAchievements]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterAchievements", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "gameCenterDetail", + "gameCenterGroup", + "groupAchievement", + "localizations", + "points", + "referenceName", + "releases", + "repeatable", + "showBeforeEarned", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[gameCenterAppVersions]", + "in": "query", + "description": "maximum number of related gameCenterAppVersions returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterAchievements]", + "in": "query", + "description": "maximum number of related gameCenterAchievements returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[achievementReleases]", + "in": "query", + "description": "maximum number of related achievementReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[leaderboardReleases]", + "in": "query", + "description": "maximum number of related leaderboardReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[leaderboardSetReleases]", + "in": "query", + "description": "maximum number of related leaderboardSetReleases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterDetails", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterDetailsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterLeaderboardSets-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterLeaderboardSets-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/gameCenterLeaderboardSets": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterLeaderboardSets-get_to_many_related", + "parameters": [ + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardSets", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterLeaderboards-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardsLinkagesResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterLeaderboards-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterGroupGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterGroups/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterGroups" + ], + "operationId": "gameCenterGroups-gameCenterLeaderboards-get_to_many_related", + "parameters": [ + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboards", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardLocalizations/{id}/relationships/gameCenterLeaderboardImage": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardLocalizations/{id}/gameCenterLeaderboardImage": { + "get": { + "tags": [ + "GameCenterLeaderboardLocalizations" + ], + "operationId": "gameCenterLeaderboardLocalizations-gameCenterLeaderboardImage-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterLeaderboardLocalization", + "imageAsset", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardImageResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSetLocalizations/{id}/relationships/gameCenterLeaderboardSetImage": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSetLocalizations/{id}/gameCenterLeaderboardSetImage": { + "get": { + "tags": [ + "GameCenterLeaderboardSetLocalizations" + ], + "operationId": "gameCenterLeaderboardSetLocalizations-gameCenterLeaderboardSetImage-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterLeaderboardSetLocalization", + "imageAsset", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalization" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSetImage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImageResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboard": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations-gameCenterLeaderboard-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboard", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/relationships/gameCenterLeaderboardSet": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSetMemberLocalizations/{id}/gameCenterLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSetMemberLocalizations" + ], + "operationId": "gameCenterLeaderboardSetMemberLocalizations-gameCenterLeaderboardSet-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/relationships/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-gameCenterLeaderboards-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-gameCenterLeaderboards-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-gameCenterLeaderboards-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-gameCenterLeaderboards-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/gameCenterLeaderboards": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-gameCenterLeaderboards-get_to_many_related", + "parameters": [ + { + "name": "filter[archived]", + "in": "query", + "description": "filter by attribute 'archived'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[referenceName]", + "in": "query", + "description": "filter by attribute 'referenceName'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboards", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/relationships/groupLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-groupLeaderboardSet-get_to_one_relationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-groupLeaderboardSet-update_to_one_relationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/groupLeaderboardSet": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-groupLeaderboardSet-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[gameCenterLeaderboards]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboards returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboardSet", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/relationships/localizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-localizations-get_to_many_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardSetLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterLeaderboardSetLocalization", + "imageAsset", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSet", + "gameCenterLeaderboardSetImage" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardSetLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalizationsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/relationships/releases": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboardSets/{id}/releases": { + "get": { + "tags": [ + "GameCenterLeaderboardSets" + ], + "operationId": "gameCenterLeaderboardSets-releases-get_to_many_related", + "parameters": [ + { + "name": "filter[live]", + "in": "query", + "description": "filter by attribute 'live'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterDetail]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterDetail'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSetReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSetReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboardSet" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardSetReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetReleasesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboards/{id}/relationships/groupLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards-groupLeaderboard-get_to_one_relationship", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardGroupLeaderboardLinkageResponse" + } + } + } + } + } + }, + "patch": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards-groupLeaderboard-update_to_one_relationship", + "requestBody": { + "description": "Related linkage", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardGroupLeaderboardLinkageRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboards/{id}/groupLeaderboard": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards-groupLeaderboard-get_to_one_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardSets]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardSets", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboards", + "groupLeaderboardSet", + "localizations", + "referenceName", + "releases", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterGroups]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterAchievements", + "gameCenterDetails", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "referenceName" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[gameCenterLeaderboardSets]", + "in": "query", + "description": "maximum number of related gameCenterLeaderboardSets returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[localizations]", + "in": "query", + "description": "maximum number of related localizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[releases]", + "in": "query", + "description": "maximum number of related releases returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "releases" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single GameCenterLeaderboard", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboards/{id}/relationships/localizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboards/{id}/localizations": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards-localizations-get_to_many_related", + "parameters": [ + { + "name": "fields[gameCenterLeaderboardLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "formatterOverride", + "formatterSuffix", + "formatterSuffixSingular", + "gameCenterLeaderboard", + "gameCenterLeaderboardImage", + "locale", + "name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardImages]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "fileName", + "fileSize", + "gameCenterLeaderboardLocalization", + "imageAsset", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterLeaderboard", + "gameCenterLeaderboardImage" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalizationsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboards/{id}/relationships/releases": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/gameCenterLeaderboards/{id}/releases": { + "get": { + "tags": [ + "GameCenterLeaderboards" + ], + "operationId": "gameCenterLeaderboards-releases-get_to_many_related", + "parameters": [ + { + "name": "filter[live]", + "in": "query", + "description": "filter by attribute 'live'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[gameCenterDetail]", + "in": "query", + "description": "filter by id(s) of related 'gameCenterDetail'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterDetails]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterDetails", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "achievementReleases", + "app", + "arcadeEnabled", + "challengeEnabled", + "defaultGroupLeaderboard", + "defaultLeaderboard", + "gameCenterAchievements", + "gameCenterAppVersions", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "gameCenterLeaderboards", + "leaderboardReleases", + "leaderboardSetReleases" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboards]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboards", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "archived", + "defaultFormatter", + "gameCenterDetail", + "gameCenterGroup", + "gameCenterLeaderboardSets", + "groupLeaderboard", + "localizations", + "recurrenceDuration", + "recurrenceRule", + "recurrenceStartDate", + "referenceName", + "releases", + "scoreRangeEnd", + "scoreRangeStart", + "scoreSortType", + "submissionType", + "vendorIdentifier" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[gameCenterLeaderboardReleases]", + "in": "query", + "description": "the fields to include for returned resources of type gameCenterLeaderboardReleases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard", + "live" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of GameCenterLeaderboardReleases", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GameCenterLeaderboardReleasesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchaseAvailabilities/{id}/relationships/availableTerritories": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchaseAvailabilities/{id}/availableTerritories": { + "get": { + "tags": [ + "InAppPurchaseAvailabilities" + ], + "operationId": "inAppPurchaseAvailabilities-availableTerritories-get_to_many_related", + "parameters": [ + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Territories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoriesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchasePriceSchedules/{id}/relationships/automaticPrices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchasePriceSchedules/{id}/automaticPrices": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules-automaticPrices-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchasePricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "inAppPurchaseV2", + "priceTier", + "proceeds", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "endDate", + "inAppPurchasePricePoint", + "inAppPurchaseV2", + "manual", + "startDate", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchasePricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of InAppPurchasePrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePricesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchasePriceSchedules/{id}/relationships/baseTerritory": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchasePriceSchedules/{id}/baseTerritory": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules-baseTerritory-get_to_one_related", + "parameters": [ + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single Territory", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoryResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchasePriceSchedules/{id}/relationships/manualPrices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/inAppPurchasePriceSchedules/{id}/manualPrices": { + "get": { + "tags": [ + "InAppPurchasePriceSchedules" + ], + "operationId": "inAppPurchasePriceSchedules-manualPrices-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchasePricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "inAppPurchaseV2", + "priceTier", + "proceeds", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "endDate", + "inAppPurchasePricePoint", + "inAppPurchaseV2", + "manual", + "startDate", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchasePricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of InAppPurchasePrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePricesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/appStoreReviewScreenshot": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/appStoreReviewScreenshot": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-appStoreReviewScreenshot-get_to_one_related", + "parameters": [ + { + "name": "fields[inAppPurchaseAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "inAppPurchaseV2", + "sourceFileChecksum", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseAppStoreReviewScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAppStoreReviewScreenshotResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/content": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/content": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-content-get_to_one_related", + "parameters": [ + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchaseContents]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseContents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "fileName", + "fileSize", + "inAppPurchaseV2", + "lastModifiedDate", + "url" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseContent", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseContentResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/iapPriceSchedule": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/iapPriceSchedule": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-iapPriceSchedule-get_to_one_related", + "parameters": [ + { + "name": "fields[inAppPurchasePrices]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "endDate", + "inAppPurchasePricePoint", + "inAppPurchaseV2", + "manual", + "startDate", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchasePriceSchedules]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePriceSchedules", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[manualPrices]", + "in": "query", + "description": "maximum number of related manualPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[automaticPrices]", + "in": "query", + "description": "maximum number of related automaticPrices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "automaticPrices", + "baseTerritory", + "inAppPurchase", + "manualPrices" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchasePriceSchedule", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePriceScheduleResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/inAppPurchaseAvailability": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/inAppPurchaseAvailability": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-inAppPurchaseAvailability-get_to_one_related", + "parameters": [ + { + "name": "fields[inAppPurchaseAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "inAppPurchase" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single InAppPurchaseAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseAvailabilityResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/inAppPurchaseLocalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/inAppPurchaseLocalizations": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-inAppPurchaseLocalizations-get_to_many_related", + "parameters": [ + { + "name": "fields[inAppPurchaseLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchaseLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "inAppPurchaseV2", + "locale", + "name", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of InAppPurchaseLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchaseLocalizationsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/pricePoints": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/pricePoints": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-pricePoints-get_to_many_related", + "parameters": [ + { + "name": "filter[priceTier]", + "in": "query", + "description": "filter by attribute 'priceTier'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchasePricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchasePricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "inAppPurchaseV2", + "priceTier", + "proceeds", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of InAppPurchasePricePoints", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/InAppPurchasePricePointsResponse" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/relationships/promotedPurchase": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v2/inAppPurchases/{id}/promotedPurchase": { + "get": { + "tags": [ + "InAppPurchases" + ], + "operationId": "inAppPurchasesV2-promotedPurchase-get_to_one_related", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[promotedPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "promotedPurchase", + "sourceFileChecksum", + "state", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[promotionImages]", + "in": "query", + "description": "maximum number of related promotionImages returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2", + "promotionImages", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single PromotedPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/preReleaseVersions/{id}/relationships/app": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/preReleaseVersions/{id}/app": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions-app-get_to_one_related", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single App with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/preReleaseVersions/{id}/relationships/builds": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/preReleaseVersions/{id}/builds": { + "get": { + "tags": [ + "PreReleaseVersions" + ], + "operationId": "preReleaseVersions-builds-get_to_many_related", + "parameters": [ + { + "name": "fields[builds]", + "in": "query", + "description": "the fields to include for returned resources of type builds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appEncryptionDeclaration", + "appStoreVersion", + "betaAppReviewSubmission", + "betaBuildLocalizations", + "betaGroups", + "buildAudienceType", + "buildBetaDetail", + "buildBundles", + "computedMinMacOsVersion", + "diagnosticSignatures", + "expirationDate", + "expired", + "iconAssetToken", + "icons", + "individualTesters", + "lsMinimumSystemVersion", + "minOsVersion", + "perfPowerMetrics", + "preReleaseVersion", + "processingState", + "uploadedDate", + "usesNonExemptEncryption", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Builds with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BuildsWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/profiles/{id}/relationships/bundleId": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/profiles/{id}/bundleId": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles-bundleId-get_to_one_related", + "parameters": [ + { + "name": "fields[bundleIds]", + "in": "query", + "description": "the fields to include for returned resources of type bundleIds", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "bundleIdCapabilities", + "identifier", + "name", + "platform", + "profiles", + "seedId" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single BundleId with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/BundleIdWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/profiles/{id}/relationships/certificates": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/profiles/{id}/certificates": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles-certificates-get_to_many_related", + "parameters": [ + { + "name": "fields[certificates]", + "in": "query", + "description": "the fields to include for returned resources of type certificates", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "certificateContent", + "certificateType", + "csrContent", + "displayName", + "expirationDate", + "name", + "platform", + "serialNumber" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Certificates with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CertificatesWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/profiles/{id}/relationships/devices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/profiles/{id}/devices": { + "get": { + "tags": [ + "Profiles" + ], + "operationId": "profiles-devices-get_to_many_related", + "parameters": [ + { + "name": "fields[devices]", + "in": "query", + "description": "the fields to include for returned resources of type devices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "addedDate", + "deviceClass", + "model", + "name", + "platform", + "status", + "udid" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Devices with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DevicesWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/promotedPurchases/{id}/relationships/promotionImages": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/promotedPurchases/{id}/promotionImages": { + "get": { + "tags": [ + "PromotedPurchases" + ], + "operationId": "promotedPurchases-promotionImages-get_to_many_related", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[promotedPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "promotedPurchase", + "sourceFileChecksum", + "state", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "promotedPurchase" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of PromotedPurchaseImages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseImagesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/reviewSubmissions/{id}/relationships/items": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/reviewSubmissions/{id}/items": { + "get": { + "tags": [ + "ReviewSubmissions" + ], + "operationId": "reviewSubmissions-items-get_to_many_related", + "parameters": [ + { + "name": "fields[appStoreVersionExperiments]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersionExperiments", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreVersion", + "appStoreVersionExperimentTreatments", + "controlVersions", + "endDate", + "latestControlVersion", + "name", + "platform", + "reviewRequired", + "startDate", + "started", + "state", + "trafficProportion" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[reviewSubmissionItems]", + "in": "query", + "description": "the fields to include for returned resources of type reviewSubmissionItems", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appEvent", + "appStoreVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2", + "removed", + "resolved", + "reviewSubmission", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appStoreVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appStoreVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "ageRatingDeclaration", + "app", + "appClipDefaultExperience", + "appStoreReviewDetail", + "appStoreState", + "appStoreVersionExperiments", + "appStoreVersionExperimentsV2", + "appStoreVersionLocalizations", + "appStoreVersionPhasedRelease", + "appStoreVersionSubmission", + "build", + "copyright", + "createdDate", + "customerReviews", + "downloadable", + "earliestReleaseDate", + "platform", + "releaseType", + "routingAppCoverage", + "versionString" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appCustomProductPageVersions]", + "in": "query", + "description": "the fields to include for returned resources of type appCustomProductPageVersions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPage", + "appCustomProductPageLocalizations", + "state", + "version" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[appEvents]", + "in": "query", + "description": "the fields to include for returned resources of type appEvents", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "archivedTerritorySchedules", + "badge", + "deepLink", + "eventState", + "localizations", + "primaryLocale", + "priority", + "purchaseRequirement", + "purpose", + "referenceName", + "territorySchedules" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appCustomProductPageVersion", + "appEvent", + "appStoreVersion", + "appStoreVersionExperiment", + "appStoreVersionExperimentV2" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of ReviewSubmissionItems", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ReviewSubmissionItemsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/scmProviders/{id}/relationships/repositories": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/scmProviders/{id}/repositories": { + "get": { + "tags": [ + "ScmProviders" + ], + "operationId": "scmProviders-repositories-get_to_many_related", + "parameters": [ + { + "name": "filter[id]", + "in": "query", + "description": "filter by id(s)", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmGitReferences]", + "in": "query", + "description": "the fields to include for returned resources of type scmGitReferences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmProviders]", + "in": "query", + "description": "the fields to include for returned resources of type scmProviders", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "repositories", + "scmProviderType", + "url" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmRepositories]", + "in": "query", + "description": "the fields to include for returned resources of type scmRepositories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultBranch", + "scmProvider" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of ScmRepositories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmRepositoriesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/scmRepositories/{id}/relationships/gitReferences": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/scmRepositories/{id}/gitReferences": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories-gitReferences-get_to_many_related", + "parameters": [ + { + "name": "fields[scmGitReferences]", + "in": "query", + "description": "the fields to include for returned resources of type scmGitReferences", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "canonicalName", + "isDeleted", + "kind", + "name", + "repository" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmRepositories]", + "in": "query", + "description": "the fields to include for returned resources of type scmRepositories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "repository" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of ScmGitReferences", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmGitReferencesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/scmRepositories/{id}/relationships/pullRequests": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/scmRepositories/{id}/pullRequests": { + "get": { + "tags": [ + "ScmRepositories" + ], + "operationId": "scmRepositories-pullRequests-get_to_many_related", + "parameters": [ + { + "name": "fields[scmPullRequests]", + "in": "query", + "description": "the fields to include for returned resources of type scmPullRequests", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "destinationBranchName", + "destinationRepositoryName", + "destinationRepositoryOwner", + "isClosed", + "isCrossRepository", + "number", + "repository", + "sourceBranchName", + "sourceRepositoryName", + "sourceRepositoryOwner", + "title", + "webUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[scmRepositories]", + "in": "query", + "description": "the fields to include for returned resources of type scmRepositories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "defaultBranch", + "gitReferences", + "httpCloneUrl", + "lastAccessedDate", + "ownerName", + "pullRequests", + "repositoryName", + "scmProvider", + "sshCloneUrl" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "repository" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of ScmPullRequests", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ScmPullRequestsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionAvailabilities/{id}/relationships/availableTerritories": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionAvailabilities/{id}/availableTerritories": { + "get": { + "tags": [ + "SubscriptionAvailabilities" + ], + "operationId": "subscriptionAvailabilities-availableTerritories-get_to_many_related", + "parameters": [ + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Territories", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/TerritoriesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionGroups/{id}/relationships/subscriptionGroupLocalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionGroups/{id}/subscriptionGroupLocalizations": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups-subscriptionGroupLocalizations-get_to_many_related", + "parameters": [ + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "referenceName", + "subscriptionGroupLocalizations", + "subscriptions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionGroupLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroupLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customAppName", + "locale", + "name", + "state", + "subscriptionGroup" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionGroup" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionGroupLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionGroupLocalizationsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionGroups/{id}/relationships/subscriptions": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionGroups/{id}/subscriptions": { + "get": { + "tags": [ + "SubscriptionGroups" + ], + "operationId": "subscriptionGroups-subscriptions-get_to_many_related", + "parameters": [ + { + "name": "filter[name]", + "in": "query", + "description": "filter by attribute 'name'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[productId]", + "in": "query", + "description": "filter by attribute 'productId'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[state]", + "in": "query", + "description": "filter by attribute 'state'", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "MISSING_METADATA", + "READY_TO_SUBMIT", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "DEVELOPER_ACTION_NEEDED", + "PENDING_BINARY_APPROVAL", + "APPROVED", + "DEVELOPER_REMOVED_FROM_SALE", + "REMOVED_FROM_SALE", + "REJECTED" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "sort", + "in": "query", + "description": "comma-separated list of sort expressions; resources will be sorted as specified", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "-name" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPromotionalOffers]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "duration", + "name", + "numberOfPeriods", + "offerCode", + "offerMode", + "prices", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "customCodes", + "customerEligibilities", + "duration", + "name", + "numberOfPeriods", + "offerEligibility", + "offerMode", + "oneTimeUseCodes", + "prices", + "subscription", + "totalNumberOfCodes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "subscription", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionGroups]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionGroups", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "referenceName", + "subscriptionGroupLocalizations", + "subscriptions" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionIntroductoryOffers]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "duration", + "endDate", + "numberOfPeriods", + "offerMode", + "startDate", + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "preserveCurrentPrice", + "preserved", + "startDate", + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "name", + "state", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[subscriptionLocalizations]", + "in": "query", + "description": "maximum number of related subscriptionLocalizations returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[introductoryOffers]", + "in": "query", + "description": "maximum number of related introductoryOffers returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[promotionalOffers]", + "in": "query", + "description": "maximum number of related promotionalOffers returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[offerCodes]", + "in": "query", + "description": "maximum number of related offerCodes returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "group", + "introductoryOffers", + "offerCodes", + "prices", + "promotedPurchase", + "promotionalOffers", + "subscriptionAvailability", + "subscriptionLocalizations" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Subscriptions", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodeOneTimeUseCodes/{id}/values": { + "get": { + "tags": [ + "SubscriptionOfferCodeOneTimeUseCodes" + ], + "operationId": "subscriptionOfferCodeOneTimeUseCodes-values-get_to_one_related", + "parameters": [], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionOfferCodeOneTimeUseCodeValue", + "content": { + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodes/{id}/relationships/customCodes": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodes/{id}/customCodes": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes-customCodes-get_to_many_related", + "parameters": [ + { + "name": "fields[subscriptionOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "createdDate", + "customCode", + "expirationDate", + "numberOfCodes", + "offerCode" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "customCodes", + "customerEligibilities", + "duration", + "name", + "numberOfPeriods", + "offerEligibility", + "offerMode", + "oneTimeUseCodes", + "prices", + "subscription", + "totalNumberOfCodes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "offerCode" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionOfferCodeCustomCodes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCodesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodes/{id}/relationships/oneTimeUseCodes": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodes/{id}/oneTimeUseCodes": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes-oneTimeUseCodes-get_to_many_related", + "parameters": [ + { + "name": "fields[subscriptionOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "customCodes", + "customerEligibilities", + "duration", + "name", + "numberOfPeriods", + "offerEligibility", + "offerMode", + "oneTimeUseCodes", + "prices", + "subscription", + "totalNumberOfCodes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "createdDate", + "expirationDate", + "numberOfCodes", + "offerCode", + "values" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "offerCode" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionOfferCodeOneTimeUseCodes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCodesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodes/{id}/relationships/prices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionOfferCodes/{id}/prices": { + "get": { + "tags": [ + "SubscriptionOfferCodes" + ], + "operationId": "subscriptionOfferCodes-prices-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodePrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionOfferCodePrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodePricesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionPricePoints/{id}/relationships/equalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionPricePoints/{id}/equalizations": { + "get": { + "tags": [ + "SubscriptionPricePoints" + ], + "operationId": "subscriptionPricePoints-equalizations-get_to_many_related", + "parameters": [ + { + "name": "filter[subscription]", + "in": "query", + "description": "filter by id(s) of related 'subscription'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionPricePoints", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricePointsResponse" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionPromotionalOffers/{id}/relationships/prices": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptionPromotionalOffers/{id}/prices": { + "get": { + "tags": [ + "SubscriptionPromotionalOffers" + ], + "operationId": "subscriptionPromotionalOffers-prices-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPromotionalOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionPromotionalOfferPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPricesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/appStoreReviewScreenshot": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/appStoreReviewScreenshot": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-appStoreReviewScreenshot-get_to_one_related", + "parameters": [ + { + "name": "fields[subscriptionAppStoreReviewScreenshots]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAppStoreReviewScreenshots", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetDeliveryState", + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "sourceFileChecksum", + "subscription", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionAppStoreReviewScreenshot", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshotResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/introductoryOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-introductoryOffers-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffersLinkagesResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-introductoryOffers-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffersLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/introductoryOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-introductoryOffers-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionIntroductoryOffers]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionIntroductoryOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "duration", + "endDate", + "numberOfPeriods", + "offerMode", + "startDate", + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionIntroductoryOffers", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffersResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/offerCodes": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/offerCodes": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-offerCodes-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by territory", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodeCustomCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeCustomCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "createdDate", + "customCode", + "expirationDate", + "numberOfCodes", + "offerCode" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "customCodes", + "customerEligibilities", + "duration", + "name", + "numberOfPeriods", + "offerEligibility", + "offerMode", + "oneTimeUseCodes", + "prices", + "subscription", + "totalNumberOfCodes" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodeOneTimeUseCodes]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodeOneTimeUseCodes", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "active", + "createdDate", + "expirationDate", + "numberOfCodes", + "offerCode", + "values" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionOfferCodePrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionOfferCodePrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[oneTimeUseCodes]", + "in": "query", + "description": "maximum number of related oneTimeUseCodes returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[customCodes]", + "in": "query", + "description": "maximum number of related customCodes returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customCodes", + "oneTimeUseCodes", + "prices", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionOfferCodes", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionOfferCodesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/pricePoints": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/pricePoints": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-pricePoints-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 8000 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionPricePoints", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricePointsResponse" + } + }, + "text/csv": { + "schema": { + "$ref": "#/components/schemas/csv" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/prices": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-prices-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricesLinkagesResponse" + } + } + } + } + } + }, + "delete": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-prices-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricesLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/prices": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-prices-get_to_many_related", + "parameters": [ + { + "name": "filter[subscriptionPricePoint]", + "in": "query", + "description": "filter by id(s) of related 'subscriptionPricePoint'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "filter[territory]", + "in": "query", + "description": "filter by id(s) of related 'territory'", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPricePoints]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPricePoints", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "customerPrice", + "equalizations", + "proceeds", + "proceedsYear2", + "subscription", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "preserveCurrentPrice", + "preserved", + "startDate", + "subscription", + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionPrices", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPricesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/promotedPurchase": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/promotedPurchase": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-promotedPurchase-get_to_one_related", + "parameters": [ + { + "name": "fields[promotedPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "enabled", + "inAppPurchaseV2", + "promotionImages", + "state", + "subscription", + "visibleForAllUsers" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[inAppPurchases]", + "in": "query", + "description": "the fields to include for returned resources of type inAppPurchases", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "app", + "appStoreReviewScreenshot", + "availableInAllTerritories", + "content", + "contentHosting", + "familySharable", + "iapPriceSchedule", + "inAppPurchaseAvailability", + "inAppPurchaseLocalizations", + "inAppPurchaseType", + "name", + "pricePoints", + "productId", + "promotedPurchase", + "reviewNote", + "state" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[promotedPurchaseImages]", + "in": "query", + "description": "the fields to include for returned resources of type promotedPurchaseImages", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "assetToken", + "assetType", + "fileName", + "fileSize", + "imageAsset", + "promotedPurchase", + "sourceFileChecksum", + "state", + "uploadOperations", + "uploaded" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[promotionImages]", + "in": "query", + "description": "maximum number of related promotionImages returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "inAppPurchaseV2", + "promotionImages", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single PromotedPurchase", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PromotedPurchaseResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/promotionalOffers": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/promotionalOffers": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-promotionalOffers-get_to_many_related", + "parameters": [ + { + "name": "filter[territory]", + "in": "query", + "description": "filter by territory", + "schema": { + "type": "array", + "items": { + "type": "string" + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPromotionalOffers]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPromotionalOffers", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "duration", + "name", + "numberOfPeriods", + "offerCode", + "offerMode", + "prices", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionPromotionalOfferPrices]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionPromotionalOfferPrices", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscriptionPricePoint", + "territory" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "limit[prices]", + "in": "query", + "description": "maximum number of related prices returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "prices", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionPromotionalOffers", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionPromotionalOffersResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/subscriptionAvailability": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/subscriptionAvailability": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-subscriptionAvailability-get_to_one_related", + "parameters": [ + { + "name": "fields[subscriptionAvailabilities]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionAvailabilities", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableInNewTerritories", + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[territories]", + "in": "query", + "description": "the fields to include for returned resources of type territories", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "currency" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit[availableTerritories]", + "in": "query", + "description": "maximum number of related availableTerritories returned (when they are included)", + "schema": { + "type": "integer", + "maximum": 50 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "availableTerritories", + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "Single SubscriptionAvailability", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionAvailabilityResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/relationships/subscriptionLocalizations": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/subscriptions/{id}/subscriptionLocalizations": { + "get": { + "tags": [ + "Subscriptions" + ], + "operationId": "subscriptions-subscriptionLocalizations-get_to_many_related", + "parameters": [ + { + "name": "fields[subscriptions]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptions", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appStoreReviewScreenshot", + "availableInAllTerritories", + "familySharable", + "group", + "groupLevel", + "introductoryOffers", + "name", + "offerCodes", + "pricePoints", + "prices", + "productId", + "promotedPurchase", + "promotionalOffers", + "reviewNote", + "state", + "subscriptionAvailability", + "subscriptionLocalizations", + "subscriptionPeriod" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "fields[subscriptionLocalizations]", + "in": "query", + "description": "the fields to include for returned resources of type subscriptionLocalizations", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "description", + "locale", + "name", + "state", + "subscription" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + }, + { + "name": "include", + "in": "query", + "description": "comma-separated list of relationships to include", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "subscription" + ] + } + }, + "style": "form", + "explode": false + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of SubscriptionLocalizations", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/SubscriptionLocalizationsResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/userInvitations/{id}/relationships/visibleApps": { + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/userInvitations/{id}/visibleApps": { + "get": { + "tags": [ + "UserInvitations" + ], + "operationId": "userInvitations-visibleApps-get_to_many_related", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Apps with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppsWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/users/{id}/relationships/visibleApps": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users-visibleApps-get_to_many_relationship", + "parameters": [ + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesResponse" + } + } + } + } + } + }, + "post": { + "tags": [ + "Users" + ], + "operationId": "users-visibleApps-create_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "patch": { + "tags": [ + "Users" + ], + "operationId": "users-visibleApps-replace_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "delete": { + "tags": [ + "Users" + ], + "operationId": "users-visibleApps-delete_to_many_relationship", + "requestBody": { + "description": "List of related linkages", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UserVisibleAppsLinkagesRequest" + } + } + }, + "required": true + }, + "responses": { + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "409": { + "description": "Request entity error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "204": { + "description": "Success (no content)" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + }, + "/v1/users/{id}/visibleApps": { + "get": { + "tags": [ + "Users" + ], + "operationId": "users-visibleApps-get_to_many_related", + "parameters": [ + { + "name": "fields[apps]", + "in": "query", + "description": "the fields to include for returned resources of type apps", + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "appAvailability", + "appClips", + "appCustomProductPages", + "appEncryptionDeclarations", + "appEvents", + "appInfos", + "appPricePoints", + "appPriceSchedule", + "appStoreVersionExperimentsV2", + "appStoreVersions", + "availableInNewTerritories", + "availableTerritories", + "betaAppLocalizations", + "betaAppReviewDetail", + "betaGroups", + "betaLicenseAgreement", + "betaTesters", + "builds", + "bundleId", + "ciProduct", + "contentRightsDeclaration", + "customerReviews", + "endUserLicenseAgreement", + "gameCenterDetail", + "gameCenterEnabledVersions", + "inAppPurchases", + "inAppPurchasesV2", + "isOrEverWasMadeForKids", + "name", + "perfPowerMetrics", + "preOrder", + "preReleaseVersions", + "pricePoints", + "prices", + "primaryLocale", + "promotedPurchases", + "reviewSubmissions", + "sku", + "subscriptionGracePeriod", + "subscriptionGroups", + "subscriptionStatusUrl", + "subscriptionStatusUrlForSandbox", + "subscriptionStatusUrlVersion", + "subscriptionStatusUrlVersionForSandbox" + ] + } + }, + "style": "form", + "explode": false + }, + { + "name": "limit", + "in": "query", + "description": "maximum resources per page", + "schema": { + "type": "integer", + "maximum": 200 + }, + "style": "form" + } + ], + "responses": { + "400": { + "description": "Parameter error(s)", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "403": { + "description": "Forbidden error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "404": { + "description": "Not found error", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ErrorResponse" + } + } + } + }, + "200": { + "description": "List of Apps with get", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AppsWithoutIncludesResponse" + } + } + } + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "description": "the id of the requested resource", + "schema": { + "type": "string" + }, + "style": "simple", + "required": true + } + ] + } + }, + "components": { + "schemas": { + "Actor": { + "type": "object", + "title": "Actor", + "properties": { + "type": { + "type": "string", + "enum": [ + "actors" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "actorType": { + "type": "string", + "enum": [ + "USER", + "API_KEY", + "XCODE_CLOUD", + "APPLE" + ] + }, + "userFirstName": { + "type": "string" + }, + "userLastName": { + "type": "string" + }, + "userEmail": { + "type": "string" + }, + "apiKeyId": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "ActorsResponse": { + "type": "object", + "title": "ActorsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Actor" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ActorResponse": { + "type": "object", + "title": "ActorResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Actor" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AgeRatingDeclaration": { + "type": "object", + "title": "AgeRatingDeclaration", + "properties": { + "type": { + "type": "string", + "enum": [ + "ageRatingDeclarations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "alcoholTobaccoOrDrugUseOrReferences": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "contests": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "gamblingAndContests": { + "type": "boolean", + "deprecated": true + }, + "gambling": { + "type": "boolean" + }, + "gamblingSimulated": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "kidsAgeBand": { + "$ref": "#/components/schemas/KidsAgeBand" + }, + "medicalOrTreatmentInformation": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "profanityOrCrudeHumor": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "sexualContentGraphicAndNudity": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "sexualContentOrNudity": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "seventeenPlus": { + "type": "boolean" + }, + "horrorOrFearThemes": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "matureOrSuggestiveThemes": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "unrestrictedWebAccess": { + "type": "boolean" + }, + "violenceCartoonOrFantasy": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "violenceRealisticProlongedGraphicOrSadistic": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "violenceRealistic": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AgeRatingDeclarationResponse": { + "type": "object", + "title": "AgeRatingDeclarationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AgeRatingDeclarationUpdateRequest": { + "type": "object", + "title": "AgeRatingDeclarationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ageRatingDeclarations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "alcoholTobaccoOrDrugUseOrReferences": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "contests": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "gamblingAndContests": { + "type": "boolean", + "deprecated": true + }, + "gambling": { + "type": "boolean" + }, + "gamblingSimulated": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "kidsAgeBand": { + "$ref": "#/components/schemas/KidsAgeBand" + }, + "medicalOrTreatmentInformation": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "profanityOrCrudeHumor": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "sexualContentGraphicAndNudity": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "sexualContentOrNudity": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "seventeenPlus": { + "type": "boolean" + }, + "horrorOrFearThemes": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "matureOrSuggestiveThemes": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "unrestrictedWebAccess": { + "type": "boolean" + }, + "violenceCartoonOrFantasy": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "violenceRealisticProlongedGraphicOrSadistic": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + }, + "violenceRealistic": { + "type": "string", + "enum": [ + "NONE", + "INFREQUENT_OR_MILD", + "FREQUENT_OR_INTENSE" + ] + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppAvailabilityV2": { + "type": "object", + "title": "AppAvailabilityV2", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territoryAvailabilities": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAvailabilityV2Response": { + "type": "object", + "title": "AppAvailabilityV2Response", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAvailabilityV2" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TerritoryAvailability" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAvailabilityV2CreateRequest": { + "type": "object", + "title": "AppAvailabilityV2CreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAvailabilities" + ] + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + }, + "required": [ + "availableInNewTerritories" + ] + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "territoryAvailabilities": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app", + "territoryAvailabilities" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/TerritoryAvailabilityInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "AppAvailability": { + "type": "object", + "title": "AppAvailability", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAvailabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "availableTerritories": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppAvailabilityResponse": { + "type": "object", + "title": "AppAvailabilityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppAvailability" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Territory" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppAvailabilityCreateRequest": { + "type": "object", + "title": "AppAvailabilityCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appAvailabilities" + ] + }, + "attributes": { + "type": "object", + "properties": { + "availableInNewTerritories": { + "type": "boolean" + } + }, + "required": [ + "availableInNewTerritories" + ] + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "availableTerritories": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app", + "availableTerritories" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppCategory": { + "type": "object", + "title": "AppCategory", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "platforms": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Platform" + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subcategories": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "parent": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppCategoriesResponse": { + "type": "object", + "title": "AppCategoriesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCategory" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCategory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCategoryResponse": { + "type": "object", + "title": "AppCategoryResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppCategory" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCategory" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipAdvancedExperienceImage": { + "type": "object", + "title": "AppClipAdvancedExperienceImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipAdvancedExperienceImageResponse": { + "type": "object", + "title": "AppClipAdvancedExperienceImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImage" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipAdvancedExperienceImageCreateRequest": { + "type": "object", + "title": "AppClipAdvancedExperienceImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipAdvancedExperienceImageUpdateRequest": { + "type": "object", + "title": "AppClipAdvancedExperienceImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string" + }, + "uploaded": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipAdvancedExperienceLocalization": { + "type": "object", + "title": "AppClipAdvancedExperienceLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "language": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + }, + "title": { + "type": "string" + }, + "subtitle": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipAdvancedExperienceLocalizationInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "language": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + }, + "title": { + "type": "string" + }, + "subtitle": { + "type": "string" + } + } + } + }, + "required": [ + "type" + ] + }, + "AppClipAdvancedExperience": { + "type": "object", + "title": "AppClipAdvancedExperience", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperiences" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "link": { + "type": "string", + "format": "uri" + }, + "version": { + "type": "integer" + }, + "status": { + "type": "string", + "enum": [ + "RECEIVED", + "DEACTIVATED", + "APP_TRANSFER_IN_PROGRESS" + ] + }, + "action": { + "$ref": "#/components/schemas/AppClipAction" + }, + "isPoweredBy": { + "type": "boolean" + }, + "place": { + "type": "object", + "properties": { + "placeId": { + "type": "string" + }, + "names": { + "type": "array", + "items": { + "type": "string" + } + }, + "mainAddress": { + "type": "object", + "properties": { + "fullAddress": { + "type": "string" + }, + "structuredAddress": { + "type": "object", + "properties": { + "streetAddress": { + "type": "array", + "items": { + "type": "string" + } + }, + "floor": { + "type": "string" + }, + "neighborhood": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "stateProvince": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "countryCode": { + "type": "string" + } + } + } + } + }, + "displayPoint": { + "type": "object", + "properties": { + "coordinates": { + "type": "object", + "properties": { + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + } + } + }, + "source": { + "type": "string", + "enum": [ + "CALCULATED", + "MANUALLY_PLACED" + ] + } + } + }, + "mapAction": { + "type": "string", + "enum": [ + "BUY_TICKETS", + "VIEW_AVAILABILITY", + "VIEW_PRICING", + "HOTEL_BOOK_ROOM", + "PARKING_RESERVE_PARKING", + "RESTAURANT_JOIN_WAITLIST", + "RESTAURANT_ORDER_DELIVERY", + "RESTAURANT_ORDER_FOOD", + "RESTAURANT_ORDER_TAKEOUT", + "RESTAURANT_RESERVATION", + "SCHEDULE_APPOINTMENT", + "RESTAURANT_VIEW_MENU", + "THEATER_NOW_PLAYING" + ] + }, + "relationship": { + "type": "string", + "enum": [ + "OWNER", + "AUTHORIZED", + "OTHER" + ] + }, + "phoneNumber": { + "type": "object", + "properties": { + "number": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "FAX", + "LANDLINE", + "MOBILE", + "TOLLFREE" + ] + }, + "intent": { + "type": "string" + } + } + }, + "homePage": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "placeStatus": { + "type": "string", + "enum": [ + "PENDING", + "MATCHED", + "NO_MATCH" + ] + }, + "businessCategory": { + "type": "string", + "enum": [ + "AUTOMOTIVE", + "BEAUTY", + "BIKES", + "BOOKS", + "CASINO", + "EDUCATION", + "EDUCATION_JAPAN", + "ENTERTAINMENT", + "EV_CHARGER", + "FINANCIAL_USD", + "FINANCIAL_CNY", + "FINANCIAL_GBP", + "FINANCIAL_JPY", + "FINANCIAL_EUR", + "FITNESS", + "FOOD_AND_DRINK", + "GAS", + "GROCERY", + "HEALTH_AND_MEDICAL", + "HOTEL_AND_TRAVEL", + "MUSIC", + "PARKING", + "PET_SERVICES", + "PROFESSIONAL_SERVICES", + "SHOPPING", + "TICKETING", + "TRANSIT" + ] + }, + "defaultLanguage": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClip": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "headerImage": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipAdvancedExperiencesResponse": { + "type": "object", + "title": "AppClipAdvancedExperiencesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipAdvancedExperience" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImage" + }, + { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalization" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipAdvancedExperienceResponse": { + "type": "object", + "title": "AppClipAdvancedExperienceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipAdvancedExperience" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppClipAdvancedExperienceImage" + }, + { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalization" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipAdvancedExperienceCreateRequest": { + "type": "object", + "title": "AppClipAdvancedExperienceCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperiences" + ] + }, + "attributes": { + "type": "object", + "properties": { + "link": { + "type": "string", + "format": "uri" + }, + "action": { + "$ref": "#/components/schemas/AppClipAction" + }, + "isPoweredBy": { + "type": "boolean" + }, + "place": { + "type": "object", + "properties": { + "placeId": { + "type": "string" + }, + "names": { + "type": "array", + "items": { + "type": "string" + } + }, + "mainAddress": { + "type": "object", + "properties": { + "fullAddress": { + "type": "string" + }, + "structuredAddress": { + "type": "object", + "properties": { + "streetAddress": { + "type": "array", + "items": { + "type": "string" + } + }, + "floor": { + "type": "string" + }, + "neighborhood": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "stateProvince": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "countryCode": { + "type": "string" + } + } + } + } + }, + "displayPoint": { + "type": "object", + "properties": { + "coordinates": { + "type": "object", + "properties": { + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + } + } + }, + "source": { + "type": "string", + "enum": [ + "CALCULATED", + "MANUALLY_PLACED" + ] + } + } + }, + "mapAction": { + "type": "string", + "enum": [ + "BUY_TICKETS", + "VIEW_AVAILABILITY", + "VIEW_PRICING", + "HOTEL_BOOK_ROOM", + "PARKING_RESERVE_PARKING", + "RESTAURANT_JOIN_WAITLIST", + "RESTAURANT_ORDER_DELIVERY", + "RESTAURANT_ORDER_FOOD", + "RESTAURANT_ORDER_TAKEOUT", + "RESTAURANT_RESERVATION", + "SCHEDULE_APPOINTMENT", + "RESTAURANT_VIEW_MENU", + "THEATER_NOW_PLAYING" + ] + }, + "relationship": { + "type": "string", + "enum": [ + "OWNER", + "AUTHORIZED", + "OTHER" + ] + }, + "phoneNumber": { + "type": "object", + "properties": { + "number": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "FAX", + "LANDLINE", + "MOBILE", + "TOLLFREE" + ] + }, + "intent": { + "type": "string" + } + } + }, + "homePage": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "businessCategory": { + "type": "string", + "enum": [ + "AUTOMOTIVE", + "BEAUTY", + "BIKES", + "BOOKS", + "CASINO", + "EDUCATION", + "EDUCATION_JAPAN", + "ENTERTAINMENT", + "EV_CHARGER", + "FINANCIAL_USD", + "FINANCIAL_CNY", + "FINANCIAL_GBP", + "FINANCIAL_JPY", + "FINANCIAL_EUR", + "FITNESS", + "FOOD_AND_DRINK", + "GAS", + "GROCERY", + "HEALTH_AND_MEDICAL", + "HOTEL_AND_TRAVEL", + "MUSIC", + "PARKING", + "PET_SERVICES", + "PROFESSIONAL_SERVICES", + "SHOPPING", + "TICKETING", + "TRANSIT" + ] + }, + "defaultLanguage": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + } + }, + "required": [ + "defaultLanguage", + "isPoweredBy", + "link" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appClip": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "headerImage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "localizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appClip", + "headerImage", + "localizations" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalizationInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "AppClipAdvancedExperienceUpdateRequest": { + "type": "object", + "title": "AppClipAdvancedExperienceUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperiences" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "$ref": "#/components/schemas/AppClipAction" + }, + "isPoweredBy": { + "type": "boolean" + }, + "place": { + "type": "object", + "properties": { + "placeId": { + "type": "string" + }, + "names": { + "type": "array", + "items": { + "type": "string" + } + }, + "mainAddress": { + "type": "object", + "properties": { + "fullAddress": { + "type": "string" + }, + "structuredAddress": { + "type": "object", + "properties": { + "streetAddress": { + "type": "array", + "items": { + "type": "string" + } + }, + "floor": { + "type": "string" + }, + "neighborhood": { + "type": "string" + }, + "locality": { + "type": "string" + }, + "stateProvince": { + "type": "string" + }, + "postalCode": { + "type": "string" + }, + "countryCode": { + "type": "string" + } + } + } + } + }, + "displayPoint": { + "type": "object", + "properties": { + "coordinates": { + "type": "object", + "properties": { + "latitude": { + "type": "number" + }, + "longitude": { + "type": "number" + } + } + }, + "source": { + "type": "string", + "enum": [ + "CALCULATED", + "MANUALLY_PLACED" + ] + } + } + }, + "mapAction": { + "type": "string", + "enum": [ + "BUY_TICKETS", + "VIEW_AVAILABILITY", + "VIEW_PRICING", + "HOTEL_BOOK_ROOM", + "PARKING_RESERVE_PARKING", + "RESTAURANT_JOIN_WAITLIST", + "RESTAURANT_ORDER_DELIVERY", + "RESTAURANT_ORDER_FOOD", + "RESTAURANT_ORDER_TAKEOUT", + "RESTAURANT_RESERVATION", + "SCHEDULE_APPOINTMENT", + "RESTAURANT_VIEW_MENU", + "THEATER_NOW_PLAYING" + ] + }, + "relationship": { + "type": "string", + "enum": [ + "OWNER", + "AUTHORIZED", + "OTHER" + ] + }, + "phoneNumber": { + "type": "object", + "properties": { + "number": { + "type": "string" + }, + "type": { + "type": "string", + "enum": [ + "FAX", + "LANDLINE", + "MOBILE", + "TOLLFREE" + ] + }, + "intent": { + "type": "string" + } + } + }, + "homePage": { + "type": "string" + }, + "categories": { + "type": "array", + "items": { + "type": "string" + } + } + } + }, + "businessCategory": { + "type": "string", + "enum": [ + "AUTOMOTIVE", + "BEAUTY", + "BIKES", + "BOOKS", + "CASINO", + "EDUCATION", + "EDUCATION_JAPAN", + "ENTERTAINMENT", + "EV_CHARGER", + "FINANCIAL_USD", + "FINANCIAL_CNY", + "FINANCIAL_GBP", + "FINANCIAL_JPY", + "FINANCIAL_EUR", + "FITNESS", + "FOOD_AND_DRINK", + "GAS", + "GROCERY", + "HEALTH_AND_MEDICAL", + "HOTEL_AND_TRAVEL", + "MUSIC", + "PARKING", + "PET_SERVICES", + "PROFESSIONAL_SERVICES", + "SHOPPING", + "TICKETING", + "TRANSIT" + ] + }, + "defaultLanguage": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" + }, + "removed": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClip": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "headerImage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAdvancedExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalizationInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "AppClipAppStoreReviewDetail": { + "type": "object", + "title": "AppClipAppStoreReviewDetail", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAppStoreReviewDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "invocationUrls": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClipDefaultExperience": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipAppStoreReviewDetailResponse": { + "type": "object", + "title": "AppClipAppStoreReviewDetailResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetail" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipDefaultExperience" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipAppStoreReviewDetailCreateRequest": { + "type": "object", + "title": "AppClipAppStoreReviewDetailCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAppStoreReviewDetails" + ] + }, + "attributes": { + "type": "object", + "properties": { + "invocationUrls": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClipDefaultExperience": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appClipDefaultExperience" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipAppStoreReviewDetailUpdateRequest": { + "type": "object", + "title": "AppClipAppStoreReviewDetailUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAppStoreReviewDetails" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "invocationUrls": { + "type": "array", + "items": { + "type": "string", + "format": "uri" + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipDefaultExperienceLocalization": { + "type": "object", + "title": "AppClipDefaultExperienceLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "subtitle": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClipDefaultExperience": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipHeaderImage": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipHeaderImages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipDefaultExperienceLocalizationsResponse": { + "type": "object", + "title": "AppClipDefaultExperienceLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/AppClipHeaderImage" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceLocalizationResponse": { + "type": "object", + "title": "AppClipDefaultExperienceLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/AppClipHeaderImage" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceLocalizationCreateRequest": { + "type": "object", + "title": "AppClipDefaultExperienceLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "subtitle": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appClipDefaultExperience": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appClipDefaultExperience" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipDefaultExperienceLocalizationUpdateRequest": { + "type": "object", + "title": "AppClipDefaultExperienceLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "subtitle": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipDefaultExperience": { + "type": "object", + "title": "AppClipDefaultExperience", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "$ref": "#/components/schemas/AppClipAction" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClip": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "releaseWithAppStoreVersion": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperienceLocalizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appClipAppStoreReviewDetail": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipAppStoreReviewDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipDefaultExperiencesResponse": { + "type": "object", + "title": "AppClipDefaultExperiencesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipDefaultExperience" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + }, + { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetail" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceResponse": { + "type": "object", + "title": "AppClipDefaultExperienceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + }, + { + "$ref": "#/components/schemas/AppClipAppStoreReviewDetail" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceCreateRequest": { + "type": "object", + "title": "AppClipDefaultExperienceCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "$ref": "#/components/schemas/AppClipAction" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClip": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "releaseWithAppStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperienceTemplate": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "required": [ + "appClip" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipDefaultExperienceUpdateRequest": { + "type": "object", + "title": "AppClipDefaultExperienceUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "action": { + "$ref": "#/components/schemas/AppClipAction" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "releaseWithAppStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipDomainStatus": { + "type": "object", + "title": "AppClipDomainStatus", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDomainStatuses" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "domains": { + "type": "array", + "items": { + "type": "object", + "properties": { + "domain": { + "type": "string" + }, + "isValid": { + "type": "boolean" + }, + "lastUpdatedDate": { + "type": "string", + "format": "date-time" + }, + "errorCode": { + "type": "string", + "enum": [ + "BAD_HTTP_RESPONSE", + "BAD_JSON_CONTENT", + "BAD_PKCS7_SIGNATURE", + "CANNOT_REACH_AASA_FILE", + "DNS_ERROR", + "INSECURE_REDIRECTS_FORBIDDEN", + "INVALID_ENTITLEMENT_MISSING_SECTION", + "INVALID_ENTITLEMENT_SYNTAX_ERROR", + "INVALID_ENTITLEMENT_UNHANDLED_SECTION", + "INVALID_ENTITLEMENT_UNKNOWN_ID", + "NETWORK_ERROR", + "NETWORK_ERROR_TEMPORARY", + "OTHER_ERROR", + "TIMEOUT", + "TLS_ERROR", + "UNEXPECTED_ERROR" + ] + } + } + } + }, + "lastUpdatedDate": { + "type": "string", + "format": "date-time" + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipDomainStatusResponse": { + "type": "object", + "title": "AppClipDomainStatusResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipDomainStatus" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipHeaderImage": { + "type": "object", + "title": "AppClipHeaderImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipHeaderImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appClipDefaultExperienceLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipHeaderImageResponse": { + "type": "object", + "title": "AppClipHeaderImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClipHeaderImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipHeaderImageCreateRequest": { + "type": "object", + "title": "AppClipHeaderImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipHeaderImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appClipDefaultExperienceLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperienceLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appClipDefaultExperienceLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClipHeaderImageUpdateRequest": { + "type": "object", + "title": "AppClipHeaderImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipHeaderImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string" + }, + "uploaded": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppClip": { + "type": "object", + "title": "AppClip", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperiences": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppClipsResponse": { + "type": "object", + "title": "AppClipsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppClip" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipResponse": { + "type": "object", + "title": "AppClipResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppClip" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalization": { + "type": "object", + "title": "AppCustomProductPageLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "promotionalText": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appCustomProductPageVersion": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appScreenshotSets": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appPreviewSets": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppCustomProductPageLocalizationInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "promotionalText": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appCustomProductPageVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + }, + "AppCustomProductPageLocalizationsResponse": { + "type": "object", + "title": "AppCustomProductPageLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationResponse": { + "type": "object", + "title": "AppCustomProductPageLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageLocalizationCreateRequest": { + "type": "object", + "title": "AppCustomProductPageLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "promotionalText": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appCustomProductPageVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appCustomProductPageVersion" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppCustomProductPageLocalizationUpdateRequest": { + "type": "object", + "title": "AppCustomProductPageLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "promotionalText": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppCustomProductPageVersion": { + "type": "object", + "title": "AppCustomProductPageVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "version": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REPLACED_WITH_NEW_VERSION", + "REJECTED" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appCustomProductPage": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageLocalizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppCustomProductPageVersionInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "appCustomProductPage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageLocalizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "AppCustomProductPageVersionsResponse": { + "type": "object", + "title": "AppCustomProductPageVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageVersionResponse": { + "type": "object", + "title": "AppCustomProductPageVersionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageVersionCreateRequest": { + "type": "object", + "title": "AppCustomProductPageVersionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appCustomProductPage": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "appCustomProductPageLocalizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "required": [ + "appCustomProductPage" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppCustomProductPage": { + "type": "object", + "title": "AppCustomProductPage", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "url": { + "type": "string", + "format": "uri" + }, + "visible": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageVersions": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppCustomProductPagesResponse": { + "type": "object", + "title": "AppCustomProductPagesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCustomProductPage" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageResponse": { + "type": "object", + "title": "AppCustomProductPageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersion" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCustomProductPageCreateRequest": { + "type": "object", + "title": "AppCustomProductPageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + }, + "required": [ + "name" + ] + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "appCustomProductPageVersions": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersionTemplate": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "customProductPageTemplate": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppCustomProductPageLocalizationInlineCreate" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageVersionInlineCreate" + } + ] + } + } + }, + "required": [ + "data" + ] + }, + "AppCustomProductPageUpdateRequest": { + "type": "object", + "title": "AppCustomProductPageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "visible": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEncryptionDeclarationDocument": { + "type": "object", + "title": "AppEncryptionDeclarationDocument", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarationDocuments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "assetToken": { + "type": "string" + }, + "downloadUrl": { + "type": "string", + "format": "uri" + }, + "sourceFileChecksum": { + "type": "string" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppEncryptionDeclarationDocumentResponse": { + "type": "object", + "title": "AppEncryptionDeclarationDocumentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocument" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEncryptionDeclarationDocumentCreateRequest": { + "type": "object", + "title": "AppEncryptionDeclarationDocumentCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarationDocuments" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appEncryptionDeclaration": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appEncryptionDeclaration" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEncryptionDeclarationDocumentUpdateRequest": { + "type": "object", + "title": "AppEncryptionDeclarationDocumentUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarationDocuments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "sourceFileChecksum": { + "type": "string" + }, + "uploaded": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEncryptionDeclaration": { + "type": "object", + "title": "AppEncryptionDeclaration", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "appDescription": { + "type": "string" + }, + "createdDate": { + "type": "string", + "format": "date-time" + }, + "usesEncryption": { + "type": "boolean", + "deprecated": true + }, + "exempt": { + "type": "boolean" + }, + "containsProprietaryCryptography": { + "type": "boolean" + }, + "containsThirdPartyCryptography": { + "type": "boolean" + }, + "availableOnFrenchStore": { + "type": "boolean" + }, + "platform": { + "deprecated": true, + "$ref": "#/components/schemas/Platform" + }, + "uploadedDate": { + "type": "string", + "format": "date-time", + "deprecated": true + }, + "documentUrl": { + "type": "string", + "deprecated": true + }, + "documentName": { + "type": "string", + "deprecated": true + }, + "documentType": { + "type": "string", + "deprecated": true + }, + "appEncryptionDeclarationState": { + "$ref": "#/components/schemas/AppEncryptionDeclarationState" + }, + "codeValue": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "builds": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "appEncryptionDeclarationDocument": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarationDocuments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppEncryptionDeclarationsResponse": { + "type": "object", + "title": "AppEncryptionDeclarationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocument" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEncryptionDeclarationResponse": { + "type": "object", + "title": "AppEncryptionDeclarationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/AppEncryptionDeclarationDocument" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventLocalization": { + "type": "object", + "title": "AppEventLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "shortDescription": { + "type": "string" + }, + "longDescription": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appEvent": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appEventScreenshots": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventScreenshots" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appEventVideoClips": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventVideoClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppEventLocalizationsResponse": { + "type": "object", + "title": "AppEventLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/AppEventScreenshot" + }, + { + "$ref": "#/components/schemas/AppEventVideoClip" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventLocalizationResponse": { + "type": "object", + "title": "AppEventLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEventLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/AppEventScreenshot" + }, + { + "$ref": "#/components/schemas/AppEventVideoClip" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventLocalizationCreateRequest": { + "type": "object", + "title": "AppEventLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "shortDescription": { + "type": "string" + }, + "longDescription": { + "type": "string" + } + }, + "required": [ + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appEvent": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appEvent" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEventLocalizationUpdateRequest": { + "type": "object", + "title": "AppEventLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "shortDescription": { + "type": "string" + }, + "longDescription": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEventScreenshot": { + "type": "object", + "title": "AppEventScreenshot", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventScreenshots" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "assetToken": { + "type": "string" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + }, + "appEventAssetType": { + "$ref": "#/components/schemas/AppEventAssetType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appEventLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppEventScreenshotsResponse": { + "type": "object", + "title": "AppEventScreenshotsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventScreenshot" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventScreenshotResponse": { + "type": "object", + "title": "AppEventScreenshotResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEventScreenshot" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventScreenshotCreateRequest": { + "type": "object", + "title": "AppEventScreenshotCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventScreenshots" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "appEventAssetType": { + "$ref": "#/components/schemas/AppEventAssetType" + } + }, + "required": [ + "fileName", + "appEventAssetType", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appEventLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appEventLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEventScreenshotUpdateRequest": { + "type": "object", + "title": "AppEventScreenshotUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventScreenshots" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEventVideoClip": { + "type": "object", + "title": "AppEventVideoClip", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventVideoClips" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "previewFrameTimeCode": { + "type": "string" + }, + "videoUrl": { + "type": "string" + }, + "previewImage": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + }, + "appEventAssetType": { + "$ref": "#/components/schemas/AppEventAssetType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appEventLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppEventVideoClipsResponse": { + "type": "object", + "title": "AppEventVideoClipsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventVideoClip" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventVideoClipResponse": { + "type": "object", + "title": "AppEventVideoClipResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEventVideoClip" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventVideoClipCreateRequest": { + "type": "object", + "title": "AppEventVideoClipCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventVideoClips" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "previewFrameTimeCode": { + "type": "string" + }, + "appEventAssetType": { + "$ref": "#/components/schemas/AppEventAssetType" + } + }, + "required": [ + "fileName", + "appEventAssetType", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appEventLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appEventLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEventVideoClipUpdateRequest": { + "type": "object", + "title": "AppEventVideoClipUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventVideoClips" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "previewFrameTimeCode": { + "type": "string" + }, + "uploaded": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppEvent": { + "type": "object", + "title": "AppEvent", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "badge": { + "type": "string", + "enum": [ + "LIVE_EVENT", + "PREMIERE", + "CHALLENGE", + "COMPETITION", + "NEW_SEASON", + "MAJOR_UPDATE", + "SPECIAL_EVENT" + ] + }, + "eventState": { + "type": "string", + "enum": [ + "DRAFT", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "REJECTED", + "ACCEPTED", + "APPROVED", + "PUBLISHED", + "PAST", + "ARCHIVED" + ] + }, + "deepLink": { + "type": "string", + "format": "uri" + }, + "purchaseRequirement": { + "type": "string", + "enum": [ + "NO_COST_ASSOCIATED", + "IN_APP_PURCHASE", + "SUBSCRIPTION", + "IN_APP_PURCHASE_AND_SUBSCRIPTION", + "IN_APP_PURCHASE_OR_SUBSCRIPTION" + ] + }, + "primaryLocale": { + "type": "string" + }, + "priority": { + "type": "string", + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "purpose": { + "type": "string", + "enum": [ + "APPROPRIATE_FOR_ALL_USERS", + "ATTRACT_NEW_USERS", + "KEEP_ACTIVE_USERS_INFORMED", + "BRING_BACK_LAPSED_USERS" + ] + }, + "territorySchedules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "territories": { + "type": "array", + "items": { + "type": "string" + } + }, + "publishStart": { + "type": "string", + "format": "date-time" + }, + "eventStart": { + "type": "string", + "format": "date-time" + }, + "eventEnd": { + "type": "string", + "format": "date-time" + } + } + } + }, + "archivedTerritorySchedules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "territories": { + "type": "array", + "items": { + "type": "string" + } + }, + "publishStart": { + "type": "string", + "format": "date-time" + }, + "eventStart": { + "type": "string", + "format": "date-time" + }, + "eventEnd": { + "type": "string", + "format": "date-time" + } + } + } + } + } + }, + "relationships": { + "type": "object", + "properties": { + "localizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEventLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppEventsResponse": { + "type": "object", + "title": "AppEventsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEvent" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventResponse": { + "type": "object", + "title": "AppEventResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppEvent" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppEventLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEventCreateRequest": { + "type": "object", + "title": "AppEventCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "badge": { + "type": "string", + "enum": [ + "LIVE_EVENT", + "PREMIERE", + "CHALLENGE", + "COMPETITION", + "NEW_SEASON", + "MAJOR_UPDATE", + "SPECIAL_EVENT" + ] + }, + "deepLink": { + "type": "string", + "format": "uri" + }, + "purchaseRequirement": { + "type": "string", + "enum": [ + "NO_COST_ASSOCIATED", + "IN_APP_PURCHASE", + "SUBSCRIPTION", + "IN_APP_PURCHASE_AND_SUBSCRIPTION", + "IN_APP_PURCHASE_OR_SUBSCRIPTION" + ] + }, + "primaryLocale": { + "type": "string" + }, + "priority": { + "type": "string", + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "purpose": { + "type": "string", + "enum": [ + "APPROPRIATE_FOR_ALL_USERS", + "ATTRACT_NEW_USERS", + "KEEP_ACTIVE_USERS_INFORMED", + "BRING_BACK_LAPSED_USERS" + ] + }, + "territorySchedules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "territories": { + "type": "array", + "items": { + "type": "string" + } + }, + "publishStart": { + "type": "string", + "format": "date-time" + }, + "eventStart": { + "type": "string", + "format": "date-time" + }, + "eventEnd": { + "type": "string", + "format": "date-time" + } + } + } + } + }, + "required": [ + "referenceName" + ] + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] } - } + }, + "required": [ + "data" + ] }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - }, - "/v1/users/{id}/visibleApps": { - "get": { - "tags": [ - "Users" - ], - "operationId": "users-visibleApps-get_to_many_related", - "parameters": [ - { - "name": "fields[apps]", - "in": "query", - "description": "the fields to include for returned resources of type apps", - "schema": { - "type": "array", - "items": { + "AppEventUpdateRequest": { + "type": "object", + "title": "AppEventUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "enum": [ - "appAvailability", - "appClips", - "appCustomProductPages", - "appEvents", - "appInfos", - "appPricePoints", - "appPriceSchedule", - "appStoreVersionExperimentsV2", - "appStoreVersions", - "availableInNewTerritories", - "availableTerritories", - "betaAppLocalizations", - "betaAppReviewDetail", - "betaGroups", - "betaLicenseAgreement", - "betaTesters", - "builds", - "bundleId", - "ciProduct", - "contentRightsDeclaration", - "customerReviews", - "endUserLicenseAgreement", - "gameCenterEnabledVersions", - "inAppPurchases", - "inAppPurchasesV2", - "isOrEverWasMadeForKids", - "name", - "perfPowerMetrics", - "preOrder", - "preReleaseVersions", - "pricePoints", - "prices", - "primaryLocale", - "promotedPurchases", - "reviewSubmissions", - "sku", - "subscriptionGracePeriod", - "subscriptionGroups", - "subscriptionStatusUrl", - "subscriptionStatusUrlForSandbox", - "subscriptionStatusUrlVersion", - "subscriptionStatusUrlVersionForSandbox" + "appEvents" ] - } - }, - "style": "form", - "explode": false - }, - { - "name": "limit", - "in": "query", - "description": "maximum resources per page", - "schema": { - "type": "integer", - "maximum": 200 - }, - "style": "form" - } - ], - "responses": { - "400": { - "description": "Parameter error(s)", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "403": { - "description": "Forbidden error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "404": { - "description": "Not found error", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ErrorResponse" - } - } - } - }, - "200": { - "description": "List of Apps", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AppsResponse" + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "badge": { + "type": "string", + "enum": [ + "LIVE_EVENT", + "PREMIERE", + "CHALLENGE", + "COMPETITION", + "NEW_SEASON", + "MAJOR_UPDATE", + "SPECIAL_EVENT" + ] + }, + "deepLink": { + "type": "string", + "format": "uri" + }, + "purchaseRequirement": { + "type": "string", + "enum": [ + "NO_COST_ASSOCIATED", + "IN_APP_PURCHASE", + "SUBSCRIPTION", + "IN_APP_PURCHASE_AND_SUBSCRIPTION", + "IN_APP_PURCHASE_OR_SUBSCRIPTION" + ] + }, + "primaryLocale": { + "type": "string" + }, + "priority": { + "type": "string", + "enum": [ + "HIGH", + "NORMAL" + ] + }, + "purpose": { + "type": "string", + "enum": [ + "APPROPRIATE_FOR_ALL_USERS", + "ATTRACT_NEW_USERS", + "KEEP_ACTIVE_USERS_INFORMED", + "BRING_BACK_LAPSED_USERS" + ] + }, + "territorySchedules": { + "type": "array", + "items": { + "type": "object", + "properties": { + "territories": { + "type": "array", + "items": { + "type": "string" + } + }, + "publishStart": { + "type": "string", + "format": "date-time" + }, + "eventStart": { + "type": "string", + "format": "date-time" + }, + "eventEnd": { + "type": "string", + "format": "date-time" + } + } + } + } } } - } + }, + "required": [ + "id", + "type" + ] } - } + }, + "required": [ + "data" + ] }, - "parameters": [ - { - "name": "id", - "in": "path", - "description": "the id of the requested resource", - "schema": { - "type": "string" - }, - "style": "simple", - "required": true - } - ] - } - }, - "components": { - "schemas": { - "Actor": { + "AppInfoLocalization": { "type": "object", - "title": "Actor", + "title": "AppInfoLocalization", "properties": { "type": { "type": "string", "enum": [ - "actors" + "appInfoLocalizations" ] }, "id": { @@ -68906,47 +90898,90 @@ "attributes": { "type": "object", "properties": { - "actorType": { - "type": "string", - "enum": [ - "USER", - "API_KEY", - "XCODE_CLOUD", - "APPLE" - ] + "locale": { + "type": "string" }, - "userFirstName": { + "name": { "type": "string" }, - "userLastName": { + "subtitle": { "type": "string" }, - "userEmail": { + "privacyPolicyUrl": { "type": "string" }, - "apiKeyId": { + "privacyChoicesUrl": { + "type": "string" + }, + "privacyPolicyText": { "type": "string" } } }, + "relationships": { + "type": "object", + "properties": { + "appInfo": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, "links": { "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "ActorsResponse": { + "AppInfoLocalizationsResponse": { "type": "object", - "title": "ActorsResponse", + "title": "AppInfoLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/Actor" + "$ref": "#/components/schemas/AppInfoLocalization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppInfo" } }, "links": { @@ -68961,12 +90996,18 @@ "links" ] }, - "ActorResponse": { + "AppInfoLocalizationResponse": { "type": "object", - "title": "ActorResponse", + "title": "AppInfoLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/Actor" + "$ref": "#/components/schemas/AppInfoLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppInfo" + } }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -68977,165 +91018,94 @@ "links" ] }, - "AgeRatingDeclaration": { + "AppInfoLocalizationCreateRequest": { "type": "object", - "title": "AgeRatingDeclaration", + "title": "AppInfoLocalizationCreateRequest", "properties": { - "type": { - "type": "string", - "enum": [ - "ageRatingDeclarations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { + "data": { "type": "object", "properties": { - "alcoholTobaccoOrDrugUseOrReferences": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "contests": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "gamblingAndContests": { - "type": "boolean", - "deprecated": true - }, - "gambling": { - "type": "boolean" - }, - "gamblingSimulated": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "kidsAgeBand": { - "$ref": "#/components/schemas/KidsAgeBand" - }, - "medicalOrTreatmentInformation": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "profanityOrCrudeHumor": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "sexualContentGraphicAndNudity": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "sexualContentOrNudity": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "seventeenPlus": { - "type": "boolean" - }, - "horrorOrFearThemes": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "matureOrSuggestiveThemes": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "unrestrictedWebAccess": { - "type": "boolean" - }, - "violenceCartoonOrFantasy": { + "type": { "type": "string", "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" + "appInfoLocalizations" ] }, - "violenceRealisticProlongedGraphicOrSadistic": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "subtitle": { + "type": "string" + }, + "privacyPolicyUrl": { + "type": "string" + }, + "privacyChoicesUrl": { + "type": "string" + }, + "privacyPolicyText": { + "type": "string" + } + }, + "required": [ + "locale" ] }, - "violenceRealistic": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" + "relationships": { + "type": "object", + "properties": { + "appInfo": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appInfo" ] } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AgeRatingDeclarationResponse": { - "type": "object", - "title": "AgeRatingDeclarationResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AgeRatingDeclaration" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + }, + "required": [ + "relationships", + "attributes", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "AgeRatingDeclarationUpdateRequest": { + "AppInfoLocalizationUpdateRequest": { "type": "object", - "title": "AgeRatingDeclarationUpdateRequest", + "title": "AppInfoLocalizationUpdateRequest", "properties": { "data": { "type": "object", @@ -69143,7 +91113,7 @@ "type": { "type": "string", "enum": [ - "ageRatingDeclarations" + "appInfoLocalizations" ] }, "id": { @@ -69152,117 +91122,20 @@ "attributes": { "type": "object", "properties": { - "alcoholTobaccoOrDrugUseOrReferences": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "contests": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "gamblingAndContests": { - "type": "boolean", - "deprecated": true - }, - "gambling": { - "type": "boolean" - }, - "gamblingSimulated": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "kidsAgeBand": { - "$ref": "#/components/schemas/KidsAgeBand" - }, - "medicalOrTreatmentInformation": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "profanityOrCrudeHumor": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "sexualContentGraphicAndNudity": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "sexualContentOrNudity": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "seventeenPlus": { - "type": "boolean" - }, - "horrorOrFearThemes": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] - }, - "matureOrSuggestiveThemes": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] + "name": { + "type": "string" }, - "unrestrictedWebAccess": { - "type": "boolean" + "subtitle": { + "type": "string" }, - "violenceCartoonOrFantasy": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] + "privacyPolicyUrl": { + "type": "string" }, - "violenceRealisticProlongedGraphicOrSadistic": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] + "privacyChoicesUrl": { + "type": "string" }, - "violenceRealistic": { - "type": "string", - "enum": [ - "NONE", - "INFREQUENT_OR_MILD", - "FREQUENT_OR_INTENSE" - ] + "privacyPolicyText": { + "type": "string" } } } @@ -69277,14 +91150,14 @@ "data" ] }, - "AppAvailability": { + "AppInfo": { "type": "object", - "title": "AppAvailability", + "title": "AppInfo", "properties": { "type": { "type": "string", "enum": [ - "appAvailabilities" + "appInfos" ] }, "id": { @@ -69293,8 +91166,35 @@ "attributes": { "type": "object", "properties": { - "availableInNewTerritories": { - "type": "boolean" + "appStoreState": { + "$ref": "#/components/schemas/AppStoreVersionState" + }, + "appStoreAgeRating": { + "$ref": "#/components/schemas/AppStoreAgeRating" + }, + "brazilAgeRating": { + "deprecated": true, + "$ref": "#/components/schemas/BrazilAgeRating" + }, + "brazilAgeRatingV2": { + "type": "string", + "enum": [ + "SELF_RATED_L", + "SELF_RATED_TEN", + "SELF_RATED_TWELVE", + "SELF_RATED_FOURTEEN", + "SELF_RATED_SIXTEEN", + "SELF_RATED_EIGHTEEN", + "OFFICIAL_L", + "OFFICIAL_TEN", + "OFFICIAL_TWELVE", + "OFFICIAL_FOURTEEN", + "OFFICIAL_SIXTEEN", + "OFFICIAL_EIGHTEEN" + ] + }, + "kidsAgeBand": { + "$ref": "#/components/schemas/KidsAgeBand" } } }, @@ -69337,7 +91237,43 @@ } } }, - "availableTerritories": { + "ageRatingDeclaration": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ageRatingDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appInfoLocalizations": { "type": "object", "properties": { "links": { @@ -69364,7 +91300,7 @@ "type": { "type": "string", "enum": [ - "territories" + "appInfoLocalizations" ] }, "id": { @@ -69378,176 +91314,152 @@ } } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppAvailabilityResponse": { - "type": "object", - "title": "AppAvailabilityResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppAvailability" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Territory" + }, + "primaryCategory": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppAvailabilityCreateRequest": { - "type": "object", - "title": "AppAvailabilityCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appAvailabilities" - ] }, - "attributes": { + "primarySubcategoryOne": { "type": "object", "properties": { - "availableInNewTerritories": { - "type": "boolean" + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "required": [ - "availableInNewTerritories" - ] + } }, - "relationships": { + "primarySubcategoryTwo": { "type": "object", "properties": { - "app": { + "links": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] + } + } + }, + "secondaryCategory": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } }, - "availableTerritories": { + "data": { "type": "object", "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] } - }, - "required": [ - "app", - "availableTerritories" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppCategory": { - "type": "object", - "title": "AppCategory", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "platforms": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Platform" } - } - } - }, - "relationships": { - "type": "object", - "properties": { - "subcategories": { + }, + "secondarySubcategoryOne": { "type": "object", "properties": { "links": { @@ -69563,33 +91475,27 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } }, - "parent": { + "secondarySubcategoryTwo": { "type": "object", "properties": { "links": { @@ -69632,19 +91538,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppCategoriesResponse": { + "AppInfosResponse": { "type": "object", - "title": "AppCategoriesResponse", + "title": "AppInfosResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/AppInfo" } }, "included": { @@ -69652,7 +91557,13 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + { + "$ref": "#/components/schemas/AppInfoLocalization" }, { "$ref": "#/components/schemas/AppCategory" @@ -69672,19 +91583,25 @@ "links" ] }, - "AppCategoryResponse": { + "AppInfoResponse": { "type": "object", - "title": "AppCategoryResponse", + "title": "AppInfoResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/AppInfo" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + { + "$ref": "#/components/schemas/AppInfoLocalization" }, { "$ref": "#/components/schemas/AppCategory" @@ -69701,113 +91618,9 @@ "links" ] }, - "AppClipAdvancedExperienceImage": { - "type": "object", - "title": "AppClipAdvancedExperienceImage", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceImages" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - }, - "sourceFileChecksum": { - "type": "string" - }, - "imageAsset": { - "$ref": "#/components/schemas/ImageAsset" - }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } - }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppClipAdvancedExperienceImageResponse": { - "type": "object", - "title": "AppClipAdvancedExperienceImageResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceImage" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppClipAdvancedExperienceImageCreateRequest": { - "type": "object", - "title": "AppClipAdvancedExperienceImageCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceImages" - ] - }, - "attributes": { - "type": "object", - "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - } - }, - "required": [ - "fileName", - "fileSize" - ] - } - }, - "required": [ - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppClipAdvancedExperienceImageUpdateRequest": { + "AppInfoUpdateRequest": { "type": "object", - "title": "AppClipAdvancedExperienceImageUpdateRequest", + "title": "AppInfoUpdateRequest", "properties": { "data": { "type": "object", @@ -69815,353 +91628,196 @@ "type": { "type": "string", "enum": [ - "appClipAdvancedExperienceImages" + "appInfos" ] }, "id": { "type": "string" }, - "attributes": { - "type": "object", - "properties": { - "sourceFileChecksum": { - "type": "string" - }, - "uploaded": { - "type": "boolean" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppClipAdvancedExperienceLocalization": { - "type": "object", - "title": "AppClipAdvancedExperienceLocalization", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "language": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" - }, - "title": { - "type": "string" - }, - "subtitle": { - "type": "string" - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppClipAdvancedExperienceLocalizationInlineCreate": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "language": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" - }, - "title": { - "type": "string" - }, - "subtitle": { - "type": "string" - } - } - } - }, - "required": [ - "type" - ] - }, - "AppClipAdvancedExperience": { - "type": "object", - "title": "AppClipAdvancedExperience", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperiences" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "link": { - "type": "string", - "format": "uri" - }, - "version": { - "type": "integer" - }, - "status": { - "type": "string", - "enum": [ - "RECEIVED", - "DEACTIVATED", - "APP_TRANSFER_IN_PROGRESS" - ] - }, - "action": { - "$ref": "#/components/schemas/AppClipAction" - }, - "isPoweredBy": { - "type": "boolean" - }, - "place": { + "relationships": { "type": "object", "properties": { - "placeId": { - "type": "string" - }, - "names": { - "type": "array", - "items": { - "type": "string" - } - }, - "mainAddress": { + "primaryCategory": { "type": "object", "properties": { - "fullAddress": { - "type": "string" - }, - "structuredAddress": { + "data": { "type": "object", "properties": { - "streetAddress": { - "type": "array", - "items": { - "type": "string" - } - }, - "floor": { - "type": "string" - }, - "neighborhood": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "stateProvince": { - "type": "string" - }, - "postalCode": { - "type": "string" + "type": { + "type": "string", + "enum": [ + "appCategories" + ] }, - "countryCode": { + "id": { "type": "string" } - } + }, + "required": [ + "id", + "type" + ] } } }, - "displayPoint": { + "primarySubcategoryOne": { "type": "object", "properties": { - "coordinates": { + "data": { "type": "object", "properties": { - "latitude": { - "type": "number" + "type": { + "type": "string", + "enum": [ + "appCategories" + ] }, - "longitude": { - "type": "number" + "id": { + "type": "string" } - } - }, - "source": { - "type": "string", - "enum": [ - "CALCULATED", - "MANUALLY_PLACED" + }, + "required": [ + "id", + "type" ] } } }, - "mapAction": { - "type": "string", - "enum": [ - "BUY_TICKETS", - "VIEW_AVAILABILITY", - "VIEW_PRICING", - "HOTEL_BOOK_ROOM", - "PARKING_RESERVE_PARKING", - "RESTAURANT_JOIN_WAITLIST", - "RESTAURANT_ORDER_DELIVERY", - "RESTAURANT_ORDER_FOOD", - "RESTAURANT_ORDER_TAKEOUT", - "RESTAURANT_RESERVATION", - "SCHEDULE_APPOINTMENT", - "RESTAURANT_VIEW_MENU", - "THEATER_NOW_PLAYING" - ] - }, - "relationship": { - "type": "string", - "enum": [ - "OWNER", - "AUTHORIZED", - "OTHER" - ] - }, - "phoneNumber": { + "primarySubcategoryTwo": { "type": "object", "properties": { - "number": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "FAX", - "LANDLINE", - "MOBILE", - "TOLLFREE" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "intent": { - "type": "string" } } }, - "homePage": { - "type": "string" - }, - "categories": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "placeStatus": { - "type": "string", - "enum": [ - "PENDING", - "MATCHED", - "NO_MATCH" - ] - }, - "businessCategory": { - "type": "string", - "enum": [ - "AUTOMOTIVE", - "BEAUTY", - "BIKES", - "BOOKS", - "CASINO", - "EDUCATION", - "EDUCATION_JAPAN", - "ENTERTAINMENT", - "EV_CHARGER", - "FINANCIAL_USD", - "FINANCIAL_CNY", - "FINANCIAL_GBP", - "FINANCIAL_JPY", - "FINANCIAL_EUR", - "FITNESS", - "FOOD_AND_DRINK", - "GAS", - "GROCERY", - "HEALTH_AND_MEDICAL", - "HOTEL_AND_TRAVEL", - "MUSIC", - "PARKING", - "PET_SERVICES", - "PROFESSIONAL_SERVICES", - "SHOPPING", - "TICKETING", - "TRANSIT" - ] - }, - "defaultLanguage": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appClip": { - "type": "object", - "properties": { - "links": { + "secondaryCategory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "secondarySubcategoryOne": { "type": "object", "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } }, - "data": { + "secondarySubcategoryTwo": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "appClips" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCategories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "id": { - "type": "string" } - }, - "required": [ - "id", - "type" - ] + } } } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppPreOrder": { + "type": "object", + "title": "AppPreOrder", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreOrders" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "preOrderAvailableDate": { + "type": "string", + "format": "date" }, - "headerImage": { + "appReleaseDate": { + "type": "string", + "format": "date" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { "type": "object", "properties": { "links": { @@ -70183,7 +91839,7 @@ "type": { "type": "string", "enum": [ - "appClipAdvancedExperienceImages" + "apps" ] }, "id": { @@ -70196,48 +91852,6 @@ ] } } - }, - "localizations": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -70246,42 +91860,25 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppClipAdvancedExperiencesResponse": { + "AppPreOrderResponse": { "type": "object", - "title": "AppClipAdvancedExperiencesResponse", + "title": "AppPreOrderResponse", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppClipAdvancedExperience" - } + "$ref": "#/components/schemas/AppPreOrder" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppClip" - }, - { - "$ref": "#/components/schemas/AppClipAdvancedExperienceImage" - }, - { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalization" - } - ] + "$ref": "#/components/schemas/App" } }, "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ @@ -70289,41 +91886,76 @@ "links" ] }, - "AppClipAdvancedExperienceResponse": { + "AppPreOrderCreateRequest": { "type": "object", - "title": "AppClipAdvancedExperienceResponse", + "title": "AppPreOrderCreateRequest", "properties": { "data": { - "$ref": "#/components/schemas/AppClipAdvancedExperience" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppClip" - }, - { - "$ref": "#/components/schemas/AppClipAdvancedExperienceImage" - }, - { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalization" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreOrders" + ] + }, + "attributes": { + "type": "object", + "properties": { + "appReleaseDate": { + "type": "string", + "format": "date" + } } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "AppClipAdvancedExperienceCreateRequest": { + "AppPreOrderUpdateRequest": { "type": "object", - "title": "AppClipAdvancedExperienceCreateRequest", + "title": "AppPreOrderUpdateRequest", "properties": { "data": { "type": "object", @@ -70331,305 +91963,296 @@ "type": { "type": "string", "enum": [ - "appClipAdvancedExperiences" + "appPreOrders" ] }, + "id": { + "type": "string" + }, "attributes": { "type": "object", "properties": { - "link": { + "appReleaseDate": { "type": "string", - "format": "uri" - }, - "action": { - "$ref": "#/components/schemas/AppClipAction" - }, - "isPoweredBy": { - "type": "boolean" - }, - "place": { + "format": "date" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppPreviewSet": { + "type": "object", + "title": "AppPreviewSet", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "previewType": { + "$ref": "#/components/schemas/PreviewType" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionLocalization": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "placeId": { - "type": "string" - }, - "names": { - "type": "array", - "items": { - "type": "string" - } - }, - "mainAddress": { - "type": "object", - "properties": { - "fullAddress": { - "type": "string" - }, - "structuredAddress": { - "type": "object", - "properties": { - "streetAddress": { - "type": "array", - "items": { - "type": "string" - } - }, - "floor": { - "type": "string" - }, - "neighborhood": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "stateProvince": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "countryCode": { - "type": "string" - } - } - } - } - }, - "displayPoint": { - "type": "object", - "properties": { - "coordinates": { - "type": "object", - "properties": { - "latitude": { - "type": "number" - }, - "longitude": { - "type": "number" - } - } - }, - "source": { - "type": "string", - "enum": [ - "CALCULATED", - "MANUALLY_PLACED" - ] - } - } - }, - "mapAction": { + "self": { "type": "string", - "enum": [ - "BUY_TICKETS", - "VIEW_AVAILABILITY", - "VIEW_PRICING", - "HOTEL_BOOK_ROOM", - "PARKING_RESERVE_PARKING", - "RESTAURANT_JOIN_WAITLIST", - "RESTAURANT_ORDER_DELIVERY", - "RESTAURANT_ORDER_FOOD", - "RESTAURANT_ORDER_TAKEOUT", - "RESTAURANT_RESERVATION", - "SCHEDULE_APPOINTMENT", - "RESTAURANT_VIEW_MENU", - "THEATER_NOW_PLAYING" - ] + "format": "uri-reference" }, - "relationship": { + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { "type": "string", "enum": [ - "OWNER", - "AUTHORIZED", - "OTHER" + "appStoreVersionLocalizations" ] }, - "phoneNumber": { - "type": "object", - "properties": { - "number": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "FAX", - "LANDLINE", - "MOBILE", - "TOLLFREE" - ] - }, - "intent": { - "type": "string" - } - } - }, - "homePage": { + "id": { "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appCustomProductPageLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" }, - "categories": { - "type": "array", - "items": { - "type": "string" - } + "related": { + "type": "string", + "format": "uri-reference" } } }, - "businessCategory": { - "type": "string", - "enum": [ - "AUTOMOTIVE", - "BEAUTY", - "BIKES", - "BOOKS", - "CASINO", - "EDUCATION", - "EDUCATION_JAPAN", - "ENTERTAINMENT", - "EV_CHARGER", - "FINANCIAL_USD", - "FINANCIAL_CNY", - "FINANCIAL_GBP", - "FINANCIAL_JPY", - "FINANCIAL_EUR", - "FITNESS", - "FOOD_AND_DRINK", - "GAS", - "GROCERY", - "HEALTH_AND_MEDICAL", - "HOTEL_AND_TRAVEL", - "MUSIC", - "PARKING", - "PET_SERVICES", - "PROFESSIONAL_SERVICES", - "SHOPPING", - "TICKETING", - "TRANSIT" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "defaultLanguage": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" } - }, - "required": [ - "defaultLanguage", - "isPoweredBy", - "link" - ] + } }, - "relationships": { + "appStoreVersionExperimentTreatmentLocalization": { "type": "object", "properties": { - "appClip": { + "links": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClips" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "data" - ] + } }, - "headerImage": { + "data": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceImages" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] - }, - "localizations": { + } + } + }, + "appPreviews": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" ] + }, + "id": { + "type": "string" } - } - }, - "required": [ - "data" - ] + }, + "required": [ + "id", + "type" + ] + } } - }, - "required": [ - "appClip", - "headerImage", - "localizations" - ] + } } - }, - "required": [ - "relationships", - "attributes", - "type" - ] + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppPreviewSetsResponse": { + "type": "object", + "title": "AppPreviewSetsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPreviewSet" + } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalizationInlineCreate" + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppPreview" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPreviewSetResponse": { + "type": "object", + "title": "AppPreviewSetResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppPreviewSet" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + { + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppPreview" + } + ] } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ - "data" + "data", + "links" ] }, - "AppClipAdvancedExperienceUpdateRequest": { + "AppPreviewSetCreateRequest": { "type": "object", - "title": "AppClipAdvancedExperienceUpdateRequest", + "title": "AppPreviewSetCreateRequest", "properties": { "data": { "type": "object", @@ -70637,194 +92260,47 @@ "type": { "type": "string", "enum": [ - "appClipAdvancedExperiences" + "appPreviewSets" ] }, - "id": { - "type": "string" - }, "attributes": { "type": "object", "properties": { - "action": { - "$ref": "#/components/schemas/AppClipAction" - }, - "isPoweredBy": { - "type": "boolean" - }, - "place": { + "previewType": { + "$ref": "#/components/schemas/PreviewType" + } + }, + "required": [ + "previewType" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionLocalization": { "type": "object", "properties": { - "placeId": { - "type": "string" - }, - "names": { - "type": "array", - "items": { - "type": "string" - } - }, - "mainAddress": { - "type": "object", - "properties": { - "fullAddress": { - "type": "string" - }, - "structuredAddress": { - "type": "object", - "properties": { - "streetAddress": { - "type": "array", - "items": { - "type": "string" - } - }, - "floor": { - "type": "string" - }, - "neighborhood": { - "type": "string" - }, - "locality": { - "type": "string" - }, - "stateProvince": { - "type": "string" - }, - "postalCode": { - "type": "string" - }, - "countryCode": { - "type": "string" - } - } - } - } - }, - "displayPoint": { - "type": "object", - "properties": { - "coordinates": { - "type": "object", - "properties": { - "latitude": { - "type": "number" - }, - "longitude": { - "type": "number" - } - } - }, - "source": { - "type": "string", - "enum": [ - "CALCULATED", - "MANUALLY_PLACED" - ] - } - } - }, - "mapAction": { - "type": "string", - "enum": [ - "BUY_TICKETS", - "VIEW_AVAILABILITY", - "VIEW_PRICING", - "HOTEL_BOOK_ROOM", - "PARKING_RESERVE_PARKING", - "RESTAURANT_JOIN_WAITLIST", - "RESTAURANT_ORDER_DELIVERY", - "RESTAURANT_ORDER_FOOD", - "RESTAURANT_ORDER_TAKEOUT", - "RESTAURANT_RESERVATION", - "SCHEDULE_APPOINTMENT", - "RESTAURANT_VIEW_MENU", - "THEATER_NOW_PLAYING" - ] - }, - "relationship": { - "type": "string", - "enum": [ - "OWNER", - "AUTHORIZED", - "OTHER" - ] - }, - "phoneNumber": { + "data": { "type": "object", "properties": { - "number": { - "type": "string" - }, "type": { "type": "string", "enum": [ - "FAX", - "LANDLINE", - "MOBILE", - "TOLLFREE" + "appStoreVersionLocalizations" ] }, - "intent": { + "id": { "type": "string" } - } - }, - "homePage": { - "type": "string" - }, - "categories": { - "type": "array", - "items": { - "type": "string" - } + }, + "required": [ + "id", + "type" + ] } } }, - "businessCategory": { - "type": "string", - "enum": [ - "AUTOMOTIVE", - "BEAUTY", - "BIKES", - "BOOKS", - "CASINO", - "EDUCATION", - "EDUCATION_JAPAN", - "ENTERTAINMENT", - "EV_CHARGER", - "FINANCIAL_USD", - "FINANCIAL_CNY", - "FINANCIAL_GBP", - "FINANCIAL_JPY", - "FINANCIAL_EUR", - "FITNESS", - "FOOD_AND_DRINK", - "GAS", - "GROCERY", - "HEALTH_AND_MEDICAL", - "HOTEL_AND_TRAVEL", - "MUSIC", - "PARKING", - "PET_SERVICES", - "PROFESSIONAL_SERVICES", - "SHOPPING", - "TICKETING", - "TRANSIT" - ] - }, - "defaultLanguage": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLanguage" - }, - "removed": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appClip": { + "appCustomProductPageLocalization": { "type": "object", "properties": { "data": { @@ -70833,7 +92309,7 @@ "type": { "type": "string", "enum": [ - "appClips" + "appCustomProductPageLocalizations" ] }, "id": { @@ -70847,7 +92323,7 @@ } } }, - "headerImage": { + "appStoreVersionExperimentTreatmentLocalization": { "type": "object", "properties": { "data": { @@ -70856,7 +92332,7 @@ "type": { "type": "string", "enum": [ - "appClipAdvancedExperienceImages" + "appStoreVersionExperimentTreatmentLocalizations" ] }, "id": { @@ -70869,60 +92345,28 @@ ] } } - }, - "localizations": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAdvancedExperienceLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } } }, "required": [ - "id", + "attributes", "type" ] - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppClipAdvancedExperienceLocalizationInlineCreate" - } } }, "required": [ "data" ] }, - "AppClipAppStoreReviewDetail": { + "AppPreview": { "type": "object", - "title": "AppClipAppStoreReviewDetail", + "title": "AppPreview", "properties": { "type": { "type": "string", "enum": [ - "appClipAppStoreReviewDetails" + "appPreviews" ] }, "id": { @@ -70931,19 +92375,42 @@ "attributes": { "type": "object", "properties": { - "invocationUrls": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "sourceFileChecksum": { + "type": "string" + }, + "previewFrameTimeCode": { + "type": "string" + }, + "mimeType": { + "type": "string" + }, + "videoUrl": { + "type": "string" + }, + "previewImage": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { "type": "array", "items": { - "type": "string", - "format": "uri" + "$ref": "#/components/schemas/UploadOperation" } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" } } }, "relationships": { "type": "object", "properties": { - "appClipDefaultExperience": { + "appPreviewSet": { "type": "object", "properties": { "links": { @@ -70965,7 +92432,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appPreviewSets" ] }, "id": { @@ -70982,26 +92449,53 @@ } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppPreviewsResponse": { + "type": "object", + "title": "AppPreviewsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPreview" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPreviewSet" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "AppClipAppStoreReviewDetailResponse": { + "AppPreviewResponse": { "type": "object", - "title": "AppClipAppStoreReviewDetailResponse", + "title": "AppPreviewResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppClipAppStoreReviewDetail" + "$ref": "#/components/schemas/AppPreview" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppClipDefaultExperience" + "$ref": "#/components/schemas/AppPreviewSet" } }, "links": { @@ -71013,9 +92507,9 @@ "links" ] }, - "AppClipAppStoreReviewDetailCreateRequest": { + "AppPreviewCreateRequest": { "type": "object", - "title": "AppClipAppStoreReviewDetailCreateRequest", + "title": "AppPreviewCreateRequest", "properties": { "data": { "type": "object", @@ -71023,25 +92517,34 @@ "type": { "type": "string", "enum": [ - "appClipAppStoreReviewDetails" + "appPreviews" ] }, "attributes": { "type": "object", "properties": { - "invocationUrls": { - "type": "array", - "items": { - "type": "string", - "format": "uri" - } + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "previewFrameTimeCode": { + "type": "string" + }, + "mimeType": { + "type": "string" } - } + }, + "required": [ + "fileName", + "fileSize" + ] }, "relationships": { "type": "object", "properties": { - "appClipDefaultExperience": { + "appPreviewSet": { "type": "object", "properties": { "data": { @@ -71050,7 +92553,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appPreviewSets" ] }, "id": { @@ -71069,12 +92572,13 @@ } }, "required": [ - "appClipDefaultExperience" + "appPreviewSet" ] } }, "required": [ "relationships", + "attributes", "type" ] } @@ -71083,9 +92587,9 @@ "data" ] }, - "AppClipAppStoreReviewDetailUpdateRequest": { + "AppPreviewUpdateRequest": { "type": "object", - "title": "AppClipAppStoreReviewDetailUpdateRequest", + "title": "AppPreviewUpdateRequest", "properties": { "data": { "type": "object", @@ -71093,7 +92597,7 @@ "type": { "type": "string", "enum": [ - "appClipAppStoreReviewDetails" + "appPreviews" ] }, "id": { @@ -71102,12 +92606,14 @@ "attributes": { "type": "object", "properties": { - "invocationUrls": { - "type": "array", - "items": { - "type": "string", - "format": "uri" - } + "sourceFileChecksum": { + "type": "string" + }, + "previewFrameTimeCode": { + "type": "string" + }, + "uploaded": { + "type": "boolean" } } } @@ -71122,14 +92628,14 @@ "data" ] }, - "AppClipDefaultExperienceLocalization": { + "AppPricePointV2": { "type": "object", - "title": "AppClipDefaultExperienceLocalization", + "title": "AppPricePointV2", "properties": { "type": { "type": "string", "enum": [ - "appClipDefaultExperienceLocalizations" + "appPricePoints" ] }, "id": { @@ -71138,10 +92644,10 @@ "attributes": { "type": "object", "properties": { - "locale": { + "customerPrice": { "type": "string" }, - "subtitle": { + "proceeds": { "type": "string" } } @@ -71149,7 +92655,7 @@ "relationships": { "type": "object", "properties": { - "appClipDefaultExperience": { + "app": { "type": "object", "properties": { "links": { @@ -71171,7 +92677,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "apps" ] }, "id": { @@ -71185,7 +92691,7 @@ } } }, - "appClipHeaderImage": { + "priceTier": { "type": "object", "properties": { "links": { @@ -71207,7 +92713,190 @@ "type": { "type": "string", "enum": [ - "appClipHeaderImages" + "appPriceTiers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "territory": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "AppPricePointsV2Response": { + "type": "object", + "title": "AppPricePointsV2Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPricePointV2" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppPriceTier" + }, + { + "$ref": "#/components/schemas/Territory" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppPricePointV3": { + "type": "object", + "title": "AppPricePointV3", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPricePoints" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customerPrice": { + "type": "string" + }, + "proceeds": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "territory": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" ] }, "id": { @@ -71228,19 +92917,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppClipDefaultExperienceLocalizationsResponse": { + "AppPricePointsV3Response": { "type": "object", - "title": "AppClipDefaultExperienceLocalizationsResponse", + "title": "AppPricePointsV3Response", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + "$ref": "#/components/schemas/AppPricePointV3" } }, "included": { @@ -71248,10 +92936,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppClipDefaultExperience" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppClipHeaderImage" + "$ref": "#/components/schemas/Territory" } ] } @@ -71268,22 +92956,22 @@ "links" ] }, - "AppClipDefaultExperienceLocalizationResponse": { + "AppPricePointV3Response": { "type": "object", - "title": "AppClipDefaultExperienceLocalizationResponse", + "title": "AppPricePointV3Response", "properties": { "data": { - "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + "$ref": "#/components/schemas/AppPricePointV3" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppClipDefaultExperience" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppClipHeaderImage" + "$ref": "#/components/schemas/Territory" } ] } @@ -71297,139 +92985,200 @@ "links" ] }, - "AppClipDefaultExperienceLocalizationCreateRequest": { + "AppPricePoint": { "type": "object", - "title": "AppClipDefaultExperienceLocalizationCreateRequest", + "title": "AppPricePoint", "properties": { - "data": { + "type": { + "type": "string", + "enum": [ + "appPricePoints" + ] + }, + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDefaultExperienceLocalizations" - ] + "customerPrice": { + "type": "string" }, - "attributes": { + "proceeds": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "priceTier": { "type": "object", "properties": { - "locale": { - "type": "string" + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } }, - "subtitle": { - "type": "string" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPriceTiers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "required": [ - "locale" - ] + } }, - "relationships": { + "territory": { "type": "object", "properties": { - "appClipDefaultExperience": { + "links": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDefaultExperiences" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] } - }, - "required": [ - "appClipDefaultExperience" - ] + } } - }, - "required": [ - "relationships", - "attributes", - "type" - ] + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "data" - ] + "id", + "type" + ], + "deprecated": true }, - "AppClipDefaultExperienceLocalizationUpdateRequest": { + "AppPricePointsResponse": { "type": "object", - "title": "AppClipDefaultExperienceLocalizationUpdateRequest", + "title": "AppPricePointsResponse", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDefaultExperienceLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "subtitle": { - "type": "string" - } + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPricePoint" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppPriceTier" + }, + { + "$ref": "#/components/schemas/Territory" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppPricePointResponse": { + "type": "object", + "title": "AppPricePointResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppPricePoint" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppPriceTier" + }, + { + "$ref": "#/components/schemas/Territory" } - } - }, - "required": [ - "id", - "type" - ] + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ - "data" - ] + "data", + "links" + ], + "deprecated": true }, - "AppClipDefaultExperience": { + "AppPriceSchedule": { "type": "object", - "title": "AppClipDefaultExperience", + "title": "AppPriceSchedule", "properties": { "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appPriceSchedules" ] }, "id": { "type": "string" }, - "attributes": { - "type": "object", - "properties": { - "action": { - "$ref": "#/components/schemas/AppClipAction" - } - } - }, "relationships": { "type": "object", "properties": { - "appClip": { + "app": { "type": "object", "properties": { "links": { @@ -71451,7 +93200,7 @@ "type": { "type": "string", "enum": [ - "appClips" + "apps" ] }, "id": { @@ -71465,7 +93214,7 @@ } } }, - "releaseWithAppStoreVersion": { + "baseTerritory": { "type": "object", "properties": { "links": { @@ -71487,7 +93236,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "territories" ] }, "id": { @@ -71501,7 +93250,7 @@ } } }, - "appClipDefaultExperienceLocalizations": { + "manualPrices": { "type": "object", "properties": { "links": { @@ -71528,7 +93277,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperienceLocalizations" + "appPrices" ] }, "id": { @@ -71543,7 +93292,7 @@ } } }, - "appClipAppStoreReviewDetail": { + "automaticPrices": { "type": "object", "properties": { "links": { @@ -71559,23 +93308,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipAppStoreReviewDetails" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -71586,74 +93341,29 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppClipDefaultExperiencesResponse": { - "type": "object", - "title": "AppClipDefaultExperiencesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppClipDefaultExperience" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppClip" - }, - { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" - }, - { - "$ref": "#/components/schemas/AppClipAppStoreReviewDetail" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppClipDefaultExperienceResponse": { + "AppPriceScheduleResponse": { "type": "object", - "title": "AppClipDefaultExperienceResponse", + "title": "AppPriceScheduleResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppClipDefaultExperience" + "$ref": "#/components/schemas/AppPriceSchedule" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppClip" - }, - { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" + "$ref": "#/components/schemas/Territory" }, { - "$ref": "#/components/schemas/AppClipAppStoreReviewDetail" + "$ref": "#/components/schemas/AppPriceV2" } ] } @@ -71667,9 +93377,9 @@ "links" ] }, - "AppClipDefaultExperienceCreateRequest": { + "AppPriceScheduleCreateRequest": { "type": "object", - "title": "AppClipDefaultExperienceCreateRequest", + "title": "AppPriceScheduleCreateRequest", "properties": { "data": { "type": "object", @@ -71677,21 +93387,13 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appPriceSchedules" ] }, - "attributes": { - "type": "object", - "properties": { - "action": { - "$ref": "#/components/schemas/AppClipAction" - } - } - }, "relationships": { "type": "object", "properties": { - "appClip": { + "app": { "type": "object", "properties": { "data": { @@ -71700,7 +93402,7 @@ "type": { "type": "string", "enum": [ - "appClips" + "apps" ] }, "id": { @@ -71717,362 +93419,7 @@ "data" ] }, - "releaseWithAppStoreVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appClipDefaultExperienceTemplate": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDefaultExperiences" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "required": [ - "appClip" - ] - } - }, - "required": [ - "relationships", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppClipDefaultExperienceUpdateRequest": { - "type": "object", - "title": "AppClipDefaultExperienceUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDefaultExperiences" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "action": { - "$ref": "#/components/schemas/AppClipAction" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "releaseWithAppStoreVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppClipDomainStatus": { - "type": "object", - "title": "AppClipDomainStatus", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDomainStatuses" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "domains": { - "type": "array", - "items": { - "type": "object", - "properties": { - "domain": { - "type": "string" - }, - "isValid": { - "type": "boolean" - }, - "lastUpdatedDate": { - "type": "string", - "format": "date-time" - }, - "errorCode": { - "type": "string", - "enum": [ - "BAD_HTTP_RESPONSE", - "BAD_JSON_CONTENT", - "BAD_PKCS7_SIGNATURE", - "CANNOT_REACH_AASA_FILE", - "DNS_ERROR", - "INSECURE_REDIRECTS_FORBIDDEN", - "INVALID_ENTITLEMENT_MISSING_SECTION", - "INVALID_ENTITLEMENT_SYNTAX_ERROR", - "INVALID_ENTITLEMENT_UNHANDLED_SECTION", - "INVALID_ENTITLEMENT_UNKNOWN_ID", - "NETWORK_ERROR", - "NETWORK_ERROR_TEMPORARY", - "OTHER_ERROR", - "TIMEOUT", - "TLS_ERROR", - "UNEXPECTED_ERROR" - ] - } - } - } - }, - "lastUpdatedDate": { - "type": "string", - "format": "date-time" - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppClipDomainStatusResponse": { - "type": "object", - "title": "AppClipDomainStatusResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppClipDomainStatus" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppClipHeaderImage": { - "type": "object", - "title": "AppClipHeaderImage", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipHeaderImages" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - }, - "sourceFileChecksum": { - "type": "string" - }, - "imageAsset": { - "$ref": "#/components/schemas/ImageAsset" - }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } - }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appClipDefaultExperienceLocalization": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipDefaultExperienceLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppClipHeaderImageResponse": { - "type": "object", - "title": "AppClipHeaderImageResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppClipHeaderImage" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppClipDefaultExperienceLocalization" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppClipHeaderImageCreateRequest": { - "type": "object", - "title": "AppClipHeaderImageCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipHeaderImages" - ] - }, - "attributes": { - "type": "object", - "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - } - }, - "required": [ - "fileName", - "fileSize" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appClipDefaultExperienceLocalization": { + "baseTerritory": { "type": "object", "properties": { "data": { @@ -72081,7 +93428,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperienceLocalizations" + "territories" ] }, "id": { @@ -72097,123 +93444,84 @@ "required": [ "data" ] + }, + "manualPrices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] } }, "required": [ - "appClipDefaultExperienceLocalization" + "app", + "manualPrices", + "baseTerritory" ] } }, "required": [ "relationships", - "attributes", "type" ] - } - }, - "required": [ - "data" - ] - }, - "AppClipHeaderImageUpdateRequest": { - "type": "object", - "title": "AppClipHeaderImageUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClipHeaderImages" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "sourceFileChecksum": { - "type": "string" - }, - "uploaded": { - "type": "boolean" - } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppPriceV2InlineCreate" + }, + { + "$ref": "#/components/schemas/TerritoryInlineCreate" } - } - }, - "required": [ - "id", - "type" - ] + ] + } } }, "required": [ "data" ] }, - "AppClip": { + "AppPriceTier": { "type": "object", - "title": "AppClip", + "title": "AppPriceTier", "properties": { "type": { "type": "string", "enum": [ - "appClips" + "appPriceTiers" ] }, "id": { "type": "string" }, - "attributes": { - "type": "object", - "properties": { - "bundleId": { - "type": "string" - } - } - }, "relationships": { "type": "object", "properties": { - "app": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appClipDefaultExperiences": { + "pricePoints": { "type": "object", "properties": { "links": { @@ -72240,7 +93548,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appPricePoints" ] }, "id": { @@ -72253,7 +93561,8 @@ ] } } - } + }, + "deprecated": true } } }, @@ -72262,32 +93571,25 @@ } }, "required": [ - "links", "id", "type" - ] + ], + "deprecated": true }, - "AppClipsResponse": { + "AppPriceTiersResponse": { "type": "object", - "title": "AppClipsResponse", + "title": "AppPriceTiersResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppClip" + "$ref": "#/components/schemas/AppPriceTier" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AppClipDefaultExperience" - } - ] + "$ref": "#/components/schemas/AppPricePoint" } }, "links": { @@ -72300,26 +93602,20 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, - "AppClipResponse": { + "AppPriceTierResponse": { "type": "object", - "title": "AppClipResponse", + "title": "AppPriceTierResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppClip" + "$ref": "#/components/schemas/AppPriceTier" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AppClipDefaultExperience" - } - ] + "$ref": "#/components/schemas/AppPricePoint" } }, "links": { @@ -72329,16 +93625,17 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, - "AppCustomProductPageLocalization": { + "AppPriceV2": { "type": "object", - "title": "AppCustomProductPageLocalization", + "title": "AppPriceV2", "properties": { "type": { "type": "string", "enum": [ - "appCustomProductPageLocalizations" + "appPrices" ] }, "id": { @@ -72347,18 +93644,23 @@ "attributes": { "type": "object", "properties": { - "locale": { - "type": "string" + "manual": { + "type": "boolean" }, - "promotionalText": { - "type": "string" + "startDate": { + "type": "string", + "format": "date" + }, + "endDate": { + "type": "string", + "format": "date" } } }, "relationships": { "type": "object", "properties": { - "appCustomProductPageVersion": { + "appPricePoint": { "type": "object", "properties": { "links": { @@ -72380,7 +93682,7 @@ "type": { "type": "string", "enum": [ - "appCustomProductPageVersions" + "appPricePoints" ] }, "id": { @@ -72394,7 +93696,7 @@ } } }, - "appScreenshotSets": { + "territory": { "type": "object", "properties": { "links": { @@ -72410,154 +93712,59 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appScreenshotSets" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "appPreviewSets": { - "type": "object", - "properties": { - "links": { "type": "object", "properties": { - "self": { + "type": { "type": "string", - "format": "uri-reference" + "enum": [ + "territories" + ] }, - "related": { - "type": "string", - "format": "uri-reference" + "id": { + "type": "string" } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreviewSets" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + }, + "required": [ + "id", + "type" + ] } } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "AppCustomProductPageLocalizationInlineCreate": { + "AppPriceV2InlineCreate": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "appCustomProductPageLocalizations" + "appPrices" ] }, "id": { "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "locale": { - "type": "string" - }, - "promotionalText": { - "type": "string" - } - }, - "required": [ - "locale" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appCustomProductPageVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } } }, "required": [ - "attributes", "type" ] }, - "AppCustomProductPageLocalizationsResponse": { + "AppPricesV2Response": { "type": "object", - "title": "AppCustomProductPageLocalizationsResponse", + "title": "AppPricesV2Response", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" + "$ref": "#/components/schemas/AppPriceV2" } }, "included": { @@ -72565,13 +93772,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppCustomProductPageVersion" - }, - { - "$ref": "#/components/schemas/AppScreenshotSet" + "$ref": "#/components/schemas/AppPricePointV3" }, { - "$ref": "#/components/schemas/AppPreviewSet" + "$ref": "#/components/schemas/Territory" } ] } @@ -72588,184 +93792,23 @@ "links" ] }, - "AppCustomProductPageLocalizationResponse": { - "type": "object", - "title": "AppCustomProductPageLocalizationResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppCustomProductPageVersion" - }, - { - "$ref": "#/components/schemas/AppScreenshotSet" - }, - { - "$ref": "#/components/schemas/AppPreviewSet" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppCustomProductPageLocalizationCreateRequest": { - "type": "object", - "title": "AppCustomProductPageLocalizationCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "attributes": { - "type": "object", - "properties": { - "locale": { - "type": "string" - }, - "promotionalText": { - "type": "string" - } - }, - "required": [ - "locale" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appCustomProductPageVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "appCustomProductPageVersion" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppCustomProductPageLocalizationUpdateRequest": { - "type": "object", - "title": "AppCustomProductPageLocalizationUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "promotionalText": { - "type": "string" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppCustomProductPageVersion": { - "type": "object", - "title": "AppCustomProductPageVersion", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageVersions" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "version": { - "type": "string" - }, - "state": { - "type": "string", - "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REPLACED_WITH_NEW_VERSION", - "REJECTED" - ] - } - } + "AppPrice": { + "type": "object", + "title": "AppPrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" }, "relationships": { "type": "object", "properties": { - "appCustomProductPage": { + "app": { "type": "object", "properties": { "links": { @@ -72787,7 +93830,7 @@ "type": { "type": "string", "enum": [ - "appCustomProductPages" + "apps" ] }, "id": { @@ -72801,7 +93844,7 @@ } } }, - "appCustomProductPageLocalizations": { + "priceTier": { "type": "object", "properties": { "links": { @@ -72817,29 +93860,23 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPriceTiers" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } } @@ -72850,90 +93887,36 @@ } }, "required": [ - "links", "id", "type" - ] + ], + "deprecated": true }, - "AppCustomProductPageVersionInlineCreate": { + "AppPriceInlineCreate": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "appCustomProductPageVersions" + "appPrices" ] }, "id": { "type": "string" - }, - "relationships": { - "type": "object", - "properties": { - "appCustomProductPage": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPages" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appCustomProductPageLocalizations": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - } } }, "required": [ "type" ] }, - "AppCustomProductPageVersionsResponse": { + "AppPricesResponse": { "type": "object", - "title": "AppCustomProductPageVersionsResponse", + "title": "AppPricesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppCustomProductPageVersion" + "$ref": "#/components/schemas/AppPrice" } }, "included": { @@ -72941,10 +93924,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppCustomProductPage" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" + "$ref": "#/components/schemas/AppPriceTier" } ] } @@ -72959,24 +93942,25 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, - "AppCustomProductPageVersionResponse": { + "AppPriceResponse": { "type": "object", - "title": "AppCustomProductPageVersionResponse", + "title": "AppPriceResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppCustomProductPageVersion" + "$ref": "#/components/schemas/AppPrice" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppCustomProductPage" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" + "$ref": "#/components/schemas/AppPriceTier" } ] } @@ -72988,100 +93972,17 @@ "required": [ "data", "links" - ] - }, - "AppCustomProductPageVersionCreateRequest": { - "type": "object", - "title": "AppCustomProductPageVersionCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageVersions" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appCustomProductPage": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPages" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "appCustomProductPageLocalizations": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "required": [ - "appCustomProductPage" - ] - } - }, - "required": [ - "relationships", - "type" - ] - } - }, - "required": [ - "data" - ] + ], + "deprecated": true }, - "AppCustomProductPage": { + "AppScreenshotSet": { "type": "object", - "title": "AppCustomProductPage", + "title": "AppScreenshotSet", "properties": { "type": { "type": "string", "enum": [ - "appCustomProductPages" + "appScreenshotSets" ] }, "id": { @@ -73090,22 +93991,15 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - }, - "visible": { - "type": "boolean" + "screenshotDisplayType": { + "$ref": "#/components/schemas/ScreenshotDisplayType" } } }, "relationships": { "type": "object", "properties": { - "app": { + "appStoreVersionLocalization": { "type": "object", "properties": { "links": { @@ -73127,7 +94021,7 @@ "type": { "type": "string", "enum": [ - "apps" + "appStoreVersionLocalizations" ] }, "id": { @@ -73141,7 +94035,79 @@ } } }, - "appCustomProductPageVersions": { + "appCustomProductPageLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPageLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionExperimentTreatmentLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatmentLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appScreenshots": { "type": "object", "properties": { "links": { @@ -73168,7 +94134,7 @@ "type": { "type": "string", "enum": [ - "appCustomProductPageVersions" + "appScreenshots" ] }, "id": { @@ -73190,19 +94156,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppCustomProductPagesResponse": { + "AppScreenshotSetsResponse": { "type": "object", - "title": "AppCustomProductPagesResponse", + "title": "AppScreenshotSetsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppCustomProductPage" + "$ref": "#/components/schemas/AppScreenshotSet" } }, "included": { @@ -73210,10 +94175,16 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/AppStoreVersionLocalization" }, { - "$ref": "#/components/schemas/AppCustomProductPageVersion" + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppScreenshot" } ] } @@ -73230,22 +94201,28 @@ "links" ] }, - "AppCustomProductPageResponse": { + "AppScreenshotSetResponse": { "type": "object", - "title": "AppCustomProductPageResponse", + "title": "AppScreenshotSetResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppCustomProductPage" + "$ref": "#/components/schemas/AppScreenshotSet" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/AppStoreVersionLocalization" }, { - "$ref": "#/components/schemas/AppCustomProductPageVersion" + "$ref": "#/components/schemas/AppCustomProductPageLocalization" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + }, + { + "$ref": "#/components/schemas/AppScreenshot" } ] } @@ -73259,9 +94236,9 @@ "links" ] }, - "AppCustomProductPageCreateRequest": { + "AppScreenshotSetCreateRequest": { "type": "object", - "title": "AppCustomProductPageCreateRequest", + "title": "AppScreenshotSetCreateRequest", "properties": { "data": { "type": "object", @@ -73269,24 +94246,24 @@ "type": { "type": "string", "enum": [ - "appCustomProductPages" + "appScreenshotSets" ] }, "attributes": { "type": "object", "properties": { - "name": { - "type": "string" + "screenshotDisplayType": { + "$ref": "#/components/schemas/ScreenshotDisplayType" } }, "required": [ - "name" + "screenshotDisplayType" ] }, "relationships": { "type": "object", "properties": { - "app": { + "appStoreVersionLocalization": { "type": "object", "properties": { "data": { @@ -73295,7 +94272,7 @@ "type": { "type": "string", "enum": [ - "apps" + "appStoreVersionLocalizations" ] }, "id": { @@ -73307,38 +94284,9 @@ "type" ] } - }, - "required": [ - "data" - ] - }, - "appCustomProductPageVersions": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } } }, - "appStoreVersionTemplate": { + "appCustomProductPageLocalization": { "type": "object", "properties": { "data": { @@ -73347,7 +94295,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "appCustomProductPageLocalizations" ] }, "id": { @@ -73361,7 +94309,7 @@ } } }, - "customProductPageTemplate": { + "appStoreVersionExperimentTreatmentLocalization": { "type": "object", "properties": { "data": { @@ -73370,7 +94318,7 @@ "type": { "type": "string", "enum": [ - "appCustomProductPages" + "appStoreVersionExperimentTreatmentLocalizations" ] }, "id": { @@ -73384,66 +94332,11 @@ } } } - }, - "required": [ - "app" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppCustomProductPageLocalizationInlineCreate" - }, - { - "$ref": "#/components/schemas/AppCustomProductPageVersionInlineCreate" - } - ] - } - } - }, - "required": [ - "data" - ] - }, - "AppCustomProductPageUpdateRequest": { - "type": "object", - "title": "AppCustomProductPageUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPages" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "visible": { - "type": "boolean" - } } } }, "required": [ - "id", + "attributes", "type" ] } @@ -73452,14 +94345,14 @@ "data" ] }, - "AppEncryptionDeclarationDocument": { + "AppScreenshot": { "type": "object", - "title": "AppEncryptionDeclarationDocument", + "title": "AppScreenshot", "properties": { "type": { "type": "string", "enum": [ - "appEncryptionDeclarationDocuments" + "appScreenshots" ] }, "id": { @@ -73474,14 +94367,16 @@ "fileName": { "type": "string" }, - "assetToken": { + "sourceFileChecksum": { "type": "string" }, - "downloadUrl": { - "type": "string", - "format": "uri" + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" }, - "sourceFileChecksum": { + "assetToken": { + "type": "string" + }, + "assetType": { "type": "string" }, "uploadOperations": { @@ -73489,9 +94384,50 @@ "items": { "$ref": "#/components/schemas/UploadOperation" } - }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appScreenshotSet": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } }, @@ -73500,17 +94436,50 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppEncryptionDeclarationDocumentResponse": { + "AppScreenshotsResponse": { "type": "object", - "title": "AppEncryptionDeclarationDocumentResponse", + "title": "AppScreenshotsResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppEncryptionDeclarationDocument" + "type": "array", + "items": { + "$ref": "#/components/schemas/AppScreenshot" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppScreenshotSet" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppScreenshotResponse": { + "type": "object", + "title": "AppScreenshotResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppScreenshot" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppScreenshotSet" + } }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -73521,9 +94490,9 @@ "links" ] }, - "AppEncryptionDeclarationDocumentCreateRequest": { + "AppScreenshotCreateRequest": { "type": "object", - "title": "AppEncryptionDeclarationDocumentCreateRequest", + "title": "AppScreenshotCreateRequest", "properties": { "data": { "type": "object", @@ -73531,7 +94500,7 @@ "type": { "type": "string", "enum": [ - "appEncryptionDeclarationDocuments" + "appScreenshots" ] }, "attributes": { @@ -73552,7 +94521,7 @@ "relationships": { "type": "object", "properties": { - "appEncryptionDeclaration": { + "appScreenshotSet": { "type": "object", "properties": { "data": { @@ -73561,7 +94530,7 @@ "type": { "type": "string", "enum": [ - "appEncryptionDeclarations" + "appScreenshotSets" ] }, "id": { @@ -73580,7 +94549,7 @@ } }, "required": [ - "appEncryptionDeclaration" + "appScreenshotSet" ] } }, @@ -73595,9 +94564,9 @@ "data" ] }, - "AppEncryptionDeclarationDocumentUpdateRequest": { + "AppScreenshotUpdateRequest": { "type": "object", - "title": "AppEncryptionDeclarationDocumentUpdateRequest", + "title": "AppScreenshotUpdateRequest", "properties": { "data": { "type": "object", @@ -73605,7 +94574,7 @@ "type": { "type": "string", "enum": [ - "appEncryptionDeclarationDocuments" + "appScreenshots" ] }, "id": { @@ -73633,14 +94602,14 @@ "data" ] }, - "AppEncryptionDeclaration": { + "AppStoreReviewAttachment": { "type": "object", - "title": "AppEncryptionDeclaration", + "title": "AppStoreReviewAttachment", "properties": { "type": { "type": "string", "enum": [ - "appEncryptionDeclarations" + "appStoreReviewAttachments" ] }, "id": { @@ -73649,292 +94618,30 @@ "attributes": { "type": "object", "properties": { - "appDescription": { - "type": "string" - }, - "createdDate": { - "type": "string", - "format": "date-time" - }, - "usesEncryption": { - "type": "boolean", - "deprecated": true - }, - "exempt": { - "type": "boolean" - }, - "containsProprietaryCryptography": { - "type": "boolean" - }, - "containsThirdPartyCryptography": { - "type": "boolean" - }, - "availableOnFrenchStore": { - "type": "boolean" - }, - "platform": { - "deprecated": true, - "$ref": "#/components/schemas/Platform" - }, - "uploadedDate": { - "type": "string", - "format": "date-time", - "deprecated": true - }, - "documentUrl": { - "type": "string", - "deprecated": true - }, - "documentName": { - "type": "string", - "deprecated": true - }, - "documentType": { - "type": "string", - "deprecated": true - }, - "appEncryptionDeclarationState": { - "$ref": "#/components/schemas/AppEncryptionDeclarationState" - }, - "codeValue": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "app": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "builds": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "deprecated": true + "fileSize": { + "type": "integer" }, - "appEncryptionDeclarationDocument": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEncryptionDeclarationDocuments" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppEncryptionDeclarationsResponse": { - "type": "object", - "title": "AppEncryptionDeclarationsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppEncryptionDeclaration" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Build" - }, - { - "$ref": "#/components/schemas/AppEncryptionDeclarationDocument" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppEncryptionDeclarationResponse": { - "type": "object", - "title": "AppEncryptionDeclarationResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppEncryptionDeclaration" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Build" - }, - { - "$ref": "#/components/schemas/AppEncryptionDeclarationDocument" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppEventLocalization": { - "type": "object", - "title": "AppEventLocalization", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEventLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "locale": { + "fileName": { "type": "string" }, - "name": { + "sourceFileChecksum": { "type": "string" }, - "shortDescription": { - "type": "string" + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } }, - "longDescription": { - "type": "string" + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" } } }, "relationships": { "type": "object", "properties": { - "appEvent": { + "appStoreReviewDetail": { "type": "object", "properties": { "links": { @@ -73956,7 +94663,7 @@ "type": { "type": "string", "enum": [ - "appEvents" + "appStoreReviewDetails" ] }, "id": { @@ -73969,90 +94676,6 @@ ] } } - }, - "appEventScreenshots": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEventScreenshots" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "appEventVideoClips": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEventVideoClips" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -74061,35 +94684,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppEventLocalizationsResponse": { + "AppStoreReviewAttachmentsResponse": { "type": "object", - "title": "AppEventLocalizationsResponse", + "title": "AppStoreReviewAttachmentsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventLocalization" + "$ref": "#/components/schemas/AppStoreReviewAttachment" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppEvent" - }, - { - "$ref": "#/components/schemas/AppEventScreenshot" - }, - { - "$ref": "#/components/schemas/AppEventVideoClip" - } - ] + "$ref": "#/components/schemas/AppStoreReviewDetail" } }, "links": { @@ -74104,27 +94716,17 @@ "links" ] }, - "AppEventLocalizationResponse": { + "AppStoreReviewAttachmentResponse": { "type": "object", - "title": "AppEventLocalizationResponse", + "title": "AppStoreReviewAttachmentResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppEventLocalization" + "$ref": "#/components/schemas/AppStoreReviewAttachment" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppEvent" - }, - { - "$ref": "#/components/schemas/AppEventScreenshot" - }, - { - "$ref": "#/components/schemas/AppEventVideoClip" - } - ] + "$ref": "#/components/schemas/AppStoreReviewDetail" } }, "links": { @@ -74136,9 +94738,9 @@ "links" ] }, - "AppEventLocalizationCreateRequest": { + "AppStoreReviewAttachmentCreateRequest": { "type": "object", - "title": "AppEventLocalizationCreateRequest", + "title": "AppStoreReviewAttachmentCreateRequest", "properties": { "data": { "type": "object", @@ -74146,33 +94748,28 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreReviewAttachments" ] }, "attributes": { "type": "object", "properties": { - "locale": { - "type": "string" - }, - "name": { - "type": "string" - }, - "shortDescription": { - "type": "string" + "fileSize": { + "type": "integer" }, - "longDescription": { + "fileName": { "type": "string" } }, "required": [ - "locale" + "fileName", + "fileSize" ] }, "relationships": { "type": "object", "properties": { - "appEvent": { + "appStoreReviewDetail": { "type": "object", "properties": { "data": { @@ -74181,7 +94778,7 @@ "type": { "type": "string", "enum": [ - "appEvents" + "appStoreReviewDetails" ] }, "id": { @@ -74200,7 +94797,7 @@ } }, "required": [ - "appEvent" + "appStoreReviewDetail" ] } }, @@ -74215,9 +94812,9 @@ "data" ] }, - "AppEventLocalizationUpdateRequest": { + "AppStoreReviewAttachmentUpdateRequest": { "type": "object", - "title": "AppEventLocalizationUpdateRequest", + "title": "AppStoreReviewAttachmentUpdateRequest", "properties": { "data": { "type": "object", @@ -74225,7 +94822,7 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreReviewAttachments" ] }, "id": { @@ -74234,14 +94831,11 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "shortDescription": { + "sourceFileChecksum": { "type": "string" }, - "longDescription": { - "type": "string" + "uploaded": { + "type": "boolean" } } } @@ -74256,14 +94850,14 @@ "data" ] }, - "AppEventScreenshot": { + "AppStoreReviewDetail": { "type": "object", - "title": "AppEventScreenshot", + "title": "AppStoreReviewDetail", "properties": { "type": { "type": "string", "enum": [ - "appEventScreenshots" + "appStoreReviewDetails" ] }, "id": { @@ -74272,36 +94866,36 @@ "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" + "contactFirstName": { + "type": "string" }, - "fileName": { + "contactLastName": { "type": "string" }, - "imageAsset": { - "$ref": "#/components/schemas/ImageAsset" + "contactPhone": { + "type": "string" }, - "assetToken": { + "contactEmail": { "type": "string" }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } + "demoAccountName": { + "type": "string" }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" + "demoAccountPassword": { + "type": "string" }, - "appEventAssetType": { - "$ref": "#/components/schemas/AppEventAssetType" + "demoAccountRequired": { + "type": "boolean" + }, + "notes": { + "type": "string" } } }, "relationships": { "type": "object", "properties": { - "appEventLocalization": { + "appStoreVersion": { "type": "object", "properties": { "links": { @@ -74323,7 +94917,7 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreVersions" ] }, "id": { @@ -74336,6 +94930,48 @@ ] } } + }, + "appStoreReviewAttachments": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreReviewAttachments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } } }, @@ -74344,50 +94980,28 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppEventScreenshotsResponse": { - "type": "object", - "title": "AppEventScreenshotsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppEventScreenshot" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppEventLocalization" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppEventScreenshotResponse": { + "AppStoreReviewDetailResponse": { "type": "object", - "title": "AppEventScreenshotResponse", + "title": "AppStoreReviewDetailResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppEventScreenshot" + "$ref": "#/components/schemas/AppStoreReviewDetail" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreReviewAttachment" + } + ] } }, "links": { @@ -74399,9 +95013,9 @@ "links" ] }, - "AppEventScreenshotCreateRequest": { + "AppStoreReviewDetailCreateRequest": { "type": "object", - "title": "AppEventScreenshotCreateRequest", + "title": "AppStoreReviewDetailCreateRequest", "properties": { "data": { "type": "object", @@ -74409,32 +95023,42 @@ "type": { "type": "string", "enum": [ - "appEventScreenshots" + "appStoreReviewDetails" ] }, "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" + "contactFirstName": { + "type": "string" }, - "fileName": { + "contactLastName": { "type": "string" }, - "appEventAssetType": { - "$ref": "#/components/schemas/AppEventAssetType" + "contactPhone": { + "type": "string" + }, + "contactEmail": { + "type": "string" + }, + "demoAccountName": { + "type": "string" + }, + "demoAccountPassword": { + "type": "string" + }, + "demoAccountRequired": { + "type": "boolean" + }, + "notes": { + "type": "string" } - }, - "required": [ - "fileName", - "appEventAssetType", - "fileSize" - ] + } }, "relationships": { "type": "object", "properties": { - "appEventLocalization": { + "appStoreVersion": { "type": "object", "properties": { "data": { @@ -74443,7 +95067,7 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreVersions" ] }, "id": { @@ -74462,13 +95086,12 @@ } }, "required": [ - "appEventLocalization" + "appStoreVersion" ] } }, "required": [ "relationships", - "attributes", "type" ] } @@ -74477,9 +95100,9 @@ "data" ] }, - "AppEventScreenshotUpdateRequest": { + "AppStoreReviewDetailUpdateRequest": { "type": "object", - "title": "AppEventScreenshotUpdateRequest", + "title": "AppStoreReviewDetailUpdateRequest", "properties": { "data": { "type": "object", @@ -74487,7 +95110,7 @@ "type": { "type": "string", "enum": [ - "appEventScreenshots" + "appStoreReviewDetails" ] }, "id": { @@ -74496,8 +95119,29 @@ "attributes": { "type": "object", "properties": { - "uploaded": { + "contactFirstName": { + "type": "string" + }, + "contactLastName": { + "type": "string" + }, + "contactPhone": { + "type": "string" + }, + "contactEmail": { + "type": "string" + }, + "demoAccountName": { + "type": "string" + }, + "demoAccountPassword": { + "type": "string" + }, + "demoAccountRequired": { "type": "boolean" + }, + "notes": { + "type": "string" } } } @@ -74512,14 +95156,14 @@ "data" ] }, - "AppEventVideoClip": { + "AppStoreVersionExperimentTreatmentLocalization": { "type": "object", - "title": "AppEventVideoClip", + "title": "AppStoreVersionExperimentTreatmentLocalization", "properties": { "type": { "type": "string", "enum": [ - "appEventVideoClips" + "appStoreVersionExperimentTreatmentLocalizations" ] }, "id": { @@ -74528,39 +95172,15 @@ "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - }, - "previewFrameTimeCode": { - "type": "string" - }, - "videoUrl": { + "locale": { "type": "string" - }, - "previewImage": { - "$ref": "#/components/schemas/ImageAsset" - }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } - }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" - }, - "appEventAssetType": { - "$ref": "#/components/schemas/AppEventAssetType" } } }, "relationships": { "type": "object", "properties": { - "appEventLocalization": { + "appStoreVersionExperimentTreatment": { "type": "object", "properties": { "links": { @@ -74582,7 +95202,7 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreVersionExperimentTreatments" ] }, "id": { @@ -74595,6 +95215,90 @@ ] } } + }, + "appScreenshotSets": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appPreviewSets": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } } }, @@ -74603,25 +95307,34 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppEventVideoClipsResponse": { + "AppStoreVersionExperimentTreatmentLocalizationsResponse": { "type": "object", - "title": "AppEventVideoClipsResponse", + "title": "AppStoreVersionExperimentTreatmentLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventVideoClip" + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + } + ] } }, "links": { @@ -74636,17 +95349,27 @@ "links" ] }, - "AppEventVideoClipResponse": { + "AppStoreVersionExperimentTreatmentLocalizationResponse": { "type": "object", - "title": "AppEventVideoClipResponse", + "title": "AppStoreVersionExperimentTreatmentLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppEventVideoClip" + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + }, + { + "$ref": "#/components/schemas/AppScreenshotSet" + }, + { + "$ref": "#/components/schemas/AppPreviewSet" + } + ] } }, "links": { @@ -74658,9 +95381,9 @@ "links" ] }, - "AppEventVideoClipCreateRequest": { + "AppStoreVersionExperimentTreatmentLocalizationCreateRequest": { "type": "object", - "title": "AppEventVideoClipCreateRequest", + "title": "AppStoreVersionExperimentTreatmentLocalizationCreateRequest", "properties": { "data": { "type": "object", @@ -74668,35 +95391,24 @@ "type": { "type": "string", "enum": [ - "appEventVideoClips" + "appStoreVersionExperimentTreatmentLocalizations" ] }, "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - }, - "previewFrameTimeCode": { + "locale": { "type": "string" - }, - "appEventAssetType": { - "$ref": "#/components/schemas/AppEventAssetType" } }, "required": [ - "fileName", - "appEventAssetType", - "fileSize" + "locale" ] }, "relationships": { "type": "object", "properties": { - "appEventLocalization": { + "appStoreVersionExperimentTreatment": { "type": "object", "properties": { "data": { @@ -74705,7 +95417,7 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreVersionExperimentTreatments" ] }, "id": { @@ -74721,199 +95433,131 @@ "required": [ "data" ] - } - }, - "required": [ - "appEventLocalization" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppEventVideoClipUpdateRequest": { - "type": "object", - "title": "AppEventVideoClipUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEventVideoClips" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "previewFrameTimeCode": { - "type": "string" - }, - "uploaded": { - "type": "boolean" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppEvent": { - "type": "object", - "title": "AppEvent", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEvents" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "referenceName": { - "type": "string" - }, - "badge": { - "type": "string", - "enum": [ - "LIVE_EVENT", - "PREMIERE", - "CHALLENGE", - "COMPETITION", - "NEW_SEASON", - "MAJOR_UPDATE", - "SPECIAL_EVENT" - ] - }, - "eventState": { - "type": "string", - "enum": [ - "DRAFT", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "REJECTED", - "ACCEPTED", - "APPROVED", - "PUBLISHED", - "PAST", - "ARCHIVED" - ] - }, - "deepLink": { - "type": "string", - "format": "uri" - }, - "purchaseRequirement": { - "type": "string", - "enum": [ - "NO_COST_ASSOCIATED", - "IN_APP_PURCHASE", - "SUBSCRIPTION", - "IN_APP_PURCHASE_AND_SUBSCRIPTION", - "IN_APP_PURCHASE_OR_SUBSCRIPTION" + } + }, + "required": [ + "appStoreVersionExperimentTreatment" ] - }, - "primaryLocale": { + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionExperimentTreatment": { + "type": "object", + "title": "AppStoreVersionExperimentTreatment", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { "type": "string" }, - "priority": { - "type": "string", - "enum": [ - "HIGH", - "NORMAL" - ] + "appIcon": { + "$ref": "#/components/schemas/ImageAsset" }, - "purpose": { - "type": "string", - "enum": [ - "APPROPRIATE_FOR_ALL_USERS", - "ATTRACT_NEW_USERS", - "KEEP_ACTIVE_USERS_INFORMED", - "BRING_BACK_LAPSED_USERS" - ] + "appIconName": { + "type": "string" }, - "territorySchedules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "territories": { - "type": "array", - "items": { + "promotedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersionExperiment": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { "type": "string" } }, - "publishStart": { - "type": "string", - "format": "date-time" - }, - "eventStart": { - "type": "string", - "format": "date-time" - }, - "eventEnd": { - "type": "string", - "format": "date-time" - } + "required": [ + "id", + "type" + ] } } }, - "archivedTerritorySchedules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "territories": { - "type": "array", - "items": { + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { "type": "string" } }, - "publishStart": { - "type": "string", - "format": "date-time" - }, - "eventStart": { - "type": "string", - "format": "date-time" - }, - "eventEnd": { - "type": "string", - "format": "date-time" - } + "required": [ + "id", + "type" + ] } } - } - } - }, - "relationships": { - "type": "object", - "properties": { - "localizations": { + }, + "appStoreVersionExperimentTreatmentLocalizations": { "type": "object", "properties": { "links": { @@ -74940,7 +95584,7 @@ "type": { "type": "string", "enum": [ - "appEventLocalizations" + "appStoreVersionExperimentTreatmentLocalizations" ] }, "id": { @@ -74962,25 +95606,34 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppEventsResponse": { + "AppStoreVersionExperimentTreatmentsResponse": { "type": "object", - "title": "AppEventsResponse", + "title": "AppStoreVersionExperimentTreatmentsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEvent" + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + } + ] } }, "links": { @@ -74995,17 +95648,27 @@ "links" ] }, - "AppEventResponse": { + "AppStoreVersionExperimentTreatmentResponse": { "type": "object", - "title": "AppEventResponse", + "title": "AppStoreVersionExperimentTreatmentResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppEvent" + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppEventLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + } + ] } }, "links": { @@ -75017,9 +95680,9 @@ "links" ] }, - "AppEventCreateRequest": { + "AppStoreVersionExperimentTreatmentCreateRequest": { "type": "object", - "title": "AppEventCreateRequest", + "title": "AppStoreVersionExperimentTreatmentCreateRequest", "properties": { "data": { "type": "object", @@ -75027,95 +95690,27 @@ "type": { "type": "string", "enum": [ - "appEvents" + "appStoreVersionExperimentTreatments" ] }, "attributes": { "type": "object", "properties": { - "referenceName": { + "name": { "type": "string" }, - "badge": { - "type": "string", - "enum": [ - "LIVE_EVENT", - "PREMIERE", - "CHALLENGE", - "COMPETITION", - "NEW_SEASON", - "MAJOR_UPDATE", - "SPECIAL_EVENT" - ] - }, - "deepLink": { - "type": "string", - "format": "uri" - }, - "purchaseRequirement": { - "type": "string", - "enum": [ - "NO_COST_ASSOCIATED", - "IN_APP_PURCHASE", - "SUBSCRIPTION", - "IN_APP_PURCHASE_AND_SUBSCRIPTION", - "IN_APP_PURCHASE_OR_SUBSCRIPTION" - ] - }, - "primaryLocale": { + "appIconName": { "type": "string" - }, - "priority": { - "type": "string", - "enum": [ - "HIGH", - "NORMAL" - ] - }, - "purpose": { - "type": "string", - "enum": [ - "APPROPRIATE_FOR_ALL_USERS", - "ATTRACT_NEW_USERS", - "KEEP_ACTIVE_USERS_INFORMED", - "BRING_BACK_LAPSED_USERS" - ] - }, - "territorySchedules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "territories": { - "type": "array", - "items": { - "type": "string" - } - }, - "publishStart": { - "type": "string", - "format": "date-time" - }, - "eventStart": { - "type": "string", - "format": "date-time" - }, - "eventEnd": { - "type": "string", - "format": "date-time" - } - } - } } }, "required": [ - "referenceName" + "name" ] }, "relationships": { "type": "object", "properties": { - "app": { + "appStoreVersionExperiment": { "type": "object", "properties": { "data": { @@ -75124,7 +95719,7 @@ "type": { "type": "string", "enum": [ - "apps" + "appStoreVersionExperiments" ] }, "id": { @@ -75140,10 +95735,33 @@ "required": [ "data" ] + }, + "appStoreVersionExperimentV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } }, "required": [ - "app" + "appStoreVersionExperiment" ] } }, @@ -75158,9 +95776,9 @@ "data" ] }, - "AppEventUpdateRequest": { + "AppStoreVersionExperimentTreatmentUpdateRequest": { "type": "object", - "title": "AppEventUpdateRequest", + "title": "AppStoreVersionExperimentTreatmentUpdateRequest", "properties": { "data": { "type": "object", @@ -75168,7 +95786,7 @@ "type": { "type": "string", "enum": [ - "appEvents" + "appStoreVersionExperimentTreatments" ] }, "id": { @@ -75177,79 +95795,11 @@ "attributes": { "type": "object", "properties": { - "referenceName": { + "name": { "type": "string" }, - "badge": { - "type": "string", - "enum": [ - "LIVE_EVENT", - "PREMIERE", - "CHALLENGE", - "COMPETITION", - "NEW_SEASON", - "MAJOR_UPDATE", - "SPECIAL_EVENT" - ] - }, - "deepLink": { - "type": "string", - "format": "uri" - }, - "purchaseRequirement": { - "type": "string", - "enum": [ - "NO_COST_ASSOCIATED", - "IN_APP_PURCHASE", - "SUBSCRIPTION", - "IN_APP_PURCHASE_AND_SUBSCRIPTION", - "IN_APP_PURCHASE_OR_SUBSCRIPTION" - ] - }, - "primaryLocale": { + "appIconName": { "type": "string" - }, - "priority": { - "type": "string", - "enum": [ - "HIGH", - "NORMAL" - ] - }, - "purpose": { - "type": "string", - "enum": [ - "APPROPRIATE_FOR_ALL_USERS", - "ATTRACT_NEW_USERS", - "KEEP_ACTIVE_USERS_INFORMED", - "BRING_BACK_LAPSED_USERS" - ] - }, - "territorySchedules": { - "type": "array", - "items": { - "type": "object", - "properties": { - "territories": { - "type": "array", - "items": { - "type": "string" - } - }, - "publishStart": { - "type": "string", - "format": "date-time" - }, - "eventStart": { - "type": "string", - "format": "date-time" - }, - "eventEnd": { - "type": "string", - "format": "date-time" - } - } - } } } } @@ -75264,14 +95814,14 @@ "data" ] }, - "AppInfoLocalization": { + "AppStoreVersionExperimentV2": { "type": "object", - "title": "AppInfoLocalization", + "title": "AppStoreVersionExperimentV2", "properties": { "type": { "type": "string", "enum": [ - "appInfoLocalizations" + "appStoreVersionExperiments" ] }, "id": { @@ -75280,30 +95830,118 @@ "attributes": { "type": "object", "properties": { - "locale": { - "type": "string" - }, "name": { "type": "string" }, - "subtitle": { - "type": "string" + "platform": { + "$ref": "#/components/schemas/Platform" }, - "privacyPolicyUrl": { - "type": "string" + "trafficProportion": { + "type": "integer" }, - "privacyChoicesUrl": { - "type": "string" + "state": { + "type": "string", + "enum": [ + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" + ] + }, + "reviewRequired": { + "type": "boolean" + }, + "startDate": { + "type": "string", + "format": "date-time" + }, + "endDate": { + "type": "string", + "format": "date-time" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "latestControlVersion": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } }, - "privacyPolicyText": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appInfo": { + "controlVersions": { "type": "object", "properties": { "links": { @@ -75319,23 +95957,71 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersionExperimentTreatments": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "appInfos" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperimentTreatments" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } } @@ -75346,25 +96032,34 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppInfoLocalizationsResponse": { + "AppStoreVersionExperimentsV2Response": { "type": "object", - "title": "AppInfoLocalizationsResponse", + "title": "AppStoreVersionExperimentsV2Response", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppInfoLocalization" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppInfo" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + ] } }, "links": { @@ -75379,17 +96074,27 @@ "links" ] }, - "AppInfoLocalizationResponse": { + "AppStoreVersionExperimentV2Response": { "type": "object", - "title": "AppInfoLocalizationResponse", + "title": "AppStoreVersionExperimentV2Response", "properties": { "data": { - "$ref": "#/components/schemas/AppInfoLocalization" + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppInfo" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + ] } }, "links": { @@ -75401,9 +96106,9 @@ "links" ] }, - "AppInfoLocalizationCreateRequest": { + "AppStoreVersionExperimentV2CreateRequest": { "type": "object", - "title": "AppInfoLocalizationCreateRequest", + "title": "AppStoreVersionExperimentV2CreateRequest", "properties": { "data": { "type": "object", @@ -75411,39 +96116,32 @@ "type": { "type": "string", "enum": [ - "appInfoLocalizations" + "appStoreVersionExperiments" ] }, "attributes": { "type": "object", "properties": { - "locale": { - "type": "string" - }, "name": { "type": "string" }, - "subtitle": { - "type": "string" - }, - "privacyPolicyUrl": { - "type": "string" - }, - "privacyChoicesUrl": { - "type": "string" + "platform": { + "$ref": "#/components/schemas/Platform" }, - "privacyPolicyText": { - "type": "string" + "trafficProportion": { + "type": "integer" } }, "required": [ - "locale" + "trafficProportion", + "name", + "platform" ] }, "relationships": { "type": "object", "properties": { - "appInfo": { + "app": { "type": "object", "properties": { "data": { @@ -75452,7 +96150,7 @@ "type": { "type": "string", "enum": [ - "appInfos" + "apps" ] }, "id": { @@ -75471,7 +96169,7 @@ } }, "required": [ - "appInfo" + "app" ] } }, @@ -75486,9 +96184,9 @@ "data" ] }, - "AppInfoLocalizationUpdateRequest": { + "AppStoreVersionExperimentV2UpdateRequest": { "type": "object", - "title": "AppInfoLocalizationUpdateRequest", + "title": "AppStoreVersionExperimentV2UpdateRequest", "properties": { "data": { "type": "object", @@ -75496,7 +96194,7 @@ "type": { "type": "string", "enum": [ - "appInfoLocalizations" + "appStoreVersionExperiments" ] }, "id": { @@ -75508,17 +96206,11 @@ "name": { "type": "string" }, - "subtitle": { - "type": "string" - }, - "privacyPolicyUrl": { - "type": "string" - }, - "privacyChoicesUrl": { - "type": "string" + "trafficProportion": { + "type": "integer" }, - "privacyPolicyText": { - "type": "string" + "started": { + "type": "boolean" } } } @@ -75533,14 +96225,14 @@ "data" ] }, - "AppInfo": { + "AppStoreVersionExperiment": { "type": "object", - "title": "AppInfo", + "title": "AppStoreVersionExperiment", "properties": { "type": { "type": "string", "enum": [ - "appInfos" + "appStoreVersionExperiments" ] }, "id": { @@ -75549,78 +96241,43 @@ "attributes": { "type": "object", "properties": { - "appStoreState": { - "$ref": "#/components/schemas/AppStoreVersionState" - }, - "appStoreAgeRating": { - "$ref": "#/components/schemas/AppStoreAgeRating" + "name": { + "type": "string" }, - "brazilAgeRating": { - "deprecated": true, - "$ref": "#/components/schemas/BrazilAgeRating" + "trafficProportion": { + "type": "integer" }, - "brazilAgeRatingV2": { + "state": { "type": "string", "enum": [ - "SELF_RATED_L", - "SELF_RATED_TEN", - "SELF_RATED_TWELVE", - "SELF_RATED_FOURTEEN", - "SELF_RATED_SIXTEEN", - "SELF_RATED_EIGHTEEN", - "OFFICIAL_L", - "OFFICIAL_TEN", - "OFFICIAL_TWELVE", - "OFFICIAL_FOURTEEN", - "OFFICIAL_SIXTEEN", - "OFFICIAL_EIGHTEEN" + "PREPARE_FOR_SUBMISSION", + "READY_FOR_REVIEW", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "ACCEPTED", + "APPROVED", + "REJECTED", + "COMPLETED", + "STOPPED" ] }, - "kidsAgeBand": { - "$ref": "#/components/schemas/KidsAgeBand" + "reviewRequired": { + "type": "boolean" + }, + "startDate": { + "type": "string", + "format": "date-time" + }, + "endDate": { + "type": "string", + "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "app": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "ageRatingDeclaration": { + "appStoreVersion": { "type": "object", "properties": { "links": { @@ -75642,7 +96299,7 @@ "type": { "type": "string", "enum": [ - "ageRatingDeclarations" + "appStoreVersions" ] }, "id": { @@ -75656,7 +96313,7 @@ } } }, - "appInfoLocalizations": { + "appStoreVersionExperimentTreatments": { "type": "object", "properties": { "links": { @@ -75683,7 +96340,7 @@ "type": { "type": "string", "enum": [ - "appInfoLocalizations" + "appStoreVersionExperimentTreatments" ] }, "id": { @@ -75697,116 +96354,247 @@ } } } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "AppStoreVersionExperimentsResponse": { + "type": "object", + "title": "AppStoreVersionExperimentsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppStoreVersionExperimentResponse": { + "type": "object", + "title": "AppStoreVersionExperimentResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppStoreVersionExperimentCreateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] }, - "primaryCategory": { + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "name": { + "type": "string" }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "trafficProportion": { + "type": "integer" } - } + }, + "required": [ + "trafficProportion", + "name" + ] }, - "primarySubcategoryOne": { + "relationships": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { + "appStoreVersion": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "id": { - "type": "string" } }, "required": [ - "id", - "type" + "data" ] } - } + }, + "required": [ + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "AppStoreVersionExperimentUpdateRequest": { + "type": "object", + "title": "AppStoreVersionExperimentUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] }, - "primarySubcategoryTwo": { + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "name": { + "type": "string" + }, + "trafficProportion": { + "type": "integer" + }, + "started": { + "type": "boolean" } } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "AppStoreVersionLocalization": { + "type": "object", + "title": "AppStoreVersionLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "description": { + "type": "string" }, - "secondaryCategory": { + "locale": { + "type": "string" + }, + "keywords": { + "type": "string" + }, + "marketingUrl": { + "type": "string", + "format": "uri" + }, + "promotionalText": { + "type": "string" + }, + "supportUrl": { + "type": "string", + "format": "uri" + }, + "whatsNew": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { "type": "object", "properties": { "links": { @@ -75828,7 +96616,7 @@ "type": { "type": "string", "enum": [ - "appCategories" + "appStoreVersions" ] }, "id": { @@ -75842,7 +96630,7 @@ } } }, - "secondarySubcategoryOne": { + "appScreenshotSets": { "type": "object", "properties": { "links": { @@ -75858,27 +96646,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshotSets" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "secondarySubcategoryTwo": { + "appPreviewSets": { "type": "object", "properties": { "links": { @@ -75894,23 +96688,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviewSets" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -75921,19 +96721,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppInfosResponse": { + "AppStoreVersionLocalizationsResponse": { "type": "object", - "title": "AppInfosResponse", + "title": "AppStoreVersionLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppInfo" + "$ref": "#/components/schemas/AppStoreVersionLocalization" } }, "included": { @@ -75941,87 +96740,385 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AgeRatingDeclaration" + "$ref": "#/components/schemas/AppStoreVersion" }, { - "$ref": "#/components/schemas/AppInfoLocalization" + "$ref": "#/components/schemas/AppScreenshotSet" }, { - "$ref": "#/components/schemas/AppCategory" - }, + "$ref": "#/components/schemas/AppPreviewSet" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionLocalizationResponse": { + "type": "object", + "title": "AppStoreVersionLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/AppStoreVersion" }, { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/AppScreenshotSet" }, { - "$ref": "#/components/schemas/AppCategory" + "$ref": "#/components/schemas/AppPreviewSet" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionLocalizationCreateRequest": { + "type": "object", + "title": "AppStoreVersionLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "keywords": { + "type": "string" + }, + "marketingUrl": { + "type": "string", + "format": "uri" + }, + "promotionalText": { + "type": "string" + }, + "supportUrl": { + "type": "string", + "format": "uri" + }, + "whatsNew": { + "type": "string" + } }, - { - "$ref": "#/components/schemas/AppCategory" + "required": [ + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } }, - { - "$ref": "#/components/schemas/AppCategory" + "required": [ + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionLocalizationUpdateRequest": { + "type": "object", + "title": "AppStoreVersionLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "description": { + "type": "string" + }, + "keywords": { + "type": "string" + }, + "marketingUrl": { + "type": "string", + "format": "uri" + }, + "promotionalText": { + "type": "string" + }, + "supportUrl": { + "type": "string", + "format": "uri" + }, + "whatsNew": { + "type": "string" + } } - ] + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionPhasedRelease": { + "type": "object", + "title": "AppStoreVersionPhasedRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPhasedReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "phasedReleaseState": { + "$ref": "#/components/schemas/PhasedReleaseState" + }, + "startDate": { + "type": "string", + "format": "date-time" + }, + "totalPauseDuration": { + "type": "integer" + }, + "currentDayNumber": { + "type": "integer" + } } }, "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionPhasedReleaseResponse": { + "type": "object", + "title": "AppStoreVersionPhasedReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionPhasedReleaseCreateRequest": { + "type": "object", + "title": "AppStoreVersionPhasedReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPhasedReleases" + ] + }, + "attributes": { + "type": "object", + "properties": { + "phasedReleaseState": { + "$ref": "#/components/schemas/PhasedReleaseState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionPhasedReleaseUpdateRequest": { + "type": "object", + "title": "AppStoreVersionPhasedReleaseUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPhasedReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "phasedReleaseState": { + "$ref": "#/components/schemas/PhasedReleaseState" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionPromotion": { + "type": "object", + "title": "AppStoreVersionPromotion", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPromotions" + ] }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "id": { + "type": "string" } }, "required": [ - "data", - "links" + "id", + "type" ] }, - "AppInfoResponse": { + "AppStoreVersionPromotionResponse": { "type": "object", - "title": "AppInfoResponse", + "title": "AppStoreVersionPromotionResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppInfo" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AgeRatingDeclaration" - }, - { - "$ref": "#/components/schemas/AppInfoLocalization" - }, - { - "$ref": "#/components/schemas/AppCategory" - }, - { - "$ref": "#/components/schemas/AppCategory" - }, - { - "$ref": "#/components/schemas/AppCategory" - }, - { - "$ref": "#/components/schemas/AppCategory" - }, - { - "$ref": "#/components/schemas/AppCategory" - }, - { - "$ref": "#/components/schemas/AppCategory" - } - ] - } + "$ref": "#/components/schemas/AppStoreVersionPromotion" }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -76032,9 +97129,9 @@ "links" ] }, - "AppInfoUpdateRequest": { + "AppStoreVersionPromotionCreateRequest": { "type": "object", - "title": "AppInfoUpdateRequest", + "title": "AppStoreVersionPromotionCreateRequest", "properties": { "data": { "type": "object", @@ -76042,16 +97139,13 @@ "type": { "type": "string", "enum": [ - "appInfos" + "appStoreVersionPromotions" ] }, - "id": { - "type": "string" - }, "relationships": { "type": "object", "properties": { - "primaryCategory": { + "appStoreVersion": { "type": "object", "properties": { "data": { @@ -76060,7 +97154,7 @@ "type": { "type": "string", "enum": [ - "appCategories" + "appStoreVersions" ] }, "id": { @@ -76072,9 +97166,12 @@ "type" ] } - } + }, + "required": [ + "data" + ] }, - "primarySubcategoryOne": { + "appStoreVersionExperimentTreatment": { "type": "object", "properties": { "data": { @@ -76083,7 +97180,7 @@ "type": { "type": "string", "enum": [ - "appCategories" + "appStoreVersionExperimentTreatments" ] }, "id": { @@ -76095,9 +97192,80 @@ "type" ] } - } - }, - "primarySubcategoryTwo": { + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appStoreVersionExperimentTreatment", + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionReleaseRequest": { + "type": "object", + "title": "AppStoreVersionReleaseRequest", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionReleaseRequests" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppStoreVersionReleaseRequestResponse": { + "type": "object", + "title": "AppStoreVersionReleaseRequestResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionReleaseRequest" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionReleaseRequestCreateRequest": { + "type": "object", + "title": "AppStoreVersionReleaseRequestCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionReleaseRequests" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { "type": "object", "properties": { "data": { @@ -76106,7 +97274,7 @@ "type": { "type": "string", "enum": [ - "appCategories" + "appStoreVersions" ] }, "id": { @@ -76118,55 +97286,131 @@ "type" ] } - } - }, - "secondaryCategory": { + }, + "required": [ + "data" + ] + } + }, + "required": [ + "appStoreVersion" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppStoreVersionSubmission": { + "type": "object", + "title": "AppStoreVersionSubmission", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionSubmissions" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" } } }, - "secondarySubcategoryOne": { + "data": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCategories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "type": { + "type": "string", + "enum": [ + "appStoreVersions" ] + }, + "id": { + "type": "string" } - } - }, - "secondarySubcategoryTwo": { + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "AppStoreVersionSubmissionResponse": { + "type": "object", + "title": "AppStoreVersionSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersionSubmission" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "AppStoreVersionSubmissionCreateRequest": { + "type": "object", + "title": "AppStoreVersionSubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionSubmissions" + ] + }, + "relationships": { + "type": "object", + "properties": { + "appStoreVersion": { "type": "object", "properties": { "data": { @@ -76175,7 +97419,7 @@ "type": { "type": "string", "enum": [ - "appCategories" + "appStoreVersions" ] }, "id": { @@ -76187,29 +97431,36 @@ "type" ] } - } + }, + "required": [ + "data" + ] } - } + }, + "required": [ + "appStoreVersion" + ] } }, "required": [ - "id", + "relationships", "type" ] } }, "required": [ "data" - ] + ], + "deprecated": true }, - "AppPreOrder": { + "AppStoreVersion": { "type": "object", - "title": "AppPreOrder", + "title": "AppStoreVersion", "properties": { "type": { "type": "string", "enum": [ - "appPreOrders" + "appStoreVersions" ] }, "id": { @@ -76218,13 +97469,36 @@ "attributes": { "type": "object", "properties": { - "preOrderAvailableDate": { + "platform": { + "$ref": "#/components/schemas/Platform" + }, + "versionString": { + "type": "string" + }, + "appStoreState": { + "$ref": "#/components/schemas/AppStoreVersionState" + }, + "copyright": { + "type": "string" + }, + "releaseType": { "type": "string", - "format": "date" + "enum": [ + "MANUAL", + "AFTER_APPROVAL", + "SCHEDULED" + ] }, - "appReleaseDate": { + "earliestReleaseDate": { "type": "string", - "format": "date" + "format": "date-time" + }, + "downloadable": { + "type": "boolean" + }, + "createdDate": { + "type": "string", + "format": "date-time" } } }, @@ -76253,7 +97527,158 @@ "type": { "type": "string", "enum": [ - "apps" + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "ageRatingDeclaration": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ageRatingDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "deprecated": true + }, + "appStoreVersionLocalizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "build": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appStoreVersionPhasedRelease": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionPhasedReleases" ] }, "id": { @@ -76266,169 +97691,44 @@ ] } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppPreOrderResponse": { - "type": "object", - "title": "AppPreOrderResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPreOrder" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/App" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPreOrderCreateRequest": { - "type": "object", - "title": "AppPreOrderCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreOrders" - ] - }, - "attributes": { - "type": "object", - "properties": { - "appReleaseDate": { - "type": "string", - "format": "date" - } - } }, - "relationships": { + "routingAppCoverage": { "type": "object", "properties": { - "app": { + "links": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "routingAppCoverages" ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] } - }, - "required": [ - "app" - ] - } - }, - "required": [ - "relationships", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppPreOrderUpdateRequest": { - "type": "object", - "title": "AppPreOrderUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreOrders" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "appReleaseDate": { - "type": "string", - "format": "date" - } } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppPreviewSet": { - "type": "object", - "title": "AppPreviewSet", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreviewSets" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "previewType": { - "$ref": "#/components/schemas/PreviewType" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appStoreVersionLocalization": { + }, + "appStoreReviewDetail": { "type": "object", "properties": { "links": { @@ -76450,7 +97750,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionLocalizations" + "appStoreReviewDetails" ] }, "id": { @@ -76464,7 +97764,7 @@ } } }, - "appCustomProductPageLocalization": { + "appStoreVersionSubmission": { "type": "object", "properties": { "links": { @@ -76486,7 +97786,7 @@ "type": { "type": "string", "enum": [ - "appCustomProductPageLocalizations" + "appStoreVersionSubmissions" ] }, "id": { @@ -76500,7 +97800,7 @@ } } }, - "appStoreVersionExperimentTreatmentLocalization": { + "appClipDefaultExperience": { "type": "object", "properties": { "links": { @@ -76522,7 +97822,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" + "appClipDefaultExperiences" ] }, "id": { @@ -76536,7 +97836,7 @@ } } }, - "appPreviews": { + "appStoreVersionExperiments": { "type": "object", "properties": { "links": { @@ -76563,7 +97863,7 @@ "type": { "type": "string", "enum": [ - "appPreviews" + "appStoreVersionExperiments" ] }, "id": { @@ -76577,256 +97877,8 @@ } } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppPreviewSetsResponse": { - "type": "object", - "title": "AppPreviewSetsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPreviewSet" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionLocalization" - }, - { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" - }, - { - "$ref": "#/components/schemas/AppPreview" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPreviewSetResponse": { - "type": "object", - "title": "AppPreviewSetResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPreviewSet" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionLocalization" - }, - { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" - }, - { - "$ref": "#/components/schemas/AppPreview" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPreviewSetCreateRequest": { - "type": "object", - "title": "AppPreviewSetCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreviewSets" - ] - }, - "attributes": { - "type": "object", - "properties": { - "previewType": { - "$ref": "#/components/schemas/PreviewType" - } - }, - "required": [ - "previewType" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appStoreVersionLocalization": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appCustomProductPageLocalization": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appStoreVersionExperimentTreatmentLocalization": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - } - }, - "required": [ - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppPreview": { - "type": "object", - "title": "AppPreview", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreviews" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - }, - "sourceFileChecksum": { - "type": "string" - }, - "previewFrameTimeCode": { - "type": "string" - }, - "mimeType": { - "type": "string" - }, - "videoUrl": { - "type": "string" - }, - "previewImage": { - "$ref": "#/components/schemas/ImageAsset" - }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appPreviewSet": { + "appStoreVersionExperimentsV2": { "type": "object", "properties": { "links": { @@ -76842,23 +97894,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreviewSets" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionExperiments" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -76869,25 +97927,58 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppPreviewsResponse": { + "AppStoreVersionsResponse": { "type": "object", - "title": "AppPreviewsResponse", + "title": "AppStoreVersionsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppPreview" + "$ref": "#/components/schemas/AppStoreVersion" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppPreviewSet" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + }, + { + "$ref": "#/components/schemas/RoutingAppCoverage" + }, + { + "$ref": "#/components/schemas/AppStoreReviewDetail" + }, + { + "$ref": "#/components/schemas/AppStoreVersionSubmission" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + } + ] } }, "links": { @@ -76902,17 +97993,51 @@ "links" ] }, - "AppPreviewResponse": { + "AppStoreVersionResponse": { "type": "object", - "title": "AppPreviewResponse", + "title": "AppStoreVersionResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppPreview" + "$ref": "#/components/schemas/AppStoreVersion" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppPreviewSet" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/AgeRatingDeclaration" + }, + { + "$ref": "#/components/schemas/AppStoreVersionLocalization" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + }, + { + "$ref": "#/components/schemas/RoutingAppCoverage" + }, + { + "$ref": "#/components/schemas/AppStoreReviewDetail" + }, + { + "$ref": "#/components/schemas/AppStoreVersionSubmission" + }, + { + "$ref": "#/components/schemas/AppClipDefaultExperience" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperiment" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + } + ] } }, "links": { @@ -76924,9 +98049,9 @@ "links" ] }, - "AppPreviewCreateRequest": { + "AppStoreVersionCreateRequest": { "type": "object", - "title": "AppPreviewCreateRequest", + "title": "AppStoreVersionCreateRequest", "properties": { "data": { "type": "object", @@ -76934,34 +98059,43 @@ "type": { "type": "string", "enum": [ - "appPreviews" + "appStoreVersions" ] }, "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" + "platform": { + "$ref": "#/components/schemas/Platform" }, - "fileName": { + "versionString": { "type": "string" }, - "previewFrameTimeCode": { + "copyright": { "type": "string" }, - "mimeType": { - "type": "string" + "releaseType": { + "type": "string", + "enum": [ + "MANUAL", + "AFTER_APPROVAL", + "SCHEDULED" + ] + }, + "earliestReleaseDate": { + "type": "string", + "format": "date-time" } }, "required": [ - "fileName", - "fileSize" + "versionString", + "platform" ] }, "relationships": { "type": "object", "properties": { - "appPreviewSet": { + "app": { "type": "object", "properties": { "data": { @@ -76970,7 +98104,7 @@ "type": { "type": "string", "enum": [ - "appPreviewSets" + "apps" ] }, "id": { @@ -76986,10 +98120,59 @@ "required": [ "data" ] + }, + "appStoreVersionLocalizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "build": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } }, "required": [ - "appPreviewSet" + "app" ] } }, @@ -77004,9 +98187,9 @@ "data" ] }, - "AppPreviewUpdateRequest": { + "AppStoreVersionUpdateRequest": { "type": "object", - "title": "AppPreviewUpdateRequest", + "title": "AppStoreVersionUpdateRequest", "properties": { "data": { "type": "object", @@ -77014,7 +98197,7 @@ "type": { "type": "string", "enum": [ - "appPreviews" + "appStoreVersions" ] }, "id": { @@ -77023,16 +98206,79 @@ "attributes": { "type": "object", "properties": { - "sourceFileChecksum": { + "versionString": { "type": "string" }, - "previewFrameTimeCode": { + "copyright": { "type": "string" }, - "uploaded": { + "releaseType": { + "type": "string", + "enum": [ + "MANUAL", + "AFTER_APPROVAL", + "SCHEDULED" + ] + }, + "earliestReleaseDate": { + "type": "string", + "format": "date-time" + }, + "downloadable": { "type": "boolean" } } + }, + "relationships": { + "type": "object", + "properties": { + "build": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDefaultExperience": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } } }, "required": [ @@ -77045,14 +98291,14 @@ "data" ] }, - "AppPricePointV2": { + "App": { "type": "object", - "title": "AppPricePointV2", + "title": "App", "properties": { "type": { "type": "string", "enum": [ - "appPricePoints" + "apps" ] }, "id": { @@ -77061,18 +98307,94 @@ "attributes": { "type": "object", "properties": { - "customerPrice": { + "name": { "type": "string" }, - "proceeds": { + "bundleId": { + "type": "string" + }, + "sku": { + "type": "string" + }, + "primaryLocale": { "type": "string" + }, + "isOrEverWasMadeForKids": { + "type": "boolean" + }, + "subscriptionStatusUrl": { + "type": "string", + "format": "uri" + }, + "subscriptionStatusUrlVersion": { + "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" + }, + "subscriptionStatusUrlForSandbox": { + "type": "string", + "format": "uri" + }, + "subscriptionStatusUrlVersionForSandbox": { + "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" + }, + "availableInNewTerritories": { + "type": "boolean", + "deprecated": true + }, + "contentRightsDeclaration": { + "type": "string", + "enum": [ + "DOES_NOT_USE_THIRD_PARTY_CONTENT", + "USES_THIRD_PARTY_CONTENT" + ] } } }, "relationships": { "type": "object", "properties": { - "app": { + "appEncryptionDeclarations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEncryptionDeclarations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "ciProduct": { "type": "object", "properties": { "links": { @@ -77094,7 +98416,7 @@ "type": { "type": "string", "enum": [ - "apps" + "ciProducts" ] }, "id": { @@ -77108,7 +98430,7 @@ } } }, - "priceTier": { + "betaGroups": { "type": "object", "properties": { "links": { @@ -77124,27 +98446,75 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreVersions": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "appPriceTiers" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } }, - "territory": { + "preReleaseVersions": { "type": "object", "properties": { "links": { @@ -77160,106 +98530,75 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "preReleaseVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "betaAppLocalizations": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "territories" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ], - "deprecated": true - }, - "AppPricePointsV2Response": { - "type": "object", - "title": "AppPricePointsV2Response", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPricePointV2" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AppPriceTier" - }, - { - "$ref": "#/components/schemas/Territory" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppPricePointV3": { - "type": "object", - "title": "AppPricePointV3", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPricePoints" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "customerPrice": { - "type": "string" + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } }, - "proceeds": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "app": { + "builds": { "type": "object", "properties": { "links": { @@ -77275,27 +98614,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "territory": { + "betaLicenseAgreement": { "type": "object", "properties": { "links": { @@ -77317,7 +98662,7 @@ "type": { "type": "string", "enum": [ - "territories" + "betaLicenseAgreements" ] }, "id": { @@ -77330,111 +98675,8 @@ ] } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppPricePointsV3Response": { - "type": "object", - "title": "AppPricePointsV3Response", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPricePointV3" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Territory" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPricePointV3Response": { - "type": "object", - "title": "AppPricePointV3Response", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPricePointV3" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Territory" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPricePoint": { - "type": "object", - "title": "AppPricePoint", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPricePoints" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "customerPrice": { - "type": "string" }, - "proceeds": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "priceTier": { + "betaAppReviewDetail": { "type": "object", "properties": { "links": { @@ -77456,7 +98698,7 @@ "type": { "type": "string", "enum": [ - "appPriceTiers" + "betaAppReviewDetails" ] }, "id": { @@ -77470,7 +98712,7 @@ } } }, - "territory": { + "appInfos": { "type": "object", "properties": { "links": { @@ -77486,122 +98728,75 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appInfos" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appClips": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "territories" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClips" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ], - "deprecated": true - }, - "AppPricePointsResponse": { - "type": "object", - "title": "AppPricePointsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPricePoint" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppPriceTier" - }, - { - "$ref": "#/components/schemas/Territory" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppPricePointResponse": { - "type": "object", - "title": "AppPricePointResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPricePoint" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppPriceTier" - }, - { - "$ref": "#/components/schemas/Territory" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppPriceSchedule": { - "type": "object", - "title": "AppPriceSchedule", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPriceSchedules" - ] - }, - "id": { - "type": "string" - }, - "relationships": { - "type": "object", - "properties": { - "app": { + }, + "endUserLicenseAgreement": { "type": "object", "properties": { "links": { @@ -77623,7 +98818,7 @@ "type": { "type": "string", "enum": [ - "apps" + "endUserLicenseAgreements" ] }, "id": { @@ -77637,7 +98832,7 @@ } } }, - "baseTerritory": { + "preOrder": { "type": "object", "properties": { "links": { @@ -77659,7 +98854,7 @@ "type": { "type": "string", "enum": [ - "territories" + "appPreOrders" ] }, "id": { @@ -77673,7 +98868,7 @@ } } }, - "manualPrices": { + "prices": { "type": "object", "properties": { "links": { @@ -77713,9 +98908,10 @@ ] } } - } + }, + "deprecated": true }, - "automaticPrices": { + "availableTerritories": { "type": "object", "properties": { "links": { @@ -77742,7 +98938,7 @@ "type": { "type": "string", "enum": [ - "appPrices" + "territories" ] }, "id": { @@ -77752,203 +98948,13 @@ "required": [ "id", "type" - ] - } - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppPriceScheduleResponse": { - "type": "object", - "title": "AppPriceScheduleResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPriceSchedule" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Territory" - }, - { - "$ref": "#/components/schemas/AppPriceV2" - }, - { - "$ref": "#/components/schemas/AppPriceV2" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPriceScheduleCreateRequest": { - "type": "object", - "title": "AppPriceScheduleCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPriceSchedules" - ] - }, - "relationships": { - "type": "object", - "properties": { - "app": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "baseTerritory": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "manualPrices": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "app", - "manualPrices", - "baseTerritory" - ] - } - }, - "required": [ - "relationships", - "type" - ] - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppPriceV2InlineCreate" + ] + } + } }, - { - "$ref": "#/components/schemas/TerritoryInlineCreate" - } - ] - } - } - }, - "required": [ - "data" - ] - }, - "AppPriceTier": { - "type": "object", - "title": "AppPriceTier", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPriceTiers" - ] - }, - "id": { - "type": "string" - }, - "relationships": { - "type": "object", - "properties": { - "pricePoints": { + "deprecated": true + }, + "inAppPurchases": { "type": "object", "properties": { "links": { @@ -77975,7 +98981,7 @@ "type": { "type": "string", "enum": [ - "appPricePoints" + "inAppPurchases" ] }, "id": { @@ -77990,105 +98996,8 @@ } }, "deprecated": true - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ], - "deprecated": true - }, - "AppPriceTiersResponse": { - "type": "object", - "title": "AppPriceTiersResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPriceTier" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPricePoint" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppPriceTierResponse": { - "type": "object", - "title": "AppPriceTierResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPriceTier" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPricePoint" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppPriceV2": { - "type": "object", - "title": "AppPriceV2", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "manual": { - "type": "boolean" - }, - "startDate": { - "type": "string", - "format": "date" }, - "endDate": { - "type": "string", - "format": "date" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appPricePoint": { + "subscriptionGroups": { "type": "object", "properties": { "links": { @@ -78104,27 +99013,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPricePoints" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionGroups" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "territory": { + "gameCenterEnabledVersions": { "type": "object", "properties": { "links": { @@ -78140,107 +99055,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppPriceV2InlineCreate": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "type" - ] - }, - "AppPricesV2Response": { - "type": "object", - "title": "AppPricesV2Response", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPriceV2" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppPricePointV3" - }, - { - "$ref": "#/components/schemas/Territory" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppPrice": { - "type": "object", - "title": "AppPrice", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - }, - "relationships": { - "type": "object", - "properties": { - "app": { + }, + "appCustomProductPages": { "type": "object", "properties": { "links": { @@ -78256,27 +99097,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appCustomProductPages" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "priceTier": { + "inAppPurchasesV2": { "type": "object", "properties": { "links": { @@ -78292,147 +99139,75 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "promotedPurchases": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "appPriceTiers" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ], - "deprecated": true - }, - "AppPriceInlineCreate": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "type" - ] - }, - "AppPricesResponse": { - "type": "object", - "title": "AppPricesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPrice" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AppPriceTier" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppPriceResponse": { - "type": "object", - "title": "AppPriceResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppPrice" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/AppPriceTier" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ], - "deprecated": true - }, - "AppScreenshotSet": { - "type": "object", - "title": "AppScreenshotSet", - "properties": { - "type": { - "type": "string", - "enum": [ - "appScreenshotSets" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "screenshotDisplayType": { - "$ref": "#/components/schemas/ScreenshotDisplayType" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appStoreVersionLocalization": { + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appEvents": { "type": "object", "properties": { "links": { @@ -78448,27 +99223,75 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appEvents" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "reviewSubmissions": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "appStoreVersionLocalizations" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "reviewSubmissions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } }, - "appCustomProductPageLocalization": { + "subscriptionGracePeriod": { "type": "object", "properties": { "links": { @@ -78490,7 +99313,7 @@ "type": { "type": "string", "enum": [ - "appCustomProductPageLocalizations" + "subscriptionGracePeriods" ] }, "id": { @@ -78504,7 +99327,7 @@ } } }, - "appStoreVersionExperimentTreatmentLocalization": { + "gameCenterDetail": { "type": "object", "properties": { "links": { @@ -78526,7 +99349,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" + "gameCenterDetails" ] }, "id": { @@ -78540,7 +99363,7 @@ } } }, - "appScreenshots": { + "appStoreVersionExperimentsV2": { "type": "object", "properties": { "links": { @@ -78567,99 +99390,468 @@ "type": { "type": "string", "enum": [ - "appScreenshots" + "appStoreVersionExperiments" ] }, "id": { "type": "string" } }, - "required": [ - "id", - "type" - ] - } + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "AppsResponse": { + "type": "object", + "title": "AppsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + { + "$ref": "#/components/schemas/BetaAppLocalization" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/BetaLicenseAgreement" + }, + { + "$ref": "#/components/schemas/BetaAppReviewDetail" + }, + { + "$ref": "#/components/schemas/AppInfo" + }, + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + }, + { + "$ref": "#/components/schemas/AppPreOrder" + }, + { + "$ref": "#/components/schemas/AppPrice" + }, + { + "$ref": "#/components/schemas/Territory" + }, + { + "$ref": "#/components/schemas/InAppPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + }, + { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + { + "$ref": "#/components/schemas/InAppPurchaseV2" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/ReviewSubmission" + }, + { + "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppResponse": { + "type": "object", + "title": "AppResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/App" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/AppEncryptionDeclaration" + }, + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/BetaGroup" + }, + { + "$ref": "#/components/schemas/AppStoreVersion" + }, + { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + { + "$ref": "#/components/schemas/BetaAppLocalization" + }, + { + "$ref": "#/components/schemas/Build" + }, + { + "$ref": "#/components/schemas/BetaLicenseAgreement" + }, + { + "$ref": "#/components/schemas/BetaAppReviewDetail" + }, + { + "$ref": "#/components/schemas/AppInfo" + }, + { + "$ref": "#/components/schemas/AppClip" + }, + { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + }, + { + "$ref": "#/components/schemas/AppPreOrder" + }, + { + "$ref": "#/components/schemas/AppPrice" + }, + { + "$ref": "#/components/schemas/Territory" + }, + { + "$ref": "#/components/schemas/InAppPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + }, + { + "$ref": "#/components/schemas/AppCustomProductPage" + }, + { + "$ref": "#/components/schemas/InAppPurchaseV2" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/AppEvent" + }, + { + "$ref": "#/components/schemas/ReviewSubmission" + }, + { + "$ref": "#/components/schemas/SubscriptionGracePeriod" + }, + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppUpdateRequest": { + "type": "object", + "title": "AppUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "primaryLocale": { + "type": "string" + }, + "subscriptionStatusUrl": { + "type": "string", + "format": "uri" + }, + "subscriptionStatusUrlVersion": { + "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" + }, + "subscriptionStatusUrlForSandbox": { + "type": "string", + "format": "uri" + }, + "subscriptionStatusUrlVersionForSandbox": { + "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" + }, + "availableInNewTerritories": { + "type": "boolean", + "deprecated": true + }, + "contentRightsDeclaration": { + "type": "string", + "enum": [ + "DOES_NOT_USE_THIRD_PARTY_CONTENT", + "USES_THIRD_PARTY_CONTENT" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + }, + "availableTerritories": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "deprecated": true + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppPriceInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "BetaAppClipInvocationLocalization": { + "type": "object", + "title": "BetaAppClipInvocationLocalization", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "locale": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaAppClipInvocationLocalizationInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "title": { + "type": "string" + }, + "locale": { + "type": "string" + } + }, + "required": [ + "locale", + "title" + ] + }, + "relationships": { + "type": "object", + "properties": { + "betaAppClipInvocation": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", - "id", + "attributes", "type" ] }, - "AppScreenshotSetsResponse": { - "type": "object", - "title": "AppScreenshotSetsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppScreenshotSet" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionLocalization" - }, - { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" - }, - { - "$ref": "#/components/schemas/AppScreenshot" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppScreenshotSetResponse": { + "BetaAppClipInvocationLocalizationResponse": { "type": "object", - "title": "AppScreenshotSetResponse", + "title": "BetaAppClipInvocationLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppScreenshotSet" - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionLocalization" - }, - { - "$ref": "#/components/schemas/AppCustomProductPageLocalization" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" - }, - { - "$ref": "#/components/schemas/AppScreenshot" - } - ] - } + "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -78670,9 +99862,9 @@ "links" ] }, - "AppScreenshotSetCreateRequest": { + "BetaAppClipInvocationLocalizationCreateRequest": { "type": "object", - "title": "AppScreenshotSetCreateRequest", + "title": "BetaAppClipInvocationLocalizationCreateRequest", "properties": { "data": { "type": "object", @@ -78680,70 +99872,28 @@ "type": { "type": "string", "enum": [ - "appScreenshotSets" + "betaAppClipInvocationLocalizations" ] }, "attributes": { "type": "object", "properties": { - "screenshotDisplayType": { - "$ref": "#/components/schemas/ScreenshotDisplayType" + "title": { + "type": "string" + }, + "locale": { + "type": "string" } }, "required": [ - "screenshotDisplayType" + "locale", + "title" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersionLocalization": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appCustomProductPageLocalization": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPageLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appStoreVersionExperimentTreatmentLocalization": { + "betaAppClipInvocation": { "type": "object", "properties": { "data": { @@ -78752,7 +99902,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" + "betaAppClipInvocations" ] }, "id": { @@ -78764,12 +99914,19 @@ "type" ] } - } + }, + "required": [ + "data" + ] } - } + }, + "required": [ + "betaAppClipInvocation" + ] } }, "required": [ + "relationships", "attributes", "type" ] @@ -78779,14 +99936,49 @@ "data" ] }, - "AppScreenshot": { + "BetaAppClipInvocationLocalizationUpdateRequest": { "type": "object", - "title": "AppScreenshot", + "title": "BetaAppClipInvocationLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "title": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaAppClipInvocation": { + "type": "object", + "title": "BetaAppClipInvocation", "properties": { "type": { "type": "string", "enum": [ - "appScreenshots" + "betaAppClipInvocations" ] }, "id": { @@ -78795,39 +99987,16 @@ "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" - }, - "sourceFileChecksum": { - "type": "string" - }, - "imageAsset": { - "$ref": "#/components/schemas/ImageAsset" - }, - "assetToken": { - "type": "string" - }, - "assetType": { - "type": "string" - }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } - }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" + "url": { + "type": "string", + "format": "uri" } } }, "relationships": { "type": "object", "properties": { - "appScreenshotSet": { + "betaAppClipInvocationLocalizations": { "type": "object", "properties": { "links": { @@ -78843,23 +100012,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appScreenshotSets" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -78870,25 +100045,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppScreenshotsResponse": { + "BetaAppClipInvocationsResponse": { "type": "object", - "title": "AppScreenshotsResponse", + "title": "BetaAppClipInvocationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppScreenshot" + "$ref": "#/components/schemas/BetaAppClipInvocation" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppScreenshotSet" + "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" } }, "links": { @@ -78903,17 +100077,17 @@ "links" ] }, - "AppScreenshotResponse": { + "BetaAppClipInvocationResponse": { "type": "object", - "title": "AppScreenshotResponse", + "title": "BetaAppClipInvocationResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppScreenshot" + "$ref": "#/components/schemas/BetaAppClipInvocation" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppScreenshotSet" + "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" } }, "links": { @@ -78925,9 +100099,9 @@ "links" ] }, - "AppScreenshotCreateRequest": { + "BetaAppClipInvocationCreateRequest": { "type": "object", - "title": "AppScreenshotCreateRequest", + "title": "BetaAppClipInvocationCreateRequest", "properties": { "data": { "type": "object", @@ -78935,28 +100109,25 @@ "type": { "type": "string", "enum": [ - "appScreenshots" + "betaAppClipInvocations" ] }, "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" - }, - "fileName": { - "type": "string" + "url": { + "type": "string", + "format": "uri" } }, "required": [ - "fileName", - "fileSize" + "url" ] }, "relationships": { "type": "object", "properties": { - "appScreenshotSet": { + "buildBundle": { "type": "object", "properties": { "data": { @@ -78965,7 +100136,7 @@ "type": { "type": "string", "enum": [ - "appScreenshotSets" + "buildBundles" ] }, "id": { @@ -78981,10 +100152,40 @@ "required": [ "data" ] + }, + "betaAppClipInvocationLocalizations": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocationLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] } }, "required": [ - "appScreenshotSet" + "buildBundle", + "betaAppClipInvocationLocalizations" ] } }, @@ -78993,15 +100194,21 @@ "attributes", "type" ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationInlineCreate" + } } }, "required": [ "data" ] }, - "AppScreenshotUpdateRequest": { + "BetaAppClipInvocationUpdateRequest": { "type": "object", - "title": "AppScreenshotUpdateRequest", + "title": "BetaAppClipInvocationUpdateRequest", "properties": { "data": { "type": "object", @@ -79009,7 +100216,7 @@ "type": { "type": "string", "enum": [ - "appScreenshots" + "betaAppClipInvocations" ] }, "id": { @@ -79018,11 +100225,9 @@ "attributes": { "type": "object", "properties": { - "sourceFileChecksum": { - "type": "string" - }, - "uploaded": { - "type": "boolean" + "url": { + "type": "string", + "format": "uri" } } } @@ -79037,14 +100242,14 @@ "data" ] }, - "AppStoreReviewAttachment": { + "BetaAppLocalization": { "type": "object", - "title": "AppStoreReviewAttachment", + "title": "BetaAppLocalization", "properties": { "type": { "type": "string", "enum": [ - "appStoreReviewAttachments" + "betaAppLocalizations" ] }, "id": { @@ -79053,30 +100258,30 @@ "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" + "feedbackEmail": { + "type": "string" }, - "fileName": { + "marketingUrl": { "type": "string" }, - "sourceFileChecksum": { + "privacyPolicyUrl": { "type": "string" }, - "uploadOperations": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UploadOperation" - } + "tvOsPrivacyPolicy": { + "type": "string" }, - "assetDeliveryState": { - "$ref": "#/components/schemas/AppMediaAssetState" + "description": { + "type": "string" + }, + "locale": { + "type": "string" } } }, "relationships": { "type": "object", "properties": { - "appStoreReviewDetail": { + "app": { "type": "object", "properties": { "links": { @@ -79098,7 +100303,7 @@ "type": { "type": "string", "enum": [ - "appStoreReviewDetails" + "apps" ] }, "id": { @@ -79119,25 +100324,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreReviewAttachmentsResponse": { + "BetaAppLocalizationsResponse": { "type": "object", - "title": "AppStoreReviewAttachmentsResponse", + "title": "BetaAppLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreReviewAttachment" + "$ref": "#/components/schemas/BetaAppLocalization" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreReviewDetail" + "$ref": "#/components/schemas/App" } }, "links": { @@ -79152,17 +100356,17 @@ "links" ] }, - "AppStoreReviewAttachmentResponse": { + "BetaAppLocalizationResponse": { "type": "object", - "title": "AppStoreReviewAttachmentResponse", + "title": "BetaAppLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreReviewAttachment" + "$ref": "#/components/schemas/BetaAppLocalization" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreReviewDetail" + "$ref": "#/components/schemas/App" } }, "links": { @@ -79174,9 +100378,9 @@ "links" ] }, - "AppStoreReviewAttachmentCreateRequest": { + "BetaAppLocalizationCreateRequest": { "type": "object", - "title": "AppStoreReviewAttachmentCreateRequest", + "title": "BetaAppLocalizationCreateRequest", "properties": { "data": { "type": "object", @@ -79184,28 +100388,39 @@ "type": { "type": "string", "enum": [ - "appStoreReviewAttachments" + "betaAppLocalizations" ] }, "attributes": { "type": "object", "properties": { - "fileSize": { - "type": "integer" + "feedbackEmail": { + "type": "string" }, - "fileName": { + "marketingUrl": { + "type": "string" + }, + "privacyPolicyUrl": { + "type": "string" + }, + "tvOsPrivacyPolicy": { + "type": "string" + }, + "description": { + "type": "string" + }, + "locale": { "type": "string" } }, "required": [ - "fileName", - "fileSize" + "locale" ] }, "relationships": { "type": "object", "properties": { - "appStoreReviewDetail": { + "app": { "type": "object", "properties": { "data": { @@ -79214,7 +100429,7 @@ "type": { "type": "string", "enum": [ - "appStoreReviewDetails" + "apps" ] }, "id": { @@ -79233,7 +100448,7 @@ } }, "required": [ - "appStoreReviewDetail" + "app" ] } }, @@ -79248,9 +100463,9 @@ "data" ] }, - "AppStoreReviewAttachmentUpdateRequest": { + "BetaAppLocalizationUpdateRequest": { "type": "object", - "title": "AppStoreReviewAttachmentUpdateRequest", + "title": "BetaAppLocalizationUpdateRequest", "properties": { "data": { "type": "object", @@ -79258,7 +100473,7 @@ "type": { "type": "string", "enum": [ - "appStoreReviewAttachments" + "betaAppLocalizations" ] }, "id": { @@ -79267,11 +100482,20 @@ "attributes": { "type": "object", "properties": { - "sourceFileChecksum": { + "feedbackEmail": { "type": "string" }, - "uploaded": { - "type": "boolean" + "marketingUrl": { + "type": "string" + }, + "privacyPolicyUrl": { + "type": "string" + }, + "tvOsPrivacyPolicy": { + "type": "string" + }, + "description": { + "type": "string" } } } @@ -79286,14 +100510,14 @@ "data" ] }, - "AppStoreReviewDetail": { + "BetaAppReviewDetail": { "type": "object", - "title": "AppStoreReviewDetail", + "title": "BetaAppReviewDetail", "properties": { "type": { "type": "string", "enum": [ - "appStoreReviewDetails" + "betaAppReviewDetails" ] }, "id": { @@ -79330,44 +100554,8 @@ }, "relationships": { "type": "object", - "properties": { - "appStoreVersion": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appStoreReviewAttachments": { + "properties": { + "app": { "type": "object", "properties": { "links": { @@ -79383,29 +100571,23 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreReviewAttachments" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } } @@ -79416,33 +100598,31 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreReviewDetailResponse": { + "BetaAppReviewDetailsResponse": { "type": "object", - "title": "AppStoreReviewDetailResponse", + "title": "BetaAppReviewDetailsResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreReviewDetail" + "type": "array", + "items": { + "$ref": "#/components/schemas/BetaAppReviewDetail" + } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/AppStoreReviewAttachment" - } - ] + "$ref": "#/components/schemas/App" } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -79450,96 +100630,31 @@ "links" ] }, - "AppStoreReviewDetailCreateRequest": { + "BetaAppReviewDetailResponse": { "type": "object", - "title": "AppStoreReviewDetailCreateRequest", + "title": "BetaAppReviewDetailResponse", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreReviewDetails" - ] - }, - "attributes": { - "type": "object", - "properties": { - "contactFirstName": { - "type": "string" - }, - "contactLastName": { - "type": "string" - }, - "contactPhone": { - "type": "string" - }, - "contactEmail": { - "type": "string" - }, - "demoAccountName": { - "type": "string" - }, - "demoAccountPassword": { - "type": "string" - }, - "demoAccountRequired": { - "type": "boolean" - }, - "notes": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "appStoreVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "appStoreVersion" - ] - } - }, - "required": [ - "relationships", - "type" - ] + "$ref": "#/components/schemas/BetaAppReviewDetail" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ - "data" + "data", + "links" ] }, - "AppStoreReviewDetailUpdateRequest": { + "BetaAppReviewDetailUpdateRequest": { "type": "object", - "title": "AppStoreReviewDetailUpdateRequest", + "title": "BetaAppReviewDetailUpdateRequest", "properties": { "data": { "type": "object", @@ -79547,7 +100662,7 @@ "type": { "type": "string", "enum": [ - "appStoreReviewDetails" + "betaAppReviewDetails" ] }, "id": { @@ -79593,14 +100708,14 @@ "data" ] }, - "AppStoreVersionExperimentTreatmentLocalization": { + "BetaAppReviewSubmission": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentLocalization", + "title": "BetaAppReviewSubmission", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" + "betaAppReviewSubmissions" ] }, "id": { @@ -79609,15 +100724,19 @@ "attributes": { "type": "object", "properties": { - "locale": { - "type": "string" + "betaReviewState": { + "$ref": "#/components/schemas/BetaReviewState" + }, + "submittedDate": { + "type": "string", + "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "appStoreVersionExperimentTreatment": { + "build": { "type": "object", "properties": { "links": { @@ -79639,7 +100758,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "builds" ] }, "id": { @@ -79652,90 +100771,6 @@ ] } } - }, - "appScreenshotSets": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appScreenshotSets" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "appPreviewSets": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPreviewSets" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -79744,35 +100779,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreVersionExperimentTreatmentLocalizationsResponse": { + "BetaAppReviewSubmissionsResponse": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentLocalizationsResponse", + "title": "BetaAppReviewSubmissionsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + "$ref": "#/components/schemas/BetaAppReviewSubmission" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" - }, - { - "$ref": "#/components/schemas/AppScreenshotSet" - }, - { - "$ref": "#/components/schemas/AppPreviewSet" - } - ] + "$ref": "#/components/schemas/Build" } }, "links": { @@ -79787,27 +100811,17 @@ "links" ] }, - "AppStoreVersionExperimentTreatmentLocalizationResponse": { + "BetaAppReviewSubmissionResponse": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentLocalizationResponse", + "title": "BetaAppReviewSubmissionResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" + "$ref": "#/components/schemas/BetaAppReviewSubmission" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" - }, - { - "$ref": "#/components/schemas/AppScreenshotSet" - }, - { - "$ref": "#/components/schemas/AppPreviewSet" - } - ] + "$ref": "#/components/schemas/Build" } }, "links": { @@ -79819,9 +100833,9 @@ "links" ] }, - "AppStoreVersionExperimentTreatmentLocalizationCreateRequest": { + "BetaAppReviewSubmissionCreateRequest": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentLocalizationCreateRequest", + "title": "BetaAppReviewSubmissionCreateRequest", "properties": { "data": { "type": "object", @@ -79829,24 +100843,13 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" - ] - }, - "attributes": { - "type": "object", - "properties": { - "locale": { - "type": "string" - } - }, - "required": [ - "locale" + "betaAppReviewSubmissions" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersionExperimentTreatment": { + "build": { "type": "object", "properties": { "data": { @@ -79855,7 +100858,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "builds" ] }, "id": { @@ -79874,13 +100877,12 @@ } }, "required": [ - "appStoreVersionExperimentTreatment" + "build" ] } }, "required": [ "relationships", - "attributes", "type" ] } @@ -79889,14 +100891,14 @@ "data" ] }, - "AppStoreVersionExperimentTreatment": { + "BetaBuildLocalization": { "type": "object", - "title": "AppStoreVersionExperimentTreatment", + "title": "BetaBuildLocalization", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "betaBuildLocalizations" ] }, "id": { @@ -79905,61 +100907,18 @@ "attributes": { "type": "object", "properties": { - "name": { + "whatsNew": { "type": "string" }, - "appIcon": { - "$ref": "#/components/schemas/ImageAsset" - }, - "appIconName": { + "locale": { "type": "string" - }, - "promotedDate": { - "type": "string", - "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "appStoreVersionExperiment": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperiments" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appStoreVersionExperimentV2": { + "build": { "type": "object", "properties": { "links": { @@ -79981,7 +100940,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "builds" ] }, "id": { @@ -79994,48 +100953,6 @@ ] } } - }, - "appStoreVersionExperimentTreatmentLocalizations": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperimentTreatmentLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -80044,35 +100961,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreVersionExperimentTreatmentsResponse": { + "BetaBuildLocalizationsResponse": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentsResponse", + "title": "BetaBuildLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + "$ref": "#/components/schemas/BetaBuildLocalization" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionExperiment" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" - } - ] + "$ref": "#/components/schemas/Build" } }, "links": { @@ -80087,27 +100993,17 @@ "links" ] }, - "AppStoreVersionExperimentTreatmentResponse": { + "BetaBuildLocalizationResponse": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentResponse", + "title": "BetaBuildLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + "$ref": "#/components/schemas/BetaBuildLocalization" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersionExperiment" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatmentLocalization" - } - ] + "$ref": "#/components/schemas/Build" } }, "links": { @@ -80119,9 +101015,9 @@ "links" ] }, - "AppStoreVersionExperimentTreatmentCreateRequest": { + "BetaBuildLocalizationCreateRequest": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentCreateRequest", + "title": "BetaBuildLocalizationCreateRequest", "properties": { "data": { "type": "object", @@ -80129,27 +101025,27 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "betaBuildLocalizations" ] }, "attributes": { "type": "object", "properties": { - "name": { + "whatsNew": { "type": "string" }, - "appIconName": { + "locale": { "type": "string" } }, "required": [ - "name" + "locale" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersionExperiment": { + "build": { "type": "object", "properties": { "data": { @@ -80158,7 +101054,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "builds" ] }, "id": { @@ -80174,33 +101070,10 @@ "required": [ "data" ] - }, - "appStoreVersionExperimentV2": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperiments" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } } }, "required": [ - "appStoreVersionExperiment" + "build" ] } }, @@ -80215,9 +101088,9 @@ "data" ] }, - "AppStoreVersionExperimentTreatmentUpdateRequest": { + "BetaBuildLocalizationUpdateRequest": { "type": "object", - "title": "AppStoreVersionExperimentTreatmentUpdateRequest", + "title": "BetaBuildLocalizationUpdateRequest", "properties": { "data": { "type": "object", @@ -80225,7 +101098,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "betaBuildLocalizations" ] }, "id": { @@ -80234,10 +101107,7 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "appIconName": { + "whatsNew": { "type": "string" } } @@ -80253,14 +101123,14 @@ "data" ] }, - "AppStoreVersionExperimentV2": { + "BetaGroup": { "type": "object", - "title": "AppStoreVersionExperimentV2", + "title": "BetaGroup", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "betaGroups" ] }, "id": { @@ -80272,36 +101142,36 @@ "name": { "type": "string" }, - "platform": { - "$ref": "#/components/schemas/Platform" + "createdDate": { + "type": "string", + "format": "date-time" }, - "trafficProportion": { - "type": "integer" + "isInternalGroup": { + "type": "boolean" }, - "state": { - "type": "string", - "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REJECTED", - "COMPLETED", - "STOPPED" - ] + "hasAccessToAllBuilds": { + "type": "boolean" }, - "reviewRequired": { + "publicLinkEnabled": { "type": "boolean" }, - "startDate": { - "type": "string", - "format": "date-time" + "publicLinkId": { + "type": "string" }, - "endDate": { - "type": "string", - "format": "date-time" + "publicLinkLimitEnabled": { + "type": "boolean" + }, + "publicLinkLimit": { + "type": "integer" + }, + "publicLink": { + "type": "string" + }, + "feedbackEnabled": { + "type": "boolean" + }, + "iosBuildsAvailableForAppleSiliconMac": { + "type": "boolean" } } }, @@ -80344,43 +101214,7 @@ } } }, - "latestControlVersion": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "controlVersions": { + "builds": { "type": "object", "properties": { "links": { @@ -80407,7 +101241,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "builds" ] }, "id": { @@ -80422,7 +101256,7 @@ } } }, - "appStoreVersionExperimentTreatments": { + "betaTesters": { "type": "object", "properties": { "links": { @@ -80449,7 +101283,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperimentTreatments" + "betaTesters" ] }, "id": { @@ -80471,19 +101305,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreVersionExperimentsV2Response": { + "BetaGroupsResponse": { "type": "object", - "title": "AppStoreVersionExperimentsV2Response", + "title": "BetaGroupsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + "$ref": "#/components/schemas/BetaGroup" } }, "included": { @@ -80494,13 +101327,10 @@ "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/Build" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + "$ref": "#/components/schemas/BetaTester" } ] } @@ -80517,12 +101347,12 @@ "links" ] }, - "AppStoreVersionExperimentV2Response": { + "BetaGroupResponse": { "type": "object", - "title": "AppStoreVersionExperimentV2Response", + "title": "BetaGroupResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + "$ref": "#/components/schemas/BetaGroup" }, "included": { "type": "array", @@ -80532,13 +101362,10 @@ "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/Build" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" + "$ref": "#/components/schemas/BetaTester" } ] } @@ -80552,9 +101379,9 @@ "links" ] }, - "AppStoreVersionExperimentV2CreateRequest": { + "BetaGroupCreateRequest": { "type": "object", - "title": "AppStoreVersionExperimentV2CreateRequest", + "title": "BetaGroupCreateRequest", "properties": { "data": { "type": "object", @@ -80562,7 +101389,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "betaGroups" ] }, "attributes": { @@ -80571,17 +101398,27 @@ "name": { "type": "string" }, - "platform": { - "$ref": "#/components/schemas/Platform" + "isInternalGroup": { + "type": "boolean" }, - "trafficProportion": { + "hasAccessToAllBuilds": { + "type": "boolean" + }, + "publicLinkEnabled": { + "type": "boolean" + }, + "publicLinkLimitEnabled": { + "type": "boolean" + }, + "publicLinkLimit": { "type": "integer" + }, + "feedbackEnabled": { + "type": "boolean" } }, "required": [ - "trafficProportion", - "name", - "platform" + "name" ] }, "relationships": { @@ -80612,6 +101449,58 @@ "required": [ "data" ] + }, + "builds": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "betaTesters": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } }, "required": [ @@ -80630,9 +101519,9 @@ "data" ] }, - "AppStoreVersionExperimentV2UpdateRequest": { + "BetaGroupUpdateRequest": { "type": "object", - "title": "AppStoreVersionExperimentV2UpdateRequest", + "title": "BetaGroupUpdateRequest", "properties": { "data": { "type": "object", @@ -80640,7 +101529,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "betaGroups" ] }, "id": { @@ -80652,10 +101541,19 @@ "name": { "type": "string" }, - "trafficProportion": { + "publicLinkEnabled": { + "type": "boolean" + }, + "publicLinkLimitEnabled": { + "type": "boolean" + }, + "publicLinkLimit": { "type": "integer" }, - "started": { + "feedbackEnabled": { + "type": "boolean" + }, + "iosBuildsAvailableForAppleSiliconMac": { "type": "boolean" } } @@ -80671,14 +101569,14 @@ "data" ] }, - "AppStoreVersionExperiment": { + "BetaLicenseAgreement": { "type": "object", - "title": "AppStoreVersionExperiment", + "title": "BetaLicenseAgreement", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "betaLicenseAgreements" ] }, "id": { @@ -80687,43 +101585,15 @@ "attributes": { "type": "object", "properties": { - "name": { + "agreementText": { "type": "string" - }, - "trafficProportion": { - "type": "integer" - }, - "state": { - "type": "string", - "enum": [ - "PREPARE_FOR_SUBMISSION", - "READY_FOR_REVIEW", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "ACCEPTED", - "APPROVED", - "REJECTED", - "COMPLETED", - "STOPPED" - ] - }, - "reviewRequired": { - "type": "boolean" - }, - "startDate": { - "type": "string", - "format": "date-time" - }, - "endDate": { - "type": "string", - "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "appStoreVersion": { + "app": { "type": "object", "properties": { "links": { @@ -80745,7 +101615,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "apps" ] }, "id": { @@ -80758,48 +101628,6 @@ ] } } - }, - "appStoreVersionExperimentTreatments": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperimentTreatments" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -80808,33 +101636,24 @@ } }, "required": [ - "links", "id", "type" - ], - "deprecated": true + ] }, - "AppStoreVersionExperimentsResponse": { + "BetaLicenseAgreementsResponse": { "type": "object", - "title": "AppStoreVersionExperimentsResponse", + "title": "BetaLicenseAgreementsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersionExperiment" + "$ref": "#/components/schemas/BetaLicenseAgreement" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" - } - ] + "$ref": "#/components/schemas/App" } }, "links": { @@ -80847,27 +101666,19 @@ "required": [ "data", "links" - ], - "deprecated": true + ] }, - "AppStoreVersionExperimentResponse": { + "BetaLicenseAgreementResponse": { "type": "object", - "title": "AppStoreVersionExperimentResponse", + "title": "BetaLicenseAgreementResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionExperiment" + "$ref": "#/components/schemas/BetaLicenseAgreement" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/AppStoreVersionExperimentTreatment" - } - ] + "$ref": "#/components/schemas/App" } }, "links": { @@ -80877,12 +101688,11 @@ "required": [ "data", "links" - ], - "deprecated": true + ] }, - "AppStoreVersionExperimentCreateRequest": { + "BetaLicenseAgreementUpdateRequest": { "type": "object", - "title": "AppStoreVersionExperimentCreateRequest", + "title": "BetaLicenseAgreementUpdateRequest", "properties": { "data": { "type": "object", @@ -80890,28 +101700,83 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "betaLicenseAgreements" ] }, + "id": { + "type": "string" + }, "attributes": { "type": "object", "properties": { - "name": { + "agreementText": { "type": "string" - }, - "trafficProportion": { - "type": "integer" } - }, - "required": [ - "trafficProportion", - "name" + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BetaTesterInvitation": { + "type": "object", + "title": "BetaTesterInvitation", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesterInvitations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "BetaTesterInvitationResponse": { + "type": "object", + "title": "BetaTesterInvitationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BetaTesterInvitation" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaTesterInvitationCreateRequest": { + "type": "object", + "title": "BetaTesterInvitationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesterInvitations" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersion": { + "betaTester": { "type": "object", "properties": { "data": { @@ -80920,7 +101785,33 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" ] }, "id": { @@ -80939,109 +101830,56 @@ } }, "required": [ - "appStoreVersion" + "app", + "betaTester" ] } }, "required": [ "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ], - "deprecated": true - }, - "AppStoreVersionExperimentUpdateRequest": { - "type": "object", - "title": "AppStoreVersionExperimentUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperiments" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "trafficProportion": { - "type": "integer" - }, - "started": { - "type": "boolean" - } - } - } - }, - "required": [ - "id", "type" ] } }, "required": [ "data" - ], - "deprecated": true + ] }, - "AppStoreVersionLocalization": { + "BetaTester": { "type": "object", - "title": "AppStoreVersionLocalization", + "title": "BetaTester", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionLocalizations" + "betaTesters" ] }, "id": { "type": "string" }, "attributes": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "keywords": { + "type": "object", + "properties": { + "firstName": { "type": "string" }, - "marketingUrl": { - "type": "string", - "format": "uri" - }, - "promotionalText": { + "lastName": { "type": "string" }, - "supportUrl": { + "email": { "type": "string", - "format": "uri" + "format": "email" }, - "whatsNew": { - "type": "string" + "inviteType": { + "$ref": "#/components/schemas/BetaInviteType" } } }, "relationships": { "type": "object", "properties": { - "appStoreVersion": { + "apps": { "type": "object", "properties": { "links": { @@ -81057,27 +101895,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "appScreenshotSets": { + "betaGroups": { "type": "object", "properties": { "links": { @@ -81104,7 +101948,7 @@ "type": { "type": "string", "enum": [ - "appScreenshotSets" + "betaGroups" ] }, "id": { @@ -81119,7 +101963,7 @@ } } }, - "appPreviewSets": { + "builds": { "type": "object", "properties": { "links": { @@ -81146,7 +101990,7 @@ "type": { "type": "string", "enum": [ - "appPreviewSets" + "builds" ] }, "id": { @@ -81168,19 +102012,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreVersionLocalizationsResponse": { + "BetaTestersResponse": { "type": "object", - "title": "AppStoreVersionLocalizationsResponse", + "title": "BetaTestersResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersionLocalization" + "$ref": "#/components/schemas/BetaTester" } }, "included": { @@ -81188,13 +102031,13 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppScreenshotSet" + "$ref": "#/components/schemas/BetaGroup" }, { - "$ref": "#/components/schemas/AppPreviewSet" + "$ref": "#/components/schemas/Build" } ] } @@ -81211,25 +102054,25 @@ "links" ] }, - "AppStoreVersionLocalizationResponse": { + "BetaTesterResponse": { "type": "object", - "title": "AppStoreVersionLocalizationResponse", + "title": "BetaTesterResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionLocalization" + "$ref": "#/components/schemas/BetaTester" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppScreenshotSet" + "$ref": "#/components/schemas/BetaGroup" }, { - "$ref": "#/components/schemas/AppPreviewSet" + "$ref": "#/components/schemas/Build" } ] } @@ -81243,9 +102086,9 @@ "links" ] }, - "AppStoreVersionLocalizationCreateRequest": { + "BetaTesterCreateRequest": { "type": "object", - "title": "AppStoreVersionLocalizationCreateRequest", + "title": "BetaTesterCreateRequest", "properties": { "data": { "type": "object", @@ -81253,130 +102096,87 @@ "type": { "type": "string", "enum": [ - "appStoreVersionLocalizations" + "betaTesters" ] }, "attributes": { "type": "object", "properties": { - "description": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "keywords": { + "firstName": { "type": "string" }, - "marketingUrl": { - "type": "string", - "format": "uri" - }, - "promotionalText": { + "lastName": { "type": "string" }, - "supportUrl": { + "email": { "type": "string", - "format": "uri" - }, - "whatsNew": { - "type": "string" + "format": "email" } }, "required": [ - "locale" + "email" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersion": { + "betaGroups": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "appStoreVersion" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppStoreVersionLocalizationUpdateRequest": { - "type": "object", - "title": "AppStoreVersionLocalizationUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "description": { - "type": "string" - }, - "keywords": { - "type": "string" - }, - "marketingUrl": { - "type": "string", - "format": "uri" - }, - "promotionalText": { - "type": "string" - }, - "supportUrl": { - "type": "string", - "format": "uri" + } }, - "whatsNew": { - "type": "string" + "builds": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } } } }, "required": [ - "id", + "attributes", "type" ] } @@ -81385,14 +102185,14 @@ "data" ] }, - "AppStoreVersionPhasedRelease": { + "BuildBetaDetail": { "type": "object", - "title": "AppStoreVersionPhasedRelease", + "title": "BuildBetaDetail", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionPhasedReleases" + "buildBetaDetails" ] }, "id": { @@ -81401,177 +102201,107 @@ "attributes": { "type": "object", "properties": { - "phasedReleaseState": { - "$ref": "#/components/schemas/PhasedReleaseState" - }, - "startDate": { - "type": "string", - "format": "date-time" + "autoNotifyEnabled": { + "type": "boolean" }, - "totalPauseDuration": { - "type": "integer" + "internalBuildState": { + "$ref": "#/components/schemas/InternalBetaState" }, - "currentDayNumber": { - "type": "integer" + "externalBuildState": { + "$ref": "#/components/schemas/ExternalBetaState" } } }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "AppStoreVersionPhasedReleaseResponse": { - "type": "object", - "title": "AppStoreVersionPhasedReleaseResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "AppStoreVersionPhasedReleaseCreateRequest": { - "type": "object", - "title": "AppStoreVersionPhasedReleaseCreateRequest", - "properties": { - "data": { + "relationships": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionPhasedReleases" - ] - }, - "attributes": { - "type": "object", - "properties": { - "phasedReleaseState": { - "$ref": "#/components/schemas/PhasedReleaseState" - } - } - }, - "relationships": { + "build": { "type": "object", "properties": { - "appStoreVersion": { + "links": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] } - }, - "required": [ - "appStoreVersion" - ] - } - }, - "required": [ - "relationships", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppStoreVersionPhasedReleaseUpdateRequest": { - "type": "object", - "title": "AppStoreVersionPhasedReleaseUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionPhasedReleases" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "phasedReleaseState": { - "$ref": "#/components/schemas/PhasedReleaseState" - } } } - }, - "required": [ - "id", - "type" - ] + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "data" + "id", + "type" ] }, - "AppStoreVersionPromotion": { + "BuildBetaDetailsResponse": { "type": "object", - "title": "AppStoreVersionPromotion", + "title": "BuildBetaDetailsResponse", "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionPromotions" - ] + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildBetaDetail" + } }, - "id": { - "type": "string" + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "AppStoreVersionPromotionResponse": { + "BuildBetaDetailResponse": { "type": "object", - "title": "AppStoreVersionPromotionResponse", + "title": "BuildBetaDetailResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionPromotion" + "$ref": "#/components/schemas/BuildBetaDetail" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -81582,9 +102312,9 @@ "links" ] }, - "AppStoreVersionPromotionCreateRequest": { + "BuildBetaDetailUpdateRequest": { "type": "object", - "title": "AppStoreVersionPromotionCreateRequest", + "title": "BuildBetaDetailUpdateRequest", "properties": { "data": { "type": "object", @@ -81592,73 +102322,23 @@ "type": { "type": "string", "enum": [ - "appStoreVersionPromotions" + "buildBetaDetails" ] }, - "relationships": { + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "appStoreVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "appStoreVersionExperimentTreatment": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperimentTreatments" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] + "autoNotifyEnabled": { + "type": "boolean" } - }, - "required": [ - "appStoreVersionExperimentTreatment", - "appStoreVersion" - ] + } } }, "required": [ - "relationships", + "id", "type" ] } @@ -81667,35 +102347,31 @@ "data" ] }, - "AppStoreVersionReleaseRequest": { + "BuildBetaNotification": { "type": "object", - "title": "AppStoreVersionReleaseRequest", + "title": "BuildBetaNotification", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionReleaseRequests" + "buildBetaNotifications" ] }, "id": { "type": "string" - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "AppStoreVersionReleaseRequestResponse": { + "BuildBetaNotificationResponse": { "type": "object", - "title": "AppStoreVersionReleaseRequestResponse", + "title": "BuildBetaNotificationResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersionReleaseRequest" + "$ref": "#/components/schemas/BuildBetaNotification" }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -81706,9 +102382,9 @@ "links" ] }, - "AppStoreVersionReleaseRequestCreateRequest": { + "BuildBetaNotificationCreateRequest": { "type": "object", - "title": "AppStoreVersionReleaseRequestCreateRequest", + "title": "BuildBetaNotificationCreateRequest", "properties": { "data": { "type": "object", @@ -81716,13 +102392,13 @@ "type": { "type": "string", "enum": [ - "appStoreVersionReleaseRequests" + "buildBetaNotifications" ] }, "relationships": { "type": "object", "properties": { - "appStoreVersion": { + "build": { "type": "object", "properties": { "data": { @@ -81731,7 +102407,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "builds" ] }, "id": { @@ -81750,7 +102426,7 @@ } }, "required": [ - "appStoreVersion" + "build" ] } }, @@ -81764,23 +102440,160 @@ "data" ] }, - "AppStoreVersionSubmission": { + "BuildBundleFileSize": { "type": "object", - "title": "AppStoreVersionSubmission", + "title": "BuildBundleFileSize", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersionSubmissions" + "buildBundleFileSizes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "deviceModel": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "downloadBytes": { + "type": "integer" + }, + "installBytes": { + "type": "integer" + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "BuildBundleFileSizesResponse": { + "type": "object", + "title": "BuildBundleFileSizesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildBundleFileSize" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBundle": { + "type": "object", + "title": "BuildBundle", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBundles" ] }, "id": { "type": "string" }, + "attributes": { + "type": "object", + "properties": { + "bundleId": { + "type": "string" + }, + "bundleType": { + "type": "string", + "enum": [ + "APP", + "APP_CLIP" + ] + }, + "sdkBuild": { + "type": "string" + }, + "platformBuild": { + "type": "string" + }, + "fileName": { + "type": "string" + }, + "hasSirikit": { + "type": "boolean" + }, + "hasOnDemandResources": { + "type": "boolean" + }, + "hasPrerenderedIcon": { + "type": "boolean" + }, + "usesLocationServices": { + "type": "boolean" + }, + "isIosBuildMacAppStoreCompatible": { + "type": "boolean" + }, + "includesSymbols": { + "type": "boolean" + }, + "dSYMUrl": { + "type": "string", + "format": "uri" + }, + "supportedArchitectures": { + "type": "array", + "items": { + "type": "string" + } + }, + "requiredCapabilities": { + "type": "array", + "items": { + "type": "string" + } + }, + "deviceProtocols": { + "type": "array", + "items": { + "type": "string" + } + }, + "locales": { + "type": "array", + "items": { + "type": "string" + } + }, + "entitlements": { + "type": "object", + "additionalProperties": { + "type": "object", + "additionalProperties": { + "type": "string" + } + } + } + } + }, "relationships": { "type": "object", "properties": { - "appStoreVersion": { + "appClipDomainCacheStatus": { "type": "object", "properties": { "links": { @@ -81802,7 +102615,43 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "appClipDomainStatuses" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "appClipDomainDebugStatus": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDomainStatuses" ] }, "id": { @@ -81815,110 +102664,162 @@ ] } } + }, + "betaAppClipInvocations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaAppClipInvocations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "buildBundleFileSizes": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "buildBundleFileSizes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" - ], - "deprecated": true + ] }, - "AppStoreVersionSubmissionResponse": { + "BuildIcon": { "type": "object", - "title": "AppStoreVersionSubmissionResponse", + "title": "BuildIcon", "properties": { - "data": { - "$ref": "#/components/schemas/AppStoreVersionSubmission" + "type": { + "type": "string", + "enum": [ + "buildIcons" + ] }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppStoreVersion" - } + "id": { + "type": "string" }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "iconAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "iconType": { + "$ref": "#/components/schemas/IconAssetType" + } + } } }, "required": [ - "data", - "links" - ], - "deprecated": true + "id", + "type" + ] }, - "AppStoreVersionSubmissionCreateRequest": { + "BuildIconsResponse": { "type": "object", - "title": "AppStoreVersionSubmissionCreateRequest", + "title": "BuildIconsResponse", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionSubmissions" - ] - }, - "relationships": { - "type": "object", - "properties": { - "appStoreVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "appStoreVersion" - ] - } - }, - "required": [ - "relationships", - "type" - ] + "type": "array", + "items": { + "$ref": "#/components/schemas/BuildIcon" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "data" - ], - "deprecated": true + "data", + "links" + ] }, - "AppStoreVersion": { + "Build": { "type": "object", - "title": "AppStoreVersion", + "title": "Build", "properties": { "type": { "type": "string", "enum": [ - "appStoreVersions" + "builds" ] }, "id": { @@ -81927,43 +102828,53 @@ "attributes": { "type": "object", "properties": { - "platform": { - "$ref": "#/components/schemas/Platform" + "version": { + "type": "string" }, - "versionString": { + "uploadedDate": { + "type": "string", + "format": "date-time" + }, + "expirationDate": { + "type": "string", + "format": "date-time" + }, + "expired": { + "type": "boolean" + }, + "minOsVersion": { "type": "string" }, - "appStoreState": { - "$ref": "#/components/schemas/AppStoreVersionState" + "lsMinimumSystemVersion": { + "type": "string" }, - "copyright": { + "computedMinMacOsVersion": { "type": "string" }, - "releaseType": { + "iconAssetToken": { + "$ref": "#/components/schemas/ImageAsset" + }, + "processingState": { "type": "string", "enum": [ - "MANUAL", - "AFTER_APPROVAL", - "SCHEDULED" + "PROCESSING", + "FAILED", + "INVALID", + "VALID" ] }, - "earliestReleaseDate": { - "type": "string", - "format": "date-time" + "buildAudienceType": { + "$ref": "#/components/schemas/BuildAudienceType" }, - "downloadable": { + "usesNonExemptEncryption": { "type": "boolean" - }, - "createdDate": { - "type": "string", - "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "app": { + "preReleaseVersion": { "type": "object", "properties": { "links": { @@ -81985,7 +102896,7 @@ "type": { "type": "string", "enum": [ - "apps" + "preReleaseVersions" ] }, "id": { @@ -81999,7 +102910,7 @@ } } }, - "ageRatingDeclaration": { + "individualTesters": { "type": "object", "properties": { "links": { @@ -82015,28 +102926,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ageRatingDeclarations" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } - }, - "deprecated": true + } }, - "appStoreVersionLocalizations": { + "betaGroups": { "type": "object", "properties": { "links": { @@ -82063,7 +102979,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionLocalizations" + "betaGroups" ] }, "id": { @@ -82078,7 +102994,7 @@ } } }, - "build": { + "betaBuildLocalizations": { "type": "object", "properties": { "links": { @@ -82094,27 +103010,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaBuildLocalizations" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "appStoreVersionPhasedRelease": { + "appEncryptionDeclaration": { "type": "object", "properties": { "links": { @@ -82136,7 +103058,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionPhasedReleases" + "appEncryptionDeclarations" ] }, "id": { @@ -82150,7 +103072,7 @@ } } }, - "routingAppCoverage": { + "betaAppReviewSubmission": { "type": "object", "properties": { "links": { @@ -82172,7 +103094,7 @@ "type": { "type": "string", "enum": [ - "routingAppCoverages" + "betaAppReviewSubmissions" ] }, "id": { @@ -82186,7 +103108,7 @@ } } }, - "appStoreReviewDetail": { + "app": { "type": "object", "properties": { "links": { @@ -82208,7 +103130,7 @@ "type": { "type": "string", "enum": [ - "appStoreReviewDetails" + "apps" ] }, "id": { @@ -82222,7 +103144,7 @@ } } }, - "appStoreVersionSubmission": { + "buildBetaDetail": { "type": "object", "properties": { "links": { @@ -82244,7 +103166,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionSubmissions" + "buildBetaDetails" ] }, "id": { @@ -82258,7 +103180,7 @@ } } }, - "appClipDefaultExperience": { + "appStoreVersion": { "type": "object", "properties": { "links": { @@ -82280,7 +103202,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appStoreVersions" ] }, "id": { @@ -82294,7 +103216,7 @@ } } }, - "appStoreVersionExperiments": { + "icons": { "type": "object", "properties": { "links": { @@ -82321,7 +103243,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "buildIcons" ] }, "id": { @@ -82336,7 +103258,7 @@ } } }, - "appStoreVersionExperimentsV2": { + "buildBundles": { "type": "object", "properties": { "links": { @@ -82363,7 +103285,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersionExperiments" + "buildBundles" ] }, "id": { @@ -82385,19 +103307,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppStoreVersionsResponse": { + "BuildsResponse": { "type": "object", - "title": "AppStoreVersionsResponse", + "title": "BuildsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/Build" } }, "included": { @@ -82405,37 +103326,37 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/PrereleaseVersion" }, { - "$ref": "#/components/schemas/AgeRatingDeclaration" + "$ref": "#/components/schemas/BetaTester" }, { - "$ref": "#/components/schemas/AppStoreVersionLocalization" + "$ref": "#/components/schemas/BetaGroup" }, { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/BetaBuildLocalization" }, { - "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + "$ref": "#/components/schemas/AppEncryptionDeclaration" }, { - "$ref": "#/components/schemas/RoutingAppCoverage" + "$ref": "#/components/schemas/BetaAppReviewSubmission" }, { - "$ref": "#/components/schemas/AppStoreReviewDetail" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppStoreVersionSubmission" + "$ref": "#/components/schemas/BuildBetaDetail" }, { - "$ref": "#/components/schemas/AppClipDefaultExperience" + "$ref": "#/components/schemas/AppStoreVersion" }, { - "$ref": "#/components/schemas/AppStoreVersionExperiment" + "$ref": "#/components/schemas/BuildIcon" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + "$ref": "#/components/schemas/BuildBundle" } ] } @@ -82452,49 +103373,49 @@ "links" ] }, - "AppStoreVersionResponse": { + "BuildResponse": { "type": "object", - "title": "AppStoreVersionResponse", + "title": "BuildResponse", "properties": { "data": { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/Build" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/PrereleaseVersion" }, { - "$ref": "#/components/schemas/AgeRatingDeclaration" + "$ref": "#/components/schemas/BetaTester" }, { - "$ref": "#/components/schemas/AppStoreVersionLocalization" + "$ref": "#/components/schemas/BetaGroup" }, { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/BetaBuildLocalization" }, { - "$ref": "#/components/schemas/AppStoreVersionPhasedRelease" + "$ref": "#/components/schemas/AppEncryptionDeclaration" }, { - "$ref": "#/components/schemas/RoutingAppCoverage" + "$ref": "#/components/schemas/BetaAppReviewSubmission" }, { - "$ref": "#/components/schemas/AppStoreReviewDetail" + "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/AppStoreVersionSubmission" + "$ref": "#/components/schemas/BuildBetaDetail" }, { - "$ref": "#/components/schemas/AppClipDefaultExperience" + "$ref": "#/components/schemas/AppStoreVersion" }, { - "$ref": "#/components/schemas/AppStoreVersionExperiment" + "$ref": "#/components/schemas/BuildIcon" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + "$ref": "#/components/schemas/BuildBundle" } ] } @@ -82508,147 +103429,9 @@ "links" ] }, - "AppStoreVersionCreateRequest": { - "type": "object", - "title": "AppStoreVersionCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "attributes": { - "type": "object", - "properties": { - "platform": { - "$ref": "#/components/schemas/Platform" - }, - "versionString": { - "type": "string" - }, - "copyright": { - "type": "string" - }, - "releaseType": { - "type": "string", - "enum": [ - "MANUAL", - "AFTER_APPROVAL", - "SCHEDULED" - ] - }, - "earliestReleaseDate": { - "type": "string", - "format": "date-time" - } - }, - "required": [ - "versionString", - "platform" - ] - }, - "relationships": { - "type": "object", - "properties": { - "app": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "appStoreVersionLocalizations": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "build": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "required": [ - "app" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "AppStoreVersionUpdateRequest": { + "BuildUpdateRequest": { "type": "object", - "title": "AppStoreVersionUpdateRequest", + "title": "BuildUpdateRequest", "properties": { "data": { "type": "object", @@ -82656,7 +103439,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "builds" ] }, "id": { @@ -82665,25 +103448,10 @@ "attributes": { "type": "object", "properties": { - "versionString": { - "type": "string" - }, - "copyright": { - "type": "string" - }, - "releaseType": { - "type": "string", - "enum": [ - "MANUAL", - "AFTER_APPROVAL", - "SCHEDULED" - ] - }, - "earliestReleaseDate": { - "type": "string", - "format": "date-time" + "expired": { + "type": "boolean" }, - "downloadable": { + "usesNonExemptEncryption": { "type": "boolean" } } @@ -82691,30 +103459,7 @@ "relationships": { "type": "object", "properties": { - "build": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "appClipDefaultExperience": { + "appEncryptionDeclaration": { "type": "object", "properties": { "data": { @@ -82723,7 +103468,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appEncryptionDeclarations" ] }, "id": { @@ -82750,14 +103495,14 @@ "data" ] }, - "App": { + "BundleIdCapability": { "type": "object", - "title": "App", + "title": "BundleIdCapability", "properties": { "type": { "type": "string", "enum": [ - "apps" + "bundleIdCapabilities" ] }, "id": { @@ -82766,214 +103511,215 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "bundleId": { - "type": "string" - }, - "sku": { - "type": "string" - }, - "primaryLocale": { - "type": "string" - }, - "isOrEverWasMadeForKids": { - "type": "boolean" - }, - "subscriptionStatusUrl": { - "type": "string", - "format": "uri" - }, - "subscriptionStatusUrlVersion": { - "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" - }, - "subscriptionStatusUrlForSandbox": { - "type": "string", - "format": "uri" - }, - "subscriptionStatusUrlVersionForSandbox": { - "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" - }, - "availableInNewTerritories": { - "type": "boolean", - "deprecated": true + "capabilityType": { + "$ref": "#/components/schemas/CapabilityType" }, - "contentRightsDeclaration": { - "type": "string", - "enum": [ - "DOES_NOT_USE_THIRD_PARTY_CONTENT", - "USES_THIRD_PARTY_CONTENT" - ] + "settings": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CapabilitySetting" + } } } }, - "relationships": { + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BundleIdCapabilitiesResponse": { + "type": "object", + "title": "BundleIdCapabilitiesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BundleIdCapability" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdCapabilityResponse": { + "type": "object", + "title": "BundleIdCapabilityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BundleIdCapability" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdCapabilityCreateRequest": { + "type": "object", + "title": "BundleIdCapabilityCreateRequest", + "properties": { + "data": { "type": "object", "properties": { - "ciProduct": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciProducts" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "betaGroups": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaGroups" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } + "type": { + "type": "string", + "enum": [ + "bundleIdCapabilities" + ] }, - "appStoreVersions": { + "attributes": { "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "properties": { + "capabilityType": { + "$ref": "#/components/schemas/CapabilityType" }, - "data": { + "settings": { "type": "array", "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "$ref": "#/components/schemas/CapabilitySetting" } } - } + }, + "required": [ + "capabilityType" + ] }, - "preReleaseVersions": { + "relationships": { "type": "object", "properties": { - "links": { + "bundleId": { "type": "object", "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + }, + "required": [ + "data" + ] + } + }, + "required": [ + "bundleId" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BundleIdCapabilityUpdateRequest": { + "type": "object", + "title": "BundleIdCapabilityUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIdCapabilities" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "capabilityType": { + "$ref": "#/components/schemas/CapabilityType" }, - "data": { + "settings": { "type": "array", "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "preReleaseVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "$ref": "#/components/schemas/CapabilitySetting" } } } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BundleId": { + "type": "object", + "title": "BundleId", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "betaAppLocalizations": { + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "identifier": { + "type": "string" + }, + "seedId": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "profiles": { "type": "object", "properties": { "links": { @@ -83000,7 +103746,7 @@ "type": { "type": "string", "enum": [ - "betaAppLocalizations" + "profiles" ] }, "id": { @@ -83015,7 +103761,7 @@ } } }, - "builds": { + "bundleIdCapabilities": { "type": "object", "properties": { "links": { @@ -83042,7 +103788,7 @@ "type": { "type": "string", "enum": [ - "builds" + "bundleIdCapabilities" ] }, "id": { @@ -83057,7 +103803,7 @@ } } }, - "betaLicenseAgreement": { + "app": { "type": "object", "properties": { "links": { @@ -83079,7 +103825,7 @@ "type": { "type": "string", "enum": [ - "betaLicenseAgreements" + "apps" ] }, "id": { @@ -83092,164 +103838,429 @@ ] } } - }, - "betaAppReviewDetail": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppReviewDetails" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "BundleIdsResponse": { + "type": "object", + "title": "BundleIdsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BundleId" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Profile" + }, + { + "$ref": "#/components/schemas/BundleIdCapability" + }, + { + "$ref": "#/components/schemas/App" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdResponse": { + "type": "object", + "title": "BundleIdResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BundleId" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Profile" + }, + { + "$ref": "#/components/schemas/BundleIdCapability" + }, + { + "$ref": "#/components/schemas/App" } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdCreateRequest": { + "type": "object", + "title": "BundleIdCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] }, - "appInfos": { + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "name": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appInfos" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "identifier": { + "type": "string" + }, + "seedId": { + "type": "string" } - } + }, + "required": [ + "identifier", + "name", + "platform" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BundleIdUpdateRequest": { + "type": "object", + "title": "BundleIdUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] }, - "appClips": { + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appClips" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "name": { + "type": "string" } } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "Certificate": { + "type": "object", + "title": "Certificate", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "certificateType": { + "$ref": "#/components/schemas/CertificateType" + }, + "displayName": { + "type": "string" + }, + "serialNumber": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "expirationDate": { + "type": "string", + "format": "date-time" + }, + "certificateContent": { + "type": "string" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CertificatesResponse": { + "type": "object", + "title": "CertificatesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Certificate" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificateResponse": { + "type": "object", + "title": "CertificateResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Certificate" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificateCreateRequest": { + "type": "object", + "title": "CertificateCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "certificates" + ] }, - "endUserLicenseAgreement": { + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "csrContent": { + "type": "string" }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "endUserLicenseAgreements" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "certificateType": { + "$ref": "#/components/schemas/CertificateType" } - } + }, + "required": [ + "csrContent", + "certificateType" + ] + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "CiArtifact": { + "type": "object", + "title": "CiArtifact", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciArtifacts" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileType": { + "type": "string", + "enum": [ + "ARCHIVE", + "ARCHIVE_EXPORT", + "LOG_BUNDLE", + "RESULT_BUNDLE", + "TEST_PRODUCTS", + "XCODEBUILD_PRODUCTS" + ] }, - "preOrder": { + "fileName": { + "type": "string" + }, + "fileSize": { + "type": "integer" + }, + "downloadUrl": { + "type": "string", + "format": "uri" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CiArtifactsResponse": { + "type": "object", + "title": "CiArtifactsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiArtifact" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiArtifactResponse": { + "type": "object", + "title": "CiArtifactResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiArtifact" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildAction": { + "type": "object", + "title": "CiBuildAction", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildActions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "actionType": { + "$ref": "#/components/schemas/CiActionType" + }, + "startedDate": { + "type": "string", + "format": "date-time" + }, + "finishedDate": { + "type": "string", + "format": "date-time" + }, + "issueCounts": { + "$ref": "#/components/schemas/CiIssueCounts" + }, + "executionProgress": { + "$ref": "#/components/schemas/CiExecutionProgress" + }, + "completionStatus": { + "$ref": "#/components/schemas/CiCompletionStatus" + }, + "isRequiredToPass": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "buildRun": { "type": "object", "properties": { "links": { @@ -83271,7 +104282,7 @@ "type": { "type": "string", "enum": [ - "appPreOrders" + "ciBuildRuns" ] }, "id": { @@ -83284,179 +104295,177 @@ ] } } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CiBuildActionsResponse": { + "type": "object", + "title": "CiBuildActionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiBuildAction" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiBuildRun" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildActionResponse": { + "type": "object", + "title": "CiBuildActionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiBuildAction" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiBuildRun" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiBuildRun": { + "type": "object", + "title": "CiBuildRun", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "number": { + "type": "integer" }, - "prices": { + "createdDate": { + "type": "string", + "format": "date-time" + }, + "startedDate": { + "type": "string", + "format": "date-time" + }, + "finishedDate": { + "type": "string", + "format": "date-time" + }, + "sourceCommit": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "commitSha": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "message": { + "type": "string" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "deprecated": true - }, - "availableTerritories": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "author": { + "$ref": "#/components/schemas/CiGitUser" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "committer": { + "$ref": "#/components/schemas/CiGitUser" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "webUrl": { + "type": "string", + "format": "uri" } - }, - "deprecated": true + } }, - "inAppPurchases": { + "destinationCommit": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "commitSha": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "message": { + "type": "string" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "inAppPurchases" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "deprecated": true - }, - "subscriptionGroups": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "author": { + "$ref": "#/components/schemas/CiGitUser" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "committer": { + "$ref": "#/components/schemas/CiGitUser" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionGroups" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "webUrl": { + "type": "string", + "format": "uri" } } }, - "gameCenterEnabledVersions": { + "isPullRequestBuild": { + "type": "boolean" + }, + "issueCounts": { + "$ref": "#/components/schemas/CiIssueCounts" + }, + "executionProgress": { + "$ref": "#/components/schemas/CiExecutionProgress" + }, + "completionStatus": { + "$ref": "#/components/schemas/CiCompletionStatus" + }, + "startReason": { + "type": "string", + "enum": [ + "GIT_REF_CHANGE", + "MANUAL", + "MANUAL_REBUILD", + "PULL_REQUEST_OPEN", + "PULL_REQUEST_UPDATE", + "SCHEDULE" + ] + }, + "cancelReason": { + "type": "string", + "enum": [ + "AUTOMATICALLY_BY_NEWER_BUILD", + "MANUALLY_BY_USER" + ] + } + } + }, + "relationships": { + "type": "object", + "properties": { + "builds": { "type": "object", "properties": { "links": { @@ -83483,7 +104492,7 @@ "type": { "type": "string", "enum": [ - "gameCenterEnabledVersions" + "builds" ] }, "id": { @@ -83498,7 +104507,7 @@ } } }, - "appCustomProductPages": { + "workflow": { "type": "object", "properties": { "links": { @@ -83514,75 +104523,27 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appCustomProductPages" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "inAppPurchasesV2": { - "type": "object", - "properties": { - "links": { "type": "object", "properties": { - "self": { + "type": { "type": "string", - "format": "uri-reference" + "enum": [ + "ciWorkflows" + ] }, - "related": { - "type": "string", - "format": "uri-reference" + "id": { + "type": "string" } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "inAppPurchases" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + }, + "required": [ + "id", + "type" + ] } } }, - "promotedPurchases": { + "product": { "type": "object", "properties": { "links": { @@ -83598,75 +104559,27 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "promotedPurchases" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "appEvents": { - "type": "object", - "properties": { - "links": { "type": "object", "properties": { - "self": { + "type": { "type": "string", - "format": "uri-reference" + "enum": [ + "ciProducts" + ] }, - "related": { - "type": "string", - "format": "uri-reference" + "id": { + "type": "string" } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEvents" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + }, + "required": [ + "id", + "type" + ] } } }, - "reviewSubmissions": { + "sourceBranchOrTag": { "type": "object", "properties": { "links": { @@ -83682,33 +104595,27 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "reviewSubmissions" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmGitReferences" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } }, - "subscriptionGracePeriod": { + "destinationBranch": { "type": "object", "properties": { "links": { @@ -83730,7 +104637,7 @@ "type": { "type": "string", "enum": [ - "subscriptionGracePeriods" + "scmGitReferences" ] }, "id": { @@ -83744,7 +104651,7 @@ } } }, - "appStoreVersionExperimentsV2": { + "pullRequest": { "type": "object", "properties": { "links": { @@ -83760,29 +104667,23 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersionExperiments" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmPullRequests" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } } @@ -83793,96 +104694,38 @@ } }, "required": [ - "links", "id", "type" ] }, - "AppsResponse": { + "CiBuildRunsResponse": { "type": "object", - "title": "AppsResponse", + "title": "CiBuildRunsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/CiBuildRun" } }, "included": { "type": "array", "items": { "oneOf": [ - { - "$ref": "#/components/schemas/CiProduct" - }, - { - "$ref": "#/components/schemas/BetaGroup" - }, - { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/PreReleaseVersion" - }, - { - "$ref": "#/components/schemas/BetaAppLocalization" - }, { "$ref": "#/components/schemas/Build" }, { - "$ref": "#/components/schemas/BetaLicenseAgreement" - }, - { - "$ref": "#/components/schemas/BetaAppReviewDetail" - }, - { - "$ref": "#/components/schemas/AppInfo" - }, - { - "$ref": "#/components/schemas/AppClip" - }, - { - "$ref": "#/components/schemas/EndUserLicenseAgreement" - }, - { - "$ref": "#/components/schemas/AppPreOrder" - }, - { - "$ref": "#/components/schemas/AppPrice" - }, - { - "$ref": "#/components/schemas/Territory" - }, - { - "$ref": "#/components/schemas/InAppPurchase" - }, - { - "$ref": "#/components/schemas/SubscriptionGroup" - }, - { - "$ref": "#/components/schemas/GameCenterEnabledVersion" - }, - { - "$ref": "#/components/schemas/AppCustomProductPage" - }, - { - "$ref": "#/components/schemas/InAppPurchaseV2" - }, - { - "$ref": "#/components/schemas/PromotedPurchase" - }, - { - "$ref": "#/components/schemas/AppEvent" + "$ref": "#/components/schemas/CiWorkflow" }, { - "$ref": "#/components/schemas/ReviewSubmission" + "$ref": "#/components/schemas/CiProduct" }, { - "$ref": "#/components/schemas/SubscriptionGracePeriod" + "$ref": "#/components/schemas/ScmGitReference" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + "$ref": "#/components/schemas/ScmPullRequest" } ] } @@ -83899,88 +104742,31 @@ "links" ] }, - "AppResponse": { + "CiBuildRunResponse": { "type": "object", - "title": "AppResponse", + "title": "CiBuildRunResponse", "properties": { "data": { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/CiBuildRun" }, "included": { "type": "array", "items": { "oneOf": [ - { - "$ref": "#/components/schemas/CiProduct" - }, - { - "$ref": "#/components/schemas/BetaGroup" - }, - { - "$ref": "#/components/schemas/AppStoreVersion" - }, - { - "$ref": "#/components/schemas/PreReleaseVersion" - }, - { - "$ref": "#/components/schemas/BetaAppLocalization" - }, { "$ref": "#/components/schemas/Build" }, { - "$ref": "#/components/schemas/BetaLicenseAgreement" - }, - { - "$ref": "#/components/schemas/BetaAppReviewDetail" - }, - { - "$ref": "#/components/schemas/AppInfo" - }, - { - "$ref": "#/components/schemas/AppClip" - }, - { - "$ref": "#/components/schemas/EndUserLicenseAgreement" - }, - { - "$ref": "#/components/schemas/AppPreOrder" - }, - { - "$ref": "#/components/schemas/AppPrice" - }, - { - "$ref": "#/components/schemas/Territory" - }, - { - "$ref": "#/components/schemas/InAppPurchase" - }, - { - "$ref": "#/components/schemas/SubscriptionGroup" - }, - { - "$ref": "#/components/schemas/GameCenterEnabledVersion" - }, - { - "$ref": "#/components/schemas/AppCustomProductPage" - }, - { - "$ref": "#/components/schemas/InAppPurchaseV2" - }, - { - "$ref": "#/components/schemas/PromotedPurchase" - }, - { - "$ref": "#/components/schemas/AppEvent" + "$ref": "#/components/schemas/CiWorkflow" }, { - "$ref": "#/components/schemas/ReviewSubmission" + "$ref": "#/components/schemas/CiProduct" }, { - "$ref": "#/components/schemas/SubscriptionGracePeriod" + "$ref": "#/components/schemas/ScmGitReference" }, { - "$ref": "#/components/schemas/AppStoreVersionExperimentV2" + "$ref": "#/components/schemas/ScmPullRequest" } ] } @@ -83994,9 +104780,9 @@ "links" ] }, - "AppUpdateRequest": { + "CiBuildRunCreateRequest": { "type": "object", - "title": "AppUpdateRequest", + "title": "CiBuildRunCreateRequest", "properties": { "data": { "type": "object", @@ -84004,132 +104790,132 @@ "type": { "type": "string", "enum": [ - "apps" + "ciBuildRuns" ] }, - "id": { - "type": "string" - }, "attributes": { "type": "object", "properties": { - "bundleId": { - "type": "string" - }, - "primaryLocale": { - "type": "string" - }, - "subscriptionStatusUrl": { - "type": "string", - "format": "uri" - }, - "subscriptionStatusUrlVersion": { - "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" - }, - "subscriptionStatusUrlForSandbox": { - "type": "string", - "format": "uri" - }, - "subscriptionStatusUrlVersionForSandbox": { - "$ref": "#/components/schemas/SubscriptionStatusUrlVersion" - }, - "availableInNewTerritories": { - "type": "boolean", - "deprecated": true - }, - "contentRightsDeclaration": { - "type": "string", - "enum": [ - "DOES_NOT_USE_THIRD_PARTY_CONTENT", - "USES_THIRD_PARTY_CONTENT" - ] + "clean": { + "type": "boolean" } } }, "relationships": { "type": "object", "properties": { - "prices": { + "buildRun": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appPrices" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciBuildRuns" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "deprecated": true + } }, - "availableTerritories": { + "workflow": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciWorkflows" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "sourceBranchOrTag": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmGitReferences" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "pullRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmPullRequests" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "deprecated": true + } } } } }, "required": [ - "id", "type" ] - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AppPriceInlineCreate" - } } }, "required": [ "data" ] }, - "BetaAppClipInvocationLocalization": { + "CiIssue": { "type": "object", - "title": "BetaAppClipInvocationLocalization", + "title": "CiIssue", "properties": { "type": { "type": "string", "enum": [ - "betaAppClipInvocationLocalizations" + "ciIssues" ] }, "id": { @@ -84138,10 +104924,22 @@ "attributes": { "type": "object", "properties": { - "title": { + "issueType": { + "type": "string", + "enum": [ + "ANALYZER_WARNING", + "ERROR", + "TEST_FAILURE", + "WARNING" + ] + }, + "message": { "type": "string" }, - "locale": { + "fileSource": { + "$ref": "#/components/schemas/FileLocation" + }, + "category": { "type": "string" } } @@ -84151,18 +104949,56 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaAppClipInvocationLocalizationInlineCreate": { + "CiIssuesResponse": { + "type": "object", + "title": "CiIssuesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiIssue" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiIssueResponse": { + "type": "object", + "title": "CiIssueResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/CiIssue" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CiMacOsVersion": { "type": "object", + "title": "CiMacOsVersion", "properties": { "type": { "type": "string", "enum": [ - "betaAppClipInvocationLocalizations" + "ciMacOsVersions" ] }, "id": { @@ -84171,61 +105007,91 @@ "attributes": { "type": "object", "properties": { - "title": { + "version": { "type": "string" }, - "locale": { + "name": { "type": "string" } - }, - "required": [ - "locale", - "title" - ] + } }, "relationships": { "type": "object", "properties": { - "betaAppClipInvocation": { + "xcodeVersions": { "type": "object", "properties": { - "data": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "betaAppClipInvocations" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } } } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "attributes", + "id", "type" ] }, - "BetaAppClipInvocationLocalizationResponse": { + "CiMacOsVersionsResponse": { "type": "object", - "title": "BetaAppClipInvocationLocalizationResponse", + "title": "CiMacOsVersionsResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" + "type": "array", + "items": { + "$ref": "#/components/schemas/CiMacOsVersion" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiXcodeVersion" + } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -84233,123 +105099,36 @@ "links" ] }, - "BetaAppClipInvocationLocalizationCreateRequest": { - "type": "object", - "title": "BetaAppClipInvocationLocalizationCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocationLocalizations" - ] - }, - "attributes": { - "type": "object", - "properties": { - "title": { - "type": "string" - }, - "locale": { - "type": "string" - } - }, - "required": [ - "locale", - "title" - ] - }, - "relationships": { - "type": "object", - "properties": { - "betaAppClipInvocation": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "betaAppClipInvocation" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BetaAppClipInvocationLocalizationUpdateRequest": { + "CiMacOsVersionResponse": { "type": "object", - "title": "BetaAppClipInvocationLocalizationUpdateRequest", + "title": "CiMacOsVersionResponse", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocationLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "title": { - "type": "string" - } - } - } - }, - "required": [ - "id", - "type" - ] + "$ref": "#/components/schemas/CiMacOsVersion" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiXcodeVersion" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ - "data" + "data", + "links" ] }, - "BetaAppClipInvocation": { + "CiProduct": { "type": "object", - "title": "BetaAppClipInvocation", + "title": "CiProduct", "properties": { "type": { "type": "string", "enum": [ - "betaAppClipInvocations" + "ciProducts" ] }, "id": { @@ -84358,16 +105137,98 @@ "attributes": { "type": "object", "properties": { - "url": { + "name": { + "type": "string" + }, + "createdDate": { "type": "string", - "format": "uri" + "format": "date-time" + }, + "productType": { + "type": "string", + "enum": [ + "APP", + "FRAMEWORK" + ] } } }, "relationships": { "type": "object", "properties": { - "betaAppClipInvocationLocalizations": { + "app": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "bundleId": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "bundleIds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "primaryRepositories": { "type": "object", "properties": { "links": { @@ -84394,7 +105255,7 @@ "type": { "type": "string", "enum": [ - "betaAppClipInvocationLocalizations" + "scmRepositories" ] }, "id": { @@ -84416,25 +105277,34 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaAppClipInvocationsResponse": { + "CiProductsResponse": { "type": "object", - "title": "BetaAppClipInvocationsResponse", + "title": "CiProductsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaAppClipInvocation" + "$ref": "#/components/schemas/CiProduct" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BundleId" + }, + { + "$ref": "#/components/schemas/ScmRepository" + } + ] } }, "links": { @@ -84449,17 +105319,27 @@ "links" ] }, - "BetaAppClipInvocationResponse": { + "CiProductResponse": { "type": "object", - "title": "BetaAppClipInvocationResponse", + "title": "CiProductResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaAppClipInvocation" + "$ref": "#/components/schemas/CiProduct" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaAppClipInvocationLocalization" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/BundleId" + }, + { + "$ref": "#/components/schemas/ScmRepository" + } + ] } }, "links": { @@ -84471,157 +105351,117 @@ "links" ] }, - "BetaAppClipInvocationCreateRequest": { + "CiTestResult": { "type": "object", - "title": "BetaAppClipInvocationCreateRequest", + "title": "CiTestResult", "properties": { - "data": { + "type": { + "type": "string", + "enum": [ + "ciTestResults" + ] + }, + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocations" - ] - }, - "attributes": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri" - } - }, - "required": [ - "url" - ] + "className": { + "type": "string" }, - "relationships": { - "type": "object", - "properties": { - "buildBundle": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "buildBundles" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "betaAppClipInvocationLocalizations": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocationLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } + "name": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/CiTestStatus" + }, + "fileSource": { + "$ref": "#/components/schemas/FileLocation" + }, + "message": { + "type": "string" + }, + "destinationTestResults": { + "type": "array", + "items": { + "type": "object", + "properties": { + "uuid": { + "type": "string" }, - "required": [ - "data" - ] + "deviceName": { + "type": "string" + }, + "osVersion": { + "type": "string" + }, + "status": { + "$ref": "#/components/schemas/CiTestStatus" + }, + "duration": { + "type": "number" + } } - }, - "required": [ - "buildBundle", - "betaAppClipInvocationLocalizations" - ] + } } - }, - "required": [ - "relationships", - "attributes", - "type" - ] + } }, - "included": { + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "CiTestResultsResponse": { + "type": "object", + "title": "CiTestResultsResponse", + "properties": { + "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaAppClipInvocationLocalizationInlineCreate" + "$ref": "#/components/schemas/CiTestResult" } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "data" + "data", + "links" ] }, - "BetaAppClipInvocationUpdateRequest": { + "CiTestResultResponse": { "type": "object", - "title": "BetaAppClipInvocationUpdateRequest", + "title": "CiTestResultResponse", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "url": { - "type": "string", - "format": "uri" - } - } - } - }, - "required": [ - "id", - "type" - ] + "$ref": "#/components/schemas/CiTestResult" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ - "data" + "data", + "links" ] }, - "BetaAppLocalization": { + "CiWorkflow": { "type": "object", - "title": "BetaAppLocalization", + "title": "CiWorkflow", "properties": { "type": { "type": "string", "enum": [ - "betaAppLocalizations" + "ciWorkflows" ] }, "id": { @@ -84630,30 +105470,52 @@ "attributes": { "type": "object", "properties": { - "feedbackEmail": { + "name": { "type": "string" }, - "marketingUrl": { + "description": { "type": "string" }, - "privacyPolicyUrl": { - "type": "string" + "branchStartCondition": { + "$ref": "#/components/schemas/CiBranchStartCondition" }, - "tvOsPrivacyPolicy": { - "type": "string" + "tagStartCondition": { + "$ref": "#/components/schemas/CiTagStartCondition" }, - "description": { - "type": "string" + "pullRequestStartCondition": { + "$ref": "#/components/schemas/CiPullRequestStartCondition" }, - "locale": { + "scheduledStartCondition": { + "$ref": "#/components/schemas/CiScheduledStartCondition" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiAction" + } + }, + "isEnabled": { + "type": "boolean" + }, + "isLockedForEditing": { + "type": "boolean" + }, + "clean": { + "type": "boolean" + }, + "containerFilePath": { "type": "string" + }, + "lastModifiedDate": { + "type": "string", + "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "app": { + "product": { "type": "object", "properties": { "links": { @@ -84675,7 +105537,115 @@ "type": { "type": "string", "enum": [ - "apps" + "ciProducts" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "repository": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "xcodeVersion": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "macOsVersion": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" ] }, "id": { @@ -84696,25 +105666,37 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaAppLocalizationsResponse": { + "CiWorkflowsResponse": { "type": "object", - "title": "BetaAppLocalizationsResponse", + "title": "CiWorkflowsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaAppLocalization" + "$ref": "#/components/schemas/CiWorkflow" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/App" + "oneOf": [ + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/ScmRepository" + }, + { + "$ref": "#/components/schemas/CiXcodeVersion" + }, + { + "$ref": "#/components/schemas/CiMacOsVersion" + } + ] } }, "links": { @@ -84729,17 +105711,30 @@ "links" ] }, - "BetaAppLocalizationResponse": { + "CiWorkflowResponse": { "type": "object", - "title": "BetaAppLocalizationResponse", + "title": "CiWorkflowResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaAppLocalization" + "$ref": "#/components/schemas/CiWorkflow" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/App" + "oneOf": [ + { + "$ref": "#/components/schemas/CiProduct" + }, + { + "$ref": "#/components/schemas/ScmRepository" + }, + { + "$ref": "#/components/schemas/CiXcodeVersion" + }, + { + "$ref": "#/components/schemas/CiMacOsVersion" + } + ] } }, "links": { @@ -84751,9 +105746,9 @@ "links" ] }, - "BetaAppLocalizationCreateRequest": { + "CiWorkflowCreateRequest": { "type": "object", - "title": "BetaAppLocalizationCreateRequest", + "title": "CiWorkflowCreateRequest", "properties": { "data": { "type": "object", @@ -84761,39 +105756,62 @@ "type": { "type": "string", "enum": [ - "betaAppLocalizations" + "ciWorkflows" ] }, "attributes": { "type": "object", "properties": { - "feedbackEmail": { + "name": { "type": "string" }, - "marketingUrl": { + "description": { "type": "string" }, - "privacyPolicyUrl": { - "type": "string" + "branchStartCondition": { + "$ref": "#/components/schemas/CiBranchStartCondition" }, - "tvOsPrivacyPolicy": { - "type": "string" + "tagStartCondition": { + "$ref": "#/components/schemas/CiTagStartCondition" }, - "description": { - "type": "string" + "pullRequestStartCondition": { + "$ref": "#/components/schemas/CiPullRequestStartCondition" }, - "locale": { + "scheduledStartCondition": { + "$ref": "#/components/schemas/CiScheduledStartCondition" + }, + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiAction" + } + }, + "isEnabled": { + "type": "boolean" + }, + "isLockedForEditing": { + "type": "boolean" + }, + "clean": { + "type": "boolean" + }, + "containerFilePath": { "type": "string" } }, "required": [ - "locale" + "containerFilePath", + "isEnabled", + "name", + "description", + "clean", + "actions" ] }, "relationships": { "type": "object", "properties": { - "app": { + "product": { "type": "object", "properties": { "data": { @@ -84802,7 +105820,7 @@ "type": { "type": "string", "enum": [ - "apps" + "ciProducts" ] }, "id": { @@ -84818,217 +105836,108 @@ "required": [ "data" ] - } - }, - "required": [ - "app" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BetaAppLocalizationUpdateRequest": { - "type": "object", - "title": "BetaAppLocalizationUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "feedbackEmail": { - "type": "string" }, - "marketingUrl": { - "type": "string" - }, - "privacyPolicyUrl": { - "type": "string" - }, - "tvOsPrivacyPolicy": { - "type": "string" + "repository": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "scmRepositories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] }, - "description": { - "type": "string" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BetaAppReviewDetail": { - "type": "object", - "title": "BetaAppReviewDetail", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppReviewDetails" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "contactFirstName": { - "type": "string" - }, - "contactLastName": { - "type": "string" - }, - "contactPhone": { - "type": "string" - }, - "contactEmail": { - "type": "string" - }, - "demoAccountName": { - "type": "string" - }, - "demoAccountPassword": { - "type": "string" - }, - "demoAccountRequired": { - "type": "boolean" - }, - "notes": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "app": { - "type": "object", - "properties": { - "links": { + "xcodeVersion": { "type": "object", "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - } + }, + "required": [ + "data" + ] }, - "data": { + "macOsVersion": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "apps" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "id": { - "type": "string" } }, "required": [ - "id", - "type" + "data" ] } - } + }, + "required": [ + "macOsVersion", + "product", + "repository", + "xcodeVersion" + ] } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "BetaAppReviewDetailsResponse": { - "type": "object", - "title": "BetaAppReviewDetailsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BetaAppReviewDetail" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/App" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "BetaAppReviewDetailResponse": { - "type": "object", - "title": "BetaAppReviewDetailResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/BetaAppReviewDetail" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/App" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + }, + "required": [ + "relationships", + "attributes", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "BetaAppReviewDetailUpdateRequest": { + "CiWorkflowUpdateRequest": { "type": "object", - "title": "BetaAppReviewDetailUpdateRequest", + "title": "CiWorkflowUpdateRequest", "properties": { "data": { "type": "object", @@ -85036,7 +105945,7 @@ "type": { "type": "string", "enum": [ - "betaAppReviewDetails" + "ciWorkflows" ] }, "id": { @@ -85045,31 +105954,94 @@ "attributes": { "type": "object", "properties": { - "contactFirstName": { + "name": { "type": "string" }, - "contactLastName": { + "description": { "type": "string" }, - "contactPhone": { - "type": "string" + "branchStartCondition": { + "$ref": "#/components/schemas/CiBranchStartCondition" }, - "contactEmail": { - "type": "string" + "tagStartCondition": { + "$ref": "#/components/schemas/CiTagStartCondition" }, - "demoAccountName": { - "type": "string" + "pullRequestStartCondition": { + "$ref": "#/components/schemas/CiPullRequestStartCondition" }, - "demoAccountPassword": { - "type": "string" + "scheduledStartCondition": { + "$ref": "#/components/schemas/CiScheduledStartCondition" }, - "demoAccountRequired": { + "actions": { + "type": "array", + "items": { + "$ref": "#/components/schemas/CiAction" + } + }, + "isEnabled": { "type": "boolean" }, - "notes": { + "isLockedForEditing": { + "type": "boolean" + }, + "clean": { + "type": "boolean" + }, + "containerFilePath": { "type": "string" } } + }, + "relationships": { + "type": "object", + "properties": { + "xcodeVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciXcodeVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "macOsVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } } }, "required": [ @@ -85082,14 +106054,14 @@ "data" ] }, - "BetaAppReviewSubmission": { + "CiXcodeVersion": { "type": "object", - "title": "BetaAppReviewSubmission", + "title": "CiXcodeVersion", "properties": { "type": { "type": "string", "enum": [ - "betaAppReviewSubmissions" + "ciXcodeVersions" ] }, "id": { @@ -85098,19 +106070,49 @@ "attributes": { "type": "object", "properties": { - "betaReviewState": { - "$ref": "#/components/schemas/BetaReviewState" + "version": { + "type": "string" }, - "submittedDate": { - "type": "string", - "format": "date-time" + "name": { + "type": "string" + }, + "testDestinations": { + "type": "array", + "items": { + "type": "object", + "properties": { + "deviceTypeName": { + "type": "string" + }, + "deviceTypeIdentifier": { + "type": "string" + }, + "availableRuntimes": { + "type": "array", + "items": { + "type": "object", + "properties": { + "runtimeName": { + "type": "string" + }, + "runtimeIdentifier": { + "type": "string" + } + } + } + }, + "kind": { + "$ref": "#/components/schemas/CiTestDestinationKind" + } + } + } } } }, "relationships": { "type": "object", "properties": { - "build": { + "macOsVersions": { "type": "object", "properties": { "links": { @@ -85126,23 +106128,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ciMacOsVersions" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -85153,25 +106161,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaAppReviewSubmissionsResponse": { + "CiXcodeVersionsResponse": { "type": "object", - "title": "BetaAppReviewSubmissionsResponse", + "title": "CiXcodeVersionsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaAppReviewSubmission" + "$ref": "#/components/schemas/CiXcodeVersion" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/CiMacOsVersion" } }, "links": { @@ -85186,17 +106193,17 @@ "links" ] }, - "BetaAppReviewSubmissionResponse": { + "CiXcodeVersionResponse": { "type": "object", - "title": "BetaAppReviewSubmissionResponse", + "title": "CiXcodeVersionResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaAppReviewSubmission" + "$ref": "#/components/schemas/CiXcodeVersion" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/CiMacOsVersion" } }, "links": { @@ -85208,72 +106215,14 @@ "links" ] }, - "BetaAppReviewSubmissionCreateRequest": { - "type": "object", - "title": "BetaAppReviewSubmissionCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppReviewSubmissions" - ] - }, - "relationships": { - "type": "object", - "properties": { - "build": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "build" - ] - } - }, - "required": [ - "relationships", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BetaBuildLocalization": { + "CustomerReviewResponseV1": { "type": "object", - "title": "BetaBuildLocalization", + "title": "CustomerReviewResponseV1", "properties": { "type": { "type": "string", "enum": [ - "betaBuildLocalizations" + "customerReviewResponses" ] }, "id": { @@ -85282,18 +106231,26 @@ "attributes": { "type": "object", "properties": { - "whatsNew": { + "responseBody": { "type": "string" }, - "locale": { - "type": "string" + "lastModifiedDate": { + "type": "string", + "format": "date-time" + }, + "state": { + "type": "string", + "enum": [ + "PUBLISHED", + "PENDING_PUBLISH" + ] } } }, "relationships": { "type": "object", "properties": { - "build": { + "review": { "type": "object", "properties": { "links": { @@ -85315,7 +106272,7 @@ "type": { "type": "string", "enum": [ - "builds" + "customerReviews" ] }, "id": { @@ -85336,50 +106293,21 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaBuildLocalizationsResponse": { - "type": "object", - "title": "BetaBuildLocalizationsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BetaBuildLocalization" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Build" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "BetaBuildLocalizationResponse": { + "CustomerReviewResponseV1Response": { "type": "object", - "title": "BetaBuildLocalizationResponse", + "title": "CustomerReviewResponseV1Response", "properties": { "data": { - "$ref": "#/components/schemas/BetaBuildLocalization" + "$ref": "#/components/schemas/CustomerReviewResponseV1" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/CustomerReview" } }, "links": { @@ -85391,9 +106319,9 @@ "links" ] }, - "BetaBuildLocalizationCreateRequest": { + "CustomerReviewResponseV1CreateRequest": { "type": "object", - "title": "BetaBuildLocalizationCreateRequest", + "title": "CustomerReviewResponseV1CreateRequest", "properties": { "data": { "type": "object", @@ -85401,27 +106329,24 @@ "type": { "type": "string", "enum": [ - "betaBuildLocalizations" + "customerReviewResponses" ] }, "attributes": { "type": "object", "properties": { - "whatsNew": { - "type": "string" - }, - "locale": { + "responseBody": { "type": "string" } }, "required": [ - "locale" + "responseBody" ] }, "relationships": { "type": "object", "properties": { - "build": { + "review": { "type": "object", "properties": { "data": { @@ -85430,7 +106355,7 @@ "type": { "type": "string", "enum": [ - "builds" + "customerReviews" ] }, "id": { @@ -85449,7 +106374,7 @@ } }, "required": [ - "build" + "review" ] } }, @@ -85464,97 +106389,49 @@ "data" ] }, - "BetaBuildLocalizationUpdateRequest": { - "type": "object", - "title": "BetaBuildLocalizationUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaBuildLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "whatsNew": { - "type": "string" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BetaGroup": { + "CustomerReview": { "type": "object", - "title": "BetaGroup", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaGroups" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "createdDate": { - "type": "string", - "format": "date-time" - }, - "isInternalGroup": { - "type": "boolean" - }, - "hasAccessToAllBuilds": { - "type": "boolean" - }, - "publicLinkEnabled": { - "type": "boolean" + "title": "CustomerReview", + "properties": { + "type": { + "type": "string", + "enum": [ + "customerReviews" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "rating": { + "type": "integer", + "maximum": 5, + "minimum": 1 }, - "publicLinkId": { + "title": { "type": "string" }, - "publicLinkLimitEnabled": { - "type": "boolean" - }, - "publicLinkLimit": { - "type": "integer" + "body": { + "type": "string" }, - "publicLink": { + "reviewerNickname": { "type": "string" }, - "feedbackEnabled": { - "type": "boolean" + "createdDate": { + "type": "string", + "format": "date-time" }, - "iosBuildsAvailableForAppleSiliconMac": { - "type": "boolean" + "territory": { + "$ref": "#/components/schemas/TerritoryCode" } } }, "relationships": { "type": "object", "properties": { - "app": { + "response": { "type": "object", "properties": { "links": { @@ -85576,7 +106453,7 @@ "type": { "type": "string", "enum": [ - "apps" + "customerReviewResponses" ] }, "id": { @@ -85589,90 +106466,6 @@ ] } } - }, - "builds": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "betaTesters": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaTesters" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -85681,35 +106474,24 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaGroupsResponse": { + "CustomerReviewsResponse": { "type": "object", - "title": "BetaGroupsResponse", + "title": "CustomerReviewsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BetaGroup" + "$ref": "#/components/schemas/CustomerReview" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Build" - }, - { - "$ref": "#/components/schemas/BetaTester" - } - ] + "$ref": "#/components/schemas/CustomerReviewResponseV1" } }, "links": { @@ -85724,27 +106506,17 @@ "links" ] }, - "BetaGroupResponse": { + "CustomerReviewResponse": { "type": "object", - "title": "BetaGroupResponse", + "title": "CustomerReviewResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaGroup" + "$ref": "#/components/schemas/CustomerReview" }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/Build" - }, - { - "$ref": "#/components/schemas/BetaTester" - } - ] + "$ref": "#/components/schemas/CustomerReviewResponseV1" } }, "links": { @@ -85756,9 +106528,108 @@ "links" ] }, - "BetaGroupCreateRequest": { + "Device": { "type": "object", - "title": "BetaGroupCreateRequest", + "title": "Device", + "properties": { + "type": { + "type": "string", + "enum": [ + "devices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" + }, + "udid": { + "type": "string" + }, + "deviceClass": { + "type": "string", + "enum": [ + "APPLE_WATCH", + "IPAD", + "IPHONE", + "IPOD", + "APPLE_TV", + "MAC" + ] + }, + "status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] + }, + "model": { + "type": "string" + }, + "addedDate": { + "type": "string", + "format": "date-time" + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "DevicesResponse": { + "type": "object", + "title": "DevicesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Device" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "DeviceResponse": { + "type": "object", + "title": "DeviceResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Device" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "DeviceCreateRequest": { + "type": "object", + "title": "DeviceCreateRequest", "properties": { "data": { "type": "object", @@ -85766,7 +106637,7 @@ "type": { "type": "string", "enum": [ - "betaGroups" + "devices" ] }, "attributes": { @@ -85775,118 +106646,21 @@ "name": { "type": "string" }, - "isInternalGroup": { - "type": "boolean" - }, - "hasAccessToAllBuilds": { - "type": "boolean" - }, - "publicLinkEnabled": { - "type": "boolean" - }, - "publicLinkLimitEnabled": { - "type": "boolean" - }, - "publicLinkLimit": { - "type": "integer" - }, - "feedbackEnabled": { - "type": "boolean" - } - }, - "required": [ - "name" - ] - }, - "relationships": { - "type": "object", - "properties": { - "app": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "builds": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } + "platform": { + "$ref": "#/components/schemas/BundleIdPlatform" }, - "betaTesters": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaTesters" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } + "udid": { + "type": "string" } }, "required": [ - "app" + "name", + "udid", + "platform" ] } }, "required": [ - "relationships", "attributes", "type" ] @@ -85896,9 +106670,9 @@ "data" ] }, - "BetaGroupUpdateRequest": { + "DeviceUpdateRequest": { "type": "object", - "title": "BetaGroupUpdateRequest", + "title": "DeviceUpdateRequest", "properties": { "data": { "type": "object", @@ -85906,7 +106680,7 @@ "type": { "type": "string", "enum": [ - "betaGroups" + "devices" ] }, "id": { @@ -85918,20 +106692,12 @@ "name": { "type": "string" }, - "publicLinkEnabled": { - "type": "boolean" - }, - "publicLinkLimitEnabled": { - "type": "boolean" - }, - "publicLinkLimit": { - "type": "integer" - }, - "feedbackEnabled": { - "type": "boolean" - }, - "iosBuildsAvailableForAppleSiliconMac": { - "type": "boolean" + "status": { + "type": "string", + "enum": [ + "ENABLED", + "DISABLED" + ] } } } @@ -85946,121 +106712,77 @@ "data" ] }, - "BetaLicenseAgreement": { + "DiagnosticLog": { "type": "object", - "title": "BetaLicenseAgreement", + "title": "DiagnosticLog", "properties": { "type": { "type": "string", "enum": [ - "betaLicenseAgreements" + "diagnosticLogs" ] }, "id": { "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "agreementText": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "app": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "BetaLicenseAgreementsResponse": { + "DiagnosticSignature": { "type": "object", - "title": "BetaLicenseAgreementsResponse", + "title": "DiagnosticSignature", "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BetaLicenseAgreement" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/App" - } + "type": { + "type": "string", + "enum": [ + "diagnosticSignatures" + ] }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" + "id": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "attributes": { + "type": "object", + "properties": { + "diagnosticType": { + "type": "string", + "enum": [ + "DISK_WRITES", + "HANGS" + ] + }, + "signature": { + "type": "string" + }, + "weight": { + "type": "number" + } + } } }, "required": [ - "data", - "links" + "id", + "type" ] }, - "BetaLicenseAgreementResponse": { + "DiagnosticSignaturesResponse": { "type": "object", - "title": "BetaLicenseAgreementResponse", + "title": "DiagnosticSignaturesResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaLicenseAgreement" - }, - "included": { "type": "array", "items": { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/DiagnosticSignature" } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -86068,70 +106790,31 @@ "links" ] }, - "BetaLicenseAgreementUpdateRequest": { - "type": "object", - "title": "BetaLicenseAgreementUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaLicenseAgreements" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "agreementText": { - "type": "string" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BetaTesterInvitation": { + "EndAppAvailabilityPreOrder": { "type": "object", - "title": "BetaTesterInvitation", + "title": "EndAppAvailabilityPreOrder", "properties": { "type": { "type": "string", "enum": [ - "betaTesterInvitations" + "endAppAvailabilityPreOrders" ] }, "id": { "type": "string" - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "BetaTesterInvitationResponse": { + "EndAppAvailabilityPreOrderResponse": { "type": "object", - "title": "BetaTesterInvitationResponse", + "title": "EndAppAvailabilityPreOrderResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaTesterInvitation" + "$ref": "#/components/schemas/EndAppAvailabilityPreOrder" }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -86142,9 +106825,9 @@ "links" ] }, - "BetaTesterInvitationCreateRequest": { + "EndAppAvailabilityPreOrderCreateRequest": { "type": "object", - "title": "BetaTesterInvitationCreateRequest", + "title": "EndAppAvailabilityPreOrderCreateRequest", "properties": { "data": { "type": "object", @@ -86152,58 +106835,35 @@ "type": { "type": "string", "enum": [ - "betaTesterInvitations" + "endAppAvailabilityPreOrders" ] }, "relationships": { "type": "object", "properties": { - "betaTester": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaTesters" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "app": { + "territoryAvailabilities": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } }, "required": [ @@ -86212,8 +106872,7 @@ } }, "required": [ - "app", - "betaTester" + "territoryAvailabilities" ] } }, @@ -86227,14 +106886,14 @@ "data" ] }, - "BetaTester": { + "EndUserLicenseAgreement": { "type": "object", - "title": "BetaTester", + "title": "EndUserLicenseAgreement", "properties": { "type": { "type": "string", "enum": [ - "betaTesters" + "endUserLicenseAgreements" ] }, "id": { @@ -86243,25 +106902,15 @@ "attributes": { "type": "object", "properties": { - "firstName": { - "type": "string" - }, - "lastName": { + "agreementText": { "type": "string" - }, - "email": { - "type": "string", - "format": "email" - }, - "inviteType": { - "$ref": "#/components/schemas/BetaInviteType" } } }, "relationships": { "type": "object", "properties": { - "apps": { + "app": { "type": "object", "properties": { "links": { @@ -86277,75 +106926,27 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "betaGroups": { - "type": "object", - "properties": { - "links": { "type": "object", "properties": { - "self": { + "type": { "type": "string", - "format": "uri-reference" + "enum": [ + "apps" + ] }, - "related": { - "type": "string", - "format": "uri-reference" + "id": { + "type": "string" } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaGroups" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + }, + "required": [ + "id", + "type" + ] } } }, - "builds": { + "territories": { "type": "object", "properties": { "links": { @@ -86372,7 +106973,7 @@ "type": { "type": "string", "enum": [ - "builds" + "territories" ] }, "id": { @@ -86394,55 +106995,16 @@ } }, "required": [ - "links", "id", "type" ] }, - "BetaTestersResponse": { - "type": "object", - "title": "BetaTestersResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BetaTester" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/BetaGroup" - }, - { - "$ref": "#/components/schemas/Build" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "BetaTesterResponse": { + "EndUserLicenseAgreementResponse": { "type": "object", - "title": "BetaTesterResponse", + "title": "EndUserLicenseAgreementResponse", "properties": { "data": { - "$ref": "#/components/schemas/BetaTester" + "$ref": "#/components/schemas/EndUserLicenseAgreement" }, "included": { "type": "array", @@ -86452,10 +107014,7 @@ "$ref": "#/components/schemas/App" }, { - "$ref": "#/components/schemas/BetaGroup" - }, - { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/Territory" } ] } @@ -86469,9 +107028,9 @@ "links" ] }, - "BetaTesterCreateRequest": { + "EndUserLicenseAgreementCreateRequest": { "type": "object", - "title": "BetaTesterCreateRequest", + "title": "EndUserLicenseAgreementCreateRequest", "properties": { "data": { "type": "object", @@ -86479,31 +107038,50 @@ "type": { "type": "string", "enum": [ - "betaTesters" + "endUserLicenseAgreements" ] }, "attributes": { "type": "object", "properties": { - "firstName": { - "type": "string" - }, - "lastName": { + "agreementText": { "type": "string" - }, - "email": { - "type": "string", - "format": "email" } }, "required": [ - "email" + "agreementText" ] }, "relationships": { "type": "object", "properties": { - "betaGroups": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "territories": { "type": "object", "properties": { "data": { @@ -86514,7 +107092,7 @@ "type": { "type": "string", "enum": [ - "betaGroups" + "territories" ] }, "id": { @@ -86527,9 +107105,57 @@ ] } } - } - }, - "builds": { + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app", + "territories" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "EndUserLicenseAgreementUpdateRequest": { + "type": "object", + "title": "EndUserLicenseAgreementUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "endUserLicenseAgreements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "agreementText": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territories": { "type": "object", "properties": { "data": { @@ -86540,7 +107166,7 @@ "type": { "type": "string", "enum": [ - "builds" + "territories" ] }, "id": { @@ -86559,7 +107185,7 @@ } }, "required": [ - "attributes", + "id", "type" ] } @@ -86568,14 +107194,14 @@ "data" ] }, - "BuildBetaDetail": { + "GameCenterAchievementImage": { "type": "object", - "title": "BuildBetaDetail", + "title": "GameCenterAchievementImage", "properties": { "type": { "type": "string", "enum": [ - "buildBetaDetails" + "gameCenterAchievementImages" ] }, "id": { @@ -86584,21 +107210,30 @@ "attributes": { "type": "object", "properties": { - "autoNotifyEnabled": { - "type": "boolean" + "fileSize": { + "type": "integer" }, - "internalBuildState": { - "$ref": "#/components/schemas/InternalBetaState" + "fileName": { + "type": "string" }, - "externalBuildState": { - "$ref": "#/components/schemas/ExternalBetaState" + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" } } }, "relationships": { "type": "object", "properties": { - "build": { + "gameCenterAchievementLocalization": { "type": "object", "properties": { "links": { @@ -86620,146 +107255,43 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterAchievementLocalizations" ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "BuildBetaDetailsResponse": { - "type": "object", - "title": "BuildBetaDetailsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BuildBetaDetail" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Build" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "BuildBetaDetailResponse": { - "type": "object", - "title": "BuildBetaDetailResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/BuildBetaDetail" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Build" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "BuildBetaDetailUpdateRequest": { - "type": "object", - "title": "BuildBetaDetailUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "buildBetaDetails" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "autoNotifyEnabled": { - "type": "boolean" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BuildBetaNotification": { - "type": "object", - "title": "BuildBetaNotification", - "properties": { - "type": { - "type": "string", - "enum": [ - "buildBetaNotifications" - ] - }, - "id": { - "type": "string" + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } }, "links": { "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "BuildBetaNotificationResponse": { + "GameCenterAchievementImageResponse": { "type": "object", - "title": "BuildBetaNotificationResponse", + "title": "GameCenterAchievementImageResponse", "properties": { "data": { - "$ref": "#/components/schemas/BuildBetaNotification" + "$ref": "#/components/schemas/GameCenterAchievementImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + } }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -86770,9 +107302,9 @@ "links" ] }, - "BuildBetaNotificationCreateRequest": { + "GameCenterAchievementImageCreateRequest": { "type": "object", - "title": "BuildBetaNotificationCreateRequest", + "title": "GameCenterAchievementImageCreateRequest", "properties": { "data": { "type": "object", @@ -86780,13 +107312,28 @@ "type": { "type": "string", "enum": [ - "buildBetaNotifications" + "gameCenterAchievementImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" ] }, "relationships": { "type": "object", "properties": { - "build": { + "gameCenterAchievementLocalization": { "type": "object", "properties": { "data": { @@ -86795,7 +107342,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterAchievementLocalizations" ] }, "id": { @@ -86814,12 +107361,13 @@ } }, "required": [ - "build" + "gameCenterAchievementLocalization" ] } }, "required": [ "relationships", + "attributes", "type" ] } @@ -86828,76 +107376,49 @@ "data" ] }, - "BuildBundleFileSize": { + "GameCenterAchievementImageUpdateRequest": { "type": "object", - "title": "BuildBundleFileSize", + "title": "GameCenterAchievementImageUpdateRequest", "properties": { - "type": { - "type": "string", - "enum": [ - "buildBundleFileSizes" - ] - }, - "id": { - "type": "string" - }, - "attributes": { + "data": { "type": "object", "properties": { - "deviceModel": { - "type": "string" + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementImages" + ] }, - "osVersion": { + "id": { "type": "string" }, - "downloadBytes": { - "type": "integer" - }, - "installBytes": { - "type": "integer" + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean" + } + } } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "BuildBundleFileSizesResponse": { - "type": "object", - "title": "BuildBundleFileSizesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BuildBundleFileSize" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + }, + "required": [ + "id", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "BuildBundle": { + "GameCenterAchievementLocalization": { "type": "object", - "title": "BuildBundle", + "title": "GameCenterAchievementLocalization", "properties": { "type": { "type": "string", "enum": [ - "buildBundles" + "gameCenterAchievementLocalizations" ] }, "id": { @@ -86906,86 +107427,24 @@ "attributes": { "type": "object", "properties": { - "bundleId": { + "locale": { "type": "string" }, - "bundleType": { - "type": "string", - "enum": [ - "APP", - "APP_CLIP" - ] - }, - "sdkBuild": { + "name": { "type": "string" }, - "platformBuild": { + "beforeEarnedDescription": { "type": "string" }, - "fileName": { + "afterEarnedDescription": { "type": "string" - }, - "hasSirikit": { - "type": "boolean" - }, - "hasOnDemandResources": { - "type": "boolean" - }, - "hasPrerenderedIcon": { - "type": "boolean" - }, - "usesLocationServices": { - "type": "boolean" - }, - "isIosBuildMacAppStoreCompatible": { - "type": "boolean" - }, - "includesSymbols": { - "type": "boolean" - }, - "dSYMUrl": { - "type": "string", - "format": "uri" - }, - "supportedArchitectures": { - "type": "array", - "items": { - "type": "string" - } - }, - "requiredCapabilities": { - "type": "array", - "items": { - "type": "string" - } - }, - "deviceProtocols": { - "type": "array", - "items": { - "type": "string" - } - }, - "locales": { - "type": "array", - "items": { - "type": "string" - } - }, - "entitlements": { - "type": "object", - "additionalProperties": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } } } }, "relationships": { "type": "object", "properties": { - "appClipDomainCacheStatus": { + "gameCenterAchievement": { "type": "object", "properties": { "links": { @@ -87007,7 +107466,7 @@ "type": { "type": "string", "enum": [ - "appClipDomainStatuses" + "gameCenterAchievements" ] }, "id": { @@ -87021,7 +107480,7 @@ } } }, - "appClipDomainDebugStatus": { + "gameCenterAchievementImage": { "type": "object", "properties": { "links": { @@ -87043,7 +107502,7 @@ "type": { "type": "string", "enum": [ - "appClipDomainStatuses" + "gameCenterAchievementImages" ] }, "id": { @@ -87056,90 +107515,6 @@ ] } } - }, - "betaAppClipInvocations": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaAppClipInvocations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "buildBundleFileSizes": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "buildBundleFileSizes" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -87148,63 +107523,67 @@ } }, "required": [ - "links", "id", "type" ] }, - "BuildIcon": { + "GameCenterAchievementLocalizationsResponse": { "type": "object", - "title": "BuildIcon", + "title": "GameCenterAchievementLocalizationsResponse", "properties": { - "type": { - "type": "string", - "enum": [ - "buildIcons" - ] - }, - "id": { - "type": "string" + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + } }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "iconAsset": { - "$ref": "#/components/schemas/ImageAsset" - }, - "iconType": { - "$ref": "#/components/schemas/IconAssetType" - } + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementImage" + } + ] } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "BuildIconsResponse": { + "GameCenterAchievementLocalizationResponse": { "type": "object", - "title": "BuildIconsResponse", + "title": "GameCenterAchievementLocalizationResponse", "properties": { "data": { + "$ref": "#/components/schemas/GameCenterAchievementLocalization" + }, + "included": { "type": "array", "items": { - "$ref": "#/components/schemas/BuildIcon" + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementImage" + } + ] } }, "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ @@ -87212,231 +107591,154 @@ "links" ] }, - "Build": { + "GameCenterAchievementLocalizationCreateRequest": { "type": "object", - "title": "Build", + "title": "GameCenterAchievementLocalizationCreateRequest", "properties": { - "type": { - "type": "string", - "enum": [ - "builds" - ] - }, - "id": { - "type": "string" - }, - "attributes": { + "data": { "type": "object", "properties": { - "version": { - "type": "string" - }, - "uploadedDate": { - "type": "string", - "format": "date-time" - }, - "expirationDate": { - "type": "string", - "format": "date-time" - }, - "expired": { - "type": "boolean" - }, - "minOsVersion": { - "type": "string" - }, - "lsMinimumSystemVersion": { - "type": "string" - }, - "computedMinMacOsVersion": { - "type": "string" - }, - "iconAssetToken": { - "$ref": "#/components/schemas/ImageAsset" - }, - "processingState": { + "type": { "type": "string", "enum": [ - "PROCESSING", - "FAILED", - "INVALID", - "VALID" + "gameCenterAchievementLocalizations" ] }, - "buildAudienceType": { - "$ref": "#/components/schemas/BuildAudienceType" - }, - "usesNonExemptEncryption": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "preReleaseVersion": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "preReleaseVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "individualTesters": { + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "locale": { + "type": "string" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaTesters" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "betaGroups": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "name": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "beforeEarnedDescription": { + "type": "string" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaGroups" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "afterEarnedDescription": { + "type": "string" } - } + }, + "required": [ + "name", + "beforeEarnedDescription", + "locale", + "afterEarnedDescription" + ] }, - "betaBuildLocalizations": { + "relationships": { "type": "object", "properties": { - "links": { + "gameCenterAchievement": { "type": "object", "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterAchievement" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementLocalizationUpdateRequest": { + "type": "object", + "title": "GameCenterAchievementLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "beforeEarnedDescription": { + "type": "string" }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "betaBuildLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + "afterEarnedDescription": { + "type": "string" } } - }, - "appEncryptionDeclaration": { + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievementRelease": { + "type": "object", + "title": "GameCenterAchievementRelease", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "live": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { "type": "object", "properties": { "links": { @@ -87458,7 +107760,7 @@ "type": { "type": "string", "enum": [ - "appEncryptionDeclarations" + "gameCenterDetails" ] }, "id": { @@ -87472,7 +107774,7 @@ } } }, - "betaAppReviewSubmission": { + "gameCenterAchievement": { "type": "object", "properties": { "links": { @@ -87494,7 +107796,7 @@ "type": { "type": "string", "enum": [ - "betaAppReviewSubmissions" + "gameCenterAchievements" ] }, "id": { @@ -87507,8 +107809,207 @@ ] } } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterAchievementReleasesResponse": { + "type": "object", + "title": "GameCenterAchievementReleasesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementReleaseResponse": { + "type": "object", + "title": "GameCenterAchievementReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementReleaseCreateRequest": { + "type": "object", + "title": "GameCenterAchievementReleaseCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] }, - "app": { + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "gameCenterAchievement": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterDetail", + "gameCenterAchievement" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterAchievement": { + "type": "object", + "title": "GameCenterAchievement", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "points": { + "type": "integer" + }, + "showBeforeEarned": { + "type": "boolean" + }, + "repeatable": { + "type": "boolean" + }, + "archived": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { "type": "object", "properties": { "links": { @@ -87530,7 +108031,7 @@ "type": { "type": "string", "enum": [ - "apps" + "gameCenterDetails" ] }, "id": { @@ -87544,7 +108045,7 @@ } } }, - "buildBetaDetail": { + "gameCenterGroup": { "type": "object", "properties": { "links": { @@ -87566,7 +108067,7 @@ "type": { "type": "string", "enum": [ - "buildBetaDetails" + "gameCenterGroups" ] }, "id": { @@ -87580,7 +108081,7 @@ } } }, - "appStoreVersion": { + "groupAchievement": { "type": "object", "properties": { "links": { @@ -87602,7 +108103,7 @@ "type": { "type": "string", "enum": [ - "appStoreVersions" + "gameCenterAchievements" ] }, "id": { @@ -87616,7 +108117,7 @@ } } }, - "icons": { + "localizations": { "type": "object", "properties": { "links": { @@ -87643,7 +108144,7 @@ "type": { "type": "string", "enum": [ - "buildIcons" + "gameCenterAchievementLocalizations" ] }, "id": { @@ -87658,7 +108159,7 @@ } } }, - "buildBundles": { + "releases": { "type": "object", "properties": { "links": { @@ -87685,7 +108186,7 @@ "type": { "type": "string", "enum": [ - "buildBundles" + "gameCenterAchievementReleases" ] }, "id": { @@ -87707,19 +108208,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "BuildsResponse": { + "GameCenterAchievementsResponse": { "type": "object", - "title": "BuildsResponse", + "title": "GameCenterAchievementsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/GameCenterAchievement" } }, "included": { @@ -87727,37 +108227,19 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/PreReleaseVersion" - }, - { - "$ref": "#/components/schemas/BetaTester" - }, - { - "$ref": "#/components/schemas/BetaGroup" - }, - { - "$ref": "#/components/schemas/BetaBuildLocalization" - }, - { - "$ref": "#/components/schemas/AppEncryptionDeclaration" - }, - { - "$ref": "#/components/schemas/BetaAppReviewSubmission" - }, - { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/BuildBetaDetail" + "$ref": "#/components/schemas/GameCenterGroup" }, { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/GameCenterAchievement" }, { - "$ref": "#/components/schemas/BuildIcon" + "$ref": "#/components/schemas/GameCenterAchievementLocalization" }, { - "$ref": "#/components/schemas/BuildBundle" + "$ref": "#/components/schemas/GameCenterAchievementRelease" } ] } @@ -87774,49 +108256,31 @@ "links" ] }, - "BuildResponse": { + "GameCenterAchievementResponse": { "type": "object", - "title": "BuildResponse", + "title": "GameCenterAchievementResponse", "properties": { "data": { - "$ref": "#/components/schemas/Build" + "$ref": "#/components/schemas/GameCenterAchievement" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/PreReleaseVersion" - }, - { - "$ref": "#/components/schemas/BetaTester" - }, - { - "$ref": "#/components/schemas/BetaGroup" - }, - { - "$ref": "#/components/schemas/BetaBuildLocalization" - }, - { - "$ref": "#/components/schemas/AppEncryptionDeclaration" - }, - { - "$ref": "#/components/schemas/BetaAppReviewSubmission" - }, - { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/BuildBetaDetail" + "$ref": "#/components/schemas/GameCenterGroup" }, { - "$ref": "#/components/schemas/AppStoreVersion" + "$ref": "#/components/schemas/GameCenterAchievement" }, { - "$ref": "#/components/schemas/BuildIcon" + "$ref": "#/components/schemas/GameCenterAchievementLocalization" }, { - "$ref": "#/components/schemas/BuildBundle" + "$ref": "#/components/schemas/GameCenterAchievementRelease" } ] } @@ -87830,9 +108294,9 @@ "links" ] }, - "BuildUpdateRequest": { + "GameCenterAchievementCreateRequest": { "type": "object", - "title": "BuildUpdateRequest", + "title": "GameCenterAchievementCreateRequest", "properties": { "data": { "type": "object", @@ -87840,27 +108304,40 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterAchievements" ] }, - "id": { - "type": "string" - }, "attributes": { "type": "object", "properties": { - "expired": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "points": { + "type": "integer" + }, + "showBeforeEarned": { "type": "boolean" }, - "usesNonExemptEncryption": { + "repeatable": { "type": "boolean" } - } + }, + "required": [ + "vendorIdentifier", + "repeatable", + "showBeforeEarned", + "referenceName", + "points" + ] }, "relationships": { "type": "object", "properties": { - "appEncryptionDeclaration": { + "gameCenterDetail": { "type": "object", "properties": { "data": { @@ -87869,7 +108346,7 @@ "type": { "type": "string", "enum": [ - "appEncryptionDeclarations" + "gameCenterDetails" ] }, "id": { @@ -87882,129 +108359,8 @@ ] } } - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BundleIdCapability": { - "type": "object", - "title": "BundleIdCapability", - "properties": { - "type": { - "type": "string", - "enum": [ - "bundleIdCapabilities" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "capabilityType": { - "$ref": "#/components/schemas/CapabilityType" - }, - "settings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CapabilitySetting" - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "BundleIdCapabilitiesResponse": { - "type": "object", - "title": "BundleIdCapabilitiesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/BundleIdCapability" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "BundleIdCapabilityResponse": { - "type": "object", - "title": "BundleIdCapabilityResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/BundleIdCapability" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "BundleIdCapabilityCreateRequest": { - "type": "object", - "title": "BundleIdCapabilityCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "bundleIdCapabilities" - ] - }, - "attributes": { - "type": "object", - "properties": { - "capabilityType": { - "$ref": "#/components/schemas/CapabilityType" }, - "settings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CapabilitySetting" - } - } - }, - "required": [ - "capabilityType" - ] - }, - "relationships": { - "type": "object", - "properties": { - "bundleId": { + "gameCenterGroup": { "type": "object", "properties": { "data": { @@ -88013,7 +108369,7 @@ "type": { "type": "string", "enum": [ - "bundleIds" + "gameCenterGroups" ] }, "id": { @@ -88024,20 +108380,13 @@ "id", "type" ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "bundleId" - ] + } + } + } + } } }, "required": [ - "relationships", "attributes", "type" ] @@ -88047,9 +108396,9 @@ "data" ] }, - "BundleIdCapabilityUpdateRequest": { + "GameCenterAchievementUpdateRequest": { "type": "object", - "title": "BundleIdCapabilityUpdateRequest", + "title": "GameCenterAchievementUpdateRequest", "properties": { "data": { "type": "object", @@ -88057,7 +108406,7 @@ "type": { "type": "string", "enum": [ - "bundleIdCapabilities" + "gameCenterAchievements" ] }, "id": { @@ -88066,14 +108415,20 @@ "attributes": { "type": "object", "properties": { - "capabilityType": { - "$ref": "#/components/schemas/CapabilityType" + "referenceName": { + "type": "string" }, - "settings": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CapabilitySetting" - } + "points": { + "type": "integer" + }, + "showBeforeEarned": { + "type": "boolean" + }, + "repeatable": { + "type": "boolean" + }, + "archived": { + "type": "boolean" } } } @@ -88088,14 +108443,14 @@ "data" ] }, - "BundleId": { + "GameCenterAppVersion": { "type": "object", - "title": "BundleId", + "title": "GameCenterAppVersion", "properties": { "type": { "type": "string", "enum": [ - "bundleIds" + "gameCenterAppVersions" ] }, "id": { @@ -88104,66 +108459,15 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "platform": { - "$ref": "#/components/schemas/BundleIdPlatform" - }, - "identifier": { - "type": "string" - }, - "seedId": { - "type": "string" + "enabled": { + "type": "boolean" } } }, "relationships": { "type": "object", "properties": { - "profiles": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "profiles" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "bundleIdCapabilities": { + "compatibilityVersions": { "type": "object", "properties": { "links": { @@ -88190,7 +108494,7 @@ "type": { "type": "string", "enum": [ - "bundleIdCapabilities" + "gameCenterAppVersions" ] }, "id": { @@ -88205,7 +108509,7 @@ } } }, - "app": { + "appStoreVersion": { "type": "object", "properties": { "links": { @@ -88227,7 +108531,7 @@ "type": { "type": "string", "enum": [ - "apps" + "appStoreVersions" ] }, "id": { @@ -88248,19 +108552,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "BundleIdsResponse": { + "GameCenterAppVersionsResponse": { "type": "object", - "title": "BundleIdsResponse", + "title": "GameCenterAppVersionsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/BundleId" + "$ref": "#/components/schemas/GameCenterAppVersion" } }, "included": { @@ -88268,13 +108571,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Profile" - }, - { - "$ref": "#/components/schemas/BundleIdCapability" + "$ref": "#/components/schemas/GameCenterAppVersion" }, { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/AppStoreVersion" } ] } @@ -88291,25 +108591,22 @@ "links" ] }, - "BundleIdResponse": { + "GameCenterAppVersionResponse": { "type": "object", - "title": "BundleIdResponse", + "title": "GameCenterAppVersionResponse", "properties": { "data": { - "$ref": "#/components/schemas/BundleId" + "$ref": "#/components/schemas/GameCenterAppVersion" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/Profile" - }, - { - "$ref": "#/components/schemas/BundleIdCapability" + "$ref": "#/components/schemas/GameCenterAppVersion" }, { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/AppStoreVersion" } ] } @@ -88323,9 +108620,9 @@ "links" ] }, - "BundleIdCreateRequest": { + "GameCenterAppVersionCreateRequest": { "type": "object", - "title": "BundleIdCreateRequest", + "title": "GameCenterAppVersionCreateRequest", "properties": { "data": { "type": "object", @@ -88333,34 +108630,46 @@ "type": { "type": "string", "enum": [ - "bundleIds" + "gameCenterAppVersions" ] }, - "attributes": { + "relationships": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "platform": { - "$ref": "#/components/schemas/BundleIdPlatform" - }, - "identifier": { - "type": "string" - }, - "seedId": { - "type": "string" + "appStoreVersion": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] } }, "required": [ - "identifier", - "name", - "platform" + "appStoreVersion" ] } }, "required": [ - "attributes", + "relationships", "type" ] } @@ -88369,9 +108678,9 @@ "data" ] }, - "BundleIdUpdateRequest": { + "GameCenterAppVersionUpdateRequest": { "type": "object", - "title": "BundleIdUpdateRequest", + "title": "GameCenterAppVersionUpdateRequest", "properties": { "data": { "type": "object", @@ -88379,7 +108688,7 @@ "type": { "type": "string", "enum": [ - "bundleIds" + "gameCenterAppVersions" ] }, "id": { @@ -88388,8 +108697,8 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" + "enabled": { + "type": "boolean" } } } @@ -88404,14 +108713,14 @@ "data" ] }, - "Certificate": { + "GameCenterDetail": { "type": "object", - "title": "Certificate", + "title": "GameCenterDetail", "properties": { "type": { "type": "string", "enum": [ - "certificates" + "gameCenterDetails" ] }, "id": { @@ -88420,252 +108729,294 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "certificateType": { - "$ref": "#/components/schemas/CertificateType" - }, - "displayName": { - "type": "string" - }, - "serialNumber": { - "type": "string" - }, - "platform": { - "$ref": "#/components/schemas/BundleIdPlatform" - }, - "expirationDate": { - "type": "string", - "format": "date-time" + "arcadeEnabled": { + "type": "boolean" }, - "certificateContent": { - "type": "string" + "challengeEnabled": { + "type": "boolean" } } }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "CertificatesResponse": { - "type": "object", - "title": "CertificatesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Certificate" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "CertificateResponse": { - "type": "object", - "title": "CertificateResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/Certificate" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "CertificateCreateRequest": { - "type": "object", - "title": "CertificateCreateRequest", - "properties": { - "data": { + "relationships": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "certificates" - ] - }, - "attributes": { + "app": { "type": "object", "properties": { - "csrContent": { - "type": "string" + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } }, - "certificateType": { - "$ref": "#/components/schemas/CertificateType" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "required": [ - "csrContent", - "certificateType" - ] - } - }, - "required": [ - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "CiArtifact": { - "type": "object", - "title": "CiArtifact", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciArtifacts" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "fileType": { - "type": "string", - "enum": [ - "ARCHIVE", - "ARCHIVE_EXPORT", - "LOG_BUNDLE", - "RESULT_BUNDLE", - "TEST_PRODUCTS", - "XCODEBUILD_PRODUCTS" - ] - }, - "fileName": { - "type": "string" - }, - "fileSize": { - "type": "integer" - }, - "downloadUrl": { - "type": "string", - "format": "uri" - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "CiArtifactsResponse": { - "type": "object", - "title": "CiArtifactsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiArtifact" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "CiArtifactResponse": { - "type": "object", - "title": "CiArtifactResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/CiArtifact" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "CiBuildAction": { - "type": "object", - "title": "CiBuildAction", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciBuildActions" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" + } }, - "actionType": { - "$ref": "#/components/schemas/CiActionType" + "gameCenterAppVersions": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } }, - "startedDate": { - "type": "string", - "format": "date-time" + "gameCenterGroup": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } }, - "finishedDate": { - "type": "string", - "format": "date-time" + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } }, - "issueCounts": { - "$ref": "#/components/schemas/CiIssueCounts" + "gameCenterLeaderboardSets": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } }, - "executionProgress": { - "$ref": "#/components/schemas/CiExecutionProgress" + "gameCenterAchievements": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } }, - "completionStatus": { - "$ref": "#/components/schemas/CiCompletionStatus" + "defaultLeaderboard": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } }, - "isRequiredToPass": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "buildRun": { + "defaultGroupLeaderboard": { "type": "object", "properties": { "links": { @@ -88687,7 +109038,7 @@ "type": { "type": "string", "enum": [ - "ciBuildRuns" + "gameCenterLeaderboards" ] }, "id": { @@ -88700,6 +109051,132 @@ ] } } + }, + "achievementReleases": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievementReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "leaderboardReleases": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "leaderboardSetReleases": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } } } }, @@ -88708,25 +109185,52 @@ } }, "required": [ - "links", "id", "type" ] }, - "CiBuildActionsResponse": { + "GameCenterDetailsResponse": { "type": "object", - "title": "CiBuildActionsResponse", + "title": "GameCenterDetailsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/CiBuildAction" + "$ref": "#/components/schemas/GameCenterDetail" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/CiBuildRun" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + } + ] } }, "links": { @@ -88741,17 +109245,45 @@ "links" ] }, - "CiBuildActionResponse": { + "GameCenterDetailResponse": { "type": "object", - "title": "CiBuildActionResponse", + "title": "GameCenterDetailResponse", "properties": { "data": { - "$ref": "#/components/schemas/CiBuildAction" + "$ref": "#/components/schemas/GameCenterDetail" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/CiBuildRun" + "oneOf": [ + { + "$ref": "#/components/schemas/App" + }, + { + "$ref": "#/components/schemas/GameCenterAppVersion" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterAchievement" + }, + { + "$ref": "#/components/schemas/GameCenterAchievementRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + } + ] } }, "links": { @@ -88763,115 +109295,212 @@ "links" ] }, - "CiBuildRun": { + "GameCenterDetailCreateRequest": { "type": "object", - "title": "CiBuildRun", + "title": "GameCenterDetailCreateRequest", "properties": { - "type": { - "type": "string", - "enum": [ - "ciBuildRuns" - ] - }, - "id": { - "type": "string" - }, - "attributes": { + "data": { "type": "object", "properties": { - "number": { - "type": "integer" - }, - "createdDate": { + "type": { "type": "string", - "format": "date-time" + "enum": [ + "gameCenterDetails" + ] }, - "startedDate": { - "type": "string", - "format": "date-time" + "attributes": { + "type": "object", + "properties": { + "challengeEnabled": { + "type": "boolean" + } + } }, - "finishedDate": { + "relationships": { + "type": "object", + "properties": { + "app": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "app" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterDetailUpdateRequest": { + "type": "object", + "title": "GameCenterDetailUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { "type": "string", - "format": "date-time" + "enum": [ + "gameCenterDetails" + ] }, - "sourceCommit": { + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "commitSha": { - "type": "string" - }, - "message": { - "type": "string" - }, - "author": { - "$ref": "#/components/schemas/CiGitUser" - }, - "committer": { - "$ref": "#/components/schemas/CiGitUser" - }, - "webUrl": { - "type": "string", - "format": "uri" + "challengeEnabled": { + "type": "boolean" } } }, - "destinationCommit": { + "relationships": { "type": "object", "properties": { - "commitSha": { - "type": "string" - }, - "message": { - "type": "string" - }, - "author": { - "$ref": "#/components/schemas/CiGitUser" + "gameCenterGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } }, - "committer": { - "$ref": "#/components/schemas/CiGitUser" + "defaultLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } }, - "webUrl": { - "type": "string", - "format": "uri" + "defaultGroupLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterEnabledVersion": { + "type": "object", + "title": "GameCenterEnabledVersion", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterEnabledVersions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "platform": { + "$ref": "#/components/schemas/Platform" }, - "isPullRequestBuild": { - "type": "boolean" - }, - "issueCounts": { - "$ref": "#/components/schemas/CiIssueCounts" - }, - "executionProgress": { - "$ref": "#/components/schemas/CiExecutionProgress" - }, - "completionStatus": { - "$ref": "#/components/schemas/CiCompletionStatus" - }, - "startReason": { - "type": "string", - "enum": [ - "GIT_REF_CHANGE", - "MANUAL", - "MANUAL_REBUILD", - "PULL_REQUEST_OPEN", - "PULL_REQUEST_UPDATE", - "SCHEDULE" - ] + "versionString": { + "type": "string" }, - "cancelReason": { - "type": "string", - "enum": [ - "AUTOMATICALLY_BY_NEWER_BUILD", - "MANUALLY_BY_USER" - ] + "iconAsset": { + "$ref": "#/components/schemas/ImageAsset" } } }, "relationships": { "type": "object", "properties": { - "builds": { + "compatibleVersions": { "type": "object", "properties": { "links": { @@ -88898,7 +109527,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterEnabledVersions" ] }, "id": { @@ -88913,7 +109542,7 @@ } } }, - "workflow": { + "app": { "type": "object", "properties": { "links": { @@ -88935,7 +109564,7 @@ "type": { "type": "string", "enum": [ - "ciWorkflows" + "apps" ] }, "id": { @@ -88948,8 +109577,77 @@ ] } } - }, - "product": { + } + } + } + }, + "required": [ + "id", + "type" + ], + "deprecated": true + }, + "GameCenterEnabledVersionsResponse": { + "type": "object", + "title": "GameCenterEnabledVersionsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterEnabledVersion" + }, + { + "$ref": "#/components/schemas/App" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ], + "deprecated": true + }, + "GameCenterGroup": { + "type": "object", + "title": "GameCenterGroup", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetails": { "type": "object", "properties": { "links": { @@ -88965,27 +109663,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciProducts" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "sourceBranchOrTag": { + "gameCenterLeaderboards": { "type": "object", "properties": { "links": { @@ -89001,27 +109705,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmGitReferences" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "destinationBranch": { + "gameCenterLeaderboardSets": { "type": "object", "properties": { "links": { @@ -89037,27 +109747,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmGitReferences" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "pullRequest": { + "gameCenterAchievements": { "type": "object", "properties": { "links": { @@ -89073,23 +109789,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmPullRequests" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAchievements" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -89100,19 +109822,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "CiBuildRunsResponse": { + "GameCenterGroupsResponse": { "type": "object", - "title": "CiBuildRunsResponse", + "title": "GameCenterGroupsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/CiBuildRun" + "$ref": "#/components/schemas/GameCenterGroup" } }, "included": { @@ -89120,22 +109841,16 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Build" - }, - { - "$ref": "#/components/schemas/CiWorkflow" - }, - { - "$ref": "#/components/schemas/CiProduct" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/ScmGitReference" + "$ref": "#/components/schemas/GameCenterLeaderboard" }, { - "$ref": "#/components/schemas/ScmGitReference" + "$ref": "#/components/schemas/GameCenterLeaderboardSet" }, { - "$ref": "#/components/schemas/ScmPullRequest" + "$ref": "#/components/schemas/GameCenterAchievement" } ] } @@ -89152,34 +109867,28 @@ "links" ] }, - "CiBuildRunResponse": { + "GameCenterGroupResponse": { "type": "object", - "title": "CiBuildRunResponse", + "title": "GameCenterGroupResponse", "properties": { "data": { - "$ref": "#/components/schemas/CiBuildRun" + "$ref": "#/components/schemas/GameCenterGroup" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/Build" - }, - { - "$ref": "#/components/schemas/CiWorkflow" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/CiProduct" - }, - { - "$ref": "#/components/schemas/ScmGitReference" + "$ref": "#/components/schemas/GameCenterLeaderboard" }, { - "$ref": "#/components/schemas/ScmGitReference" + "$ref": "#/components/schemas/GameCenterLeaderboardSet" }, { - "$ref": "#/components/schemas/ScmPullRequest" + "$ref": "#/components/schemas/GameCenterAchievement" } ] } @@ -89193,9 +109902,9 @@ "links" ] }, - "CiBuildRunCreateRequest": { + "GameCenterGroupCreateRequest": { "type": "object", - "title": "CiBuildRunCreateRequest", + "title": "GameCenterGroupCreateRequest", "properties": { "data": { "type": "object", @@ -89203,111 +109912,14 @@ "type": { "type": "string", "enum": [ - "ciBuildRuns" + "gameCenterGroups" ] }, "attributes": { "type": "object", "properties": { - "clean": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "buildRun": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciBuildRuns" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "workflow": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciWorkflows" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "sourceBranchOrTag": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmGitReferences" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "pullRequest": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmPullRequests" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } + "referenceName": { + "type": "string" } } } @@ -89321,98 +109933,49 @@ "data" ] }, - "CiIssue": { + "GameCenterGroupUpdateRequest": { "type": "object", - "title": "CiIssue", + "title": "GameCenterGroupUpdateRequest", "properties": { - "type": { - "type": "string", - "enum": [ - "ciIssues" - ] - }, - "id": { - "type": "string" - }, - "attributes": { + "data": { "type": "object", "properties": { - "issueType": { + "type": { "type": "string", "enum": [ - "ANALYZER_WARNING", - "ERROR", - "TEST_FAILURE", - "WARNING" + "gameCenterGroups" ] }, - "message": { + "id": { "type": "string" }, - "fileSource": { - "$ref": "#/components/schemas/FileLocation" - }, - "category": { - "type": "string" + "attributes": { + "type": "object", + "properties": { + "referenceName": { + "type": "string" + } + } } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "CiIssuesResponse": { - "type": "object", - "title": "CiIssuesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiIssue" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "CiIssueResponse": { - "type": "object", - "title": "CiIssueResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/CiIssue" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + }, + "required": [ + "id", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "CiMacOsVersion": { + "GameCenterLeaderboardImage": { "type": "object", - "title": "CiMacOsVersion", + "title": "GameCenterLeaderboardImage", "properties": { "type": { "type": "string", "enum": [ - "ciMacOsVersions" + "gameCenterLeaderboardImages" ] }, "id": { @@ -89421,18 +109984,30 @@ "attributes": { "type": "object", "properties": { - "version": { - "type": "string" + "fileSize": { + "type": "integer" }, - "name": { + "fileName": { "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" } } }, "relationships": { "type": "object", "properties": { - "xcodeVersions": { + "gameCenterLeaderboardLocalization": { "type": "object", "properties": { "links": { @@ -89448,29 +110023,23 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciXcodeVersions" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } } @@ -89481,32 +110050,25 @@ } }, "required": [ - "links", "id", "type" ] }, - "CiMacOsVersionsResponse": { + "GameCenterLeaderboardImageResponse": { "type": "object", - "title": "CiMacOsVersionsResponse", + "title": "GameCenterLeaderboardImageResponse", "properties": { "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiMacOsVersion" - } + "$ref": "#/components/schemas/GameCenterLeaderboardImage" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/CiXcodeVersion" + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" } }, "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ @@ -89514,36 +110076,123 @@ "links" ] }, - "CiMacOsVersionResponse": { + "GameCenterLeaderboardImageCreateRequest": { "type": "object", - "title": "CiMacOsVersionResponse", + "title": "GameCenterLeaderboardImageCreateRequest", "properties": { "data": { - "$ref": "#/components/schemas/CiMacOsVersion" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiXcodeVersion" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboardLocalization": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterLeaderboardLocalization" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "CiProduct": { + "GameCenterLeaderboardImageUpdateRequest": { "type": "object", - "title": "CiProduct", + "title": "GameCenterLeaderboardImageUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "uploaded": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardLocalization": { + "type": "object", + "title": "GameCenterLeaderboardLocalization", "properties": { "type": { "type": "string", "enum": [ - "ciProducts" + "gameCenterLeaderboardLocalizations" ] }, "id": { @@ -89552,26 +110201,27 @@ "attributes": { "type": "object", "properties": { + "locale": { + "type": "string" + }, "name": { "type": "string" }, - "createdDate": { - "type": "string", - "format": "date-time" + "formatterOverride": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" }, - "productType": { - "type": "string", - "enum": [ - "APP", - "FRAMEWORK" - ] + "formatterSuffix": { + "type": "string" + }, + "formatterSuffixSingular": { + "type": "string" } } }, "relationships": { "type": "object", "properties": { - "app": { + "gameCenterLeaderboard": { "type": "object", "properties": { "links": { @@ -89593,7 +110243,7 @@ "type": { "type": "string", "enum": [ - "apps" + "gameCenterLeaderboards" ] }, "id": { @@ -89607,7 +110257,7 @@ } } }, - "bundleId": { + "gameCenterLeaderboardImage": { "type": "object", "properties": { "links": { @@ -89629,7 +110279,7 @@ "type": { "type": "string", "enum": [ - "bundleIds" + "gameCenterLeaderboardImages" ] }, "id": { @@ -89642,48 +110292,6 @@ ] } } - }, - "primaryRepositories": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmRepositories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } } } }, @@ -89692,19 +110300,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "CiProductsResponse": { + "GameCenterLeaderboardLocalizationsResponse": { "type": "object", - "title": "CiProductsResponse", + "title": "GameCenterLeaderboardLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/CiProduct" + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" } }, "included": { @@ -89712,13 +110319,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/BundleId" + "$ref": "#/components/schemas/GameCenterLeaderboard" }, { - "$ref": "#/components/schemas/ScmRepository" + "$ref": "#/components/schemas/GameCenterLeaderboardImage" } ] } @@ -89735,25 +110339,22 @@ "links" ] }, - "CiProductResponse": { + "GameCenterLeaderboardLocalizationResponse": { "type": "object", - "title": "CiProductResponse", + "title": "GameCenterLeaderboardLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/CiProduct" + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" - }, - { - "$ref": "#/components/schemas/BundleId" + "$ref": "#/components/schemas/GameCenterLeaderboard" }, { - "$ref": "#/components/schemas/ScmRepository" + "$ref": "#/components/schemas/GameCenterLeaderboardImage" } ] } @@ -89767,118 +110368,141 @@ "links" ] }, - "CiTestResult": { + "GameCenterLeaderboardLocalizationCreateRequest": { "type": "object", - "title": "CiTestResult", + "title": "GameCenterLeaderboardLocalizationCreateRequest", "properties": { - "type": { - "type": "string", - "enum": [ - "ciTestResults" - ] - }, - "id": { - "type": "string" - }, - "attributes": { + "data": { "type": "object", "properties": { - "className": { - "type": "string" - }, - "name": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/CiTestStatus" - }, - "fileSource": { - "$ref": "#/components/schemas/FileLocation" + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] }, - "message": { - "type": "string" + "attributes": { + "type": "object", + "properties": { + "locale": { + "type": "string" + }, + "name": { + "type": "string" + }, + "formatterOverride": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string" + }, + "formatterSuffixSingular": { + "type": "string" + } + }, + "required": [ + "name", + "locale" + ] }, - "destinationTestResults": { - "type": "array", - "items": { - "type": "object", - "properties": { - "uuid": { - "type": "string" - }, - "deviceName": { - "type": "string" - }, - "osVersion": { - "type": "string" - }, - "status": { - "$ref": "#/components/schemas/CiTestStatus" + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } }, - "duration": { - "type": "number" - } + "required": [ + "data" + ] } - } + }, + "required": [ + "gameCenterLeaderboard" + ] } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "CiTestResultsResponse": { - "type": "object", - "title": "CiTestResultsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiTestResult" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + }, + "required": [ + "relationships", + "attributes", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "CiTestResultResponse": { + "GameCenterLeaderboardLocalizationUpdateRequest": { "type": "object", - "title": "CiTestResultResponse", + "title": "GameCenterLeaderboardLocalizationUpdateRequest", "properties": { "data": { - "$ref": "#/components/schemas/CiTestResult" - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "formatterOverride": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "formatterSuffix": { + "type": "string" + }, + "formatterSuffixSingular": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "CiWorkflow": { + "GameCenterLeaderboardRelease": { "type": "object", - "title": "CiWorkflow", + "title": "GameCenterLeaderboardRelease", "properties": { "type": { "type": "string", "enum": [ - "ciWorkflows" + "gameCenterLeaderboardReleases" ] }, "id": { @@ -89887,124 +110511,15 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "branchStartCondition": { - "$ref": "#/components/schemas/CiBranchStartCondition" - }, - "tagStartCondition": { - "$ref": "#/components/schemas/CiTagStartCondition" - }, - "pullRequestStartCondition": { - "$ref": "#/components/schemas/CiPullRequestStartCondition" - }, - "scheduledStartCondition": { - "$ref": "#/components/schemas/CiScheduledStartCondition" - }, - "actions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiAction" - } - }, - "isEnabled": { - "type": "boolean" - }, - "isLockedForEditing": { + "live": { "type": "boolean" - }, - "clean": { - "type": "boolean" - }, - "containerFilePath": { - "type": "string" - }, - "lastModifiedDate": { - "type": "string", - "format": "date-time" } } }, "relationships": { "type": "object", "properties": { - "product": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciProducts" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "repository": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "scmRepositories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "xcodeVersion": { + "gameCenterDetail": { "type": "object", "properties": { "links": { @@ -90026,7 +110541,7 @@ "type": { "type": "string", "enum": [ - "ciXcodeVersions" + "gameCenterDetails" ] }, "id": { @@ -90040,7 +110555,7 @@ } } }, - "macOsVersion": { + "gameCenterLeaderboard": { "type": "object", "properties": { "links": { @@ -90062,7 +110577,7 @@ "type": { "type": "string", "enum": [ - "ciMacOsVersions" + "gameCenterLeaderboards" ] }, "id": { @@ -90083,36 +110598,29 @@ } }, "required": [ - "links", "id", "type" ] }, - "CiWorkflowsResponse": { + "GameCenterLeaderboardReleasesResponse": { "type": "object", - "title": "CiWorkflowsResponse", + "title": "GameCenterLeaderboardReleasesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/CiWorkflow" + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/CiProduct" - }, - { - "$ref": "#/components/schemas/ScmRepository" - }, + }, + "included": { + "type": "array", + "items": { + "oneOf": [ { - "$ref": "#/components/schemas/CiXcodeVersion" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/CiMacOsVersion" + "$ref": "#/components/schemas/GameCenterLeaderboard" } ] } @@ -90129,28 +110637,22 @@ "links" ] }, - "CiWorkflowResponse": { + "GameCenterLeaderboardReleaseResponse": { "type": "object", - "title": "CiWorkflowResponse", + "title": "GameCenterLeaderboardReleaseResponse", "properties": { "data": { - "$ref": "#/components/schemas/CiWorkflow" + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/CiProduct" - }, - { - "$ref": "#/components/schemas/ScmRepository" - }, - { - "$ref": "#/components/schemas/CiXcodeVersion" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/CiMacOsVersion" + "$ref": "#/components/schemas/GameCenterLeaderboard" } ] } @@ -90164,9 +110666,9 @@ "links" ] }, - "CiWorkflowCreateRequest": { + "GameCenterLeaderboardReleaseCreateRequest": { "type": "object", - "title": "CiWorkflowCreateRequest", + "title": "GameCenterLeaderboardReleaseCreateRequest", "properties": { "data": { "type": "object", @@ -90174,62 +110676,13 @@ "type": { "type": "string", "enum": [ - "ciWorkflows" - ] - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "branchStartCondition": { - "$ref": "#/components/schemas/CiBranchStartCondition" - }, - "tagStartCondition": { - "$ref": "#/components/schemas/CiTagStartCondition" - }, - "pullRequestStartCondition": { - "$ref": "#/components/schemas/CiPullRequestStartCondition" - }, - "scheduledStartCondition": { - "$ref": "#/components/schemas/CiScheduledStartCondition" - }, - "actions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiAction" - } - }, - "isEnabled": { - "type": "boolean" - }, - "isLockedForEditing": { - "type": "boolean" - }, - "clean": { - "type": "boolean" - }, - "containerFilePath": { - "type": "string" - } - }, - "required": [ - "containerFilePath", - "isEnabled", - "name", - "description", - "clean", - "actions" + "gameCenterLeaderboardReleases" ] }, "relationships": { "type": "object", "properties": { - "product": { + "gameCenterDetail": { "type": "object", "properties": { "data": { @@ -90238,7 +110691,7 @@ "type": { "type": "string", "enum": [ - "ciProducts" + "gameCenterDetails" ] }, "id": { @@ -90255,7 +110708,7 @@ "data" ] }, - "repository": { + "gameCenterLeaderboard": { "type": "object", "properties": { "data": { @@ -90264,7 +110717,7 @@ "type": { "type": "string", "enum": [ - "scmRepositories" + "gameCenterLeaderboards" ] }, "id": { @@ -90280,34 +110733,164 @@ "required": [ "data" ] + } + }, + "required": [ + "gameCenterDetail", + "gameCenterLeaderboard" + ] + } + }, + "required": [ + "relationships", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetImage": { + "type": "object", + "title": "GameCenterLeaderboardSetImage", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" + }, + "fileName": { + "type": "string" + }, + "imageAsset": { + "$ref": "#/components/schemas/ImageAsset" + }, + "uploadOperations": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UploadOperation" + } + }, + "assetDeliveryState": { + "$ref": "#/components/schemas/AppMediaAssetState" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboardSetLocalization": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } }, - "xcodeVersion": { + "data": { "type": "object", "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciXcodeVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" ] + }, + "id": { + "type": "string" } }, "required": [ - "data" + "id", + "type" ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetImageResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetImageResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImage" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetImageCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetImageCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetImages" + ] + }, + "attributes": { + "type": "object", + "properties": { + "fileSize": { + "type": "integer" }, - "macOsVersion": { + "fileName": { + "type": "string" + } + }, + "required": [ + "fileName", + "fileSize" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboardSetLocalization": { "type": "object", "properties": { "data": { @@ -90316,7 +110899,7 @@ "type": { "type": "string", "enum": [ - "ciMacOsVersions" + "gameCenterLeaderboardSetLocalizations" ] }, "id": { @@ -90335,10 +110918,7 @@ } }, "required": [ - "macOsVersion", - "product", - "repository", - "xcodeVersion" + "gameCenterLeaderboardSetLocalization" ] } }, @@ -90353,9 +110933,9 @@ "data" ] }, - "CiWorkflowUpdateRequest": { + "GameCenterLeaderboardSetImageUpdateRequest": { "type": "object", - "title": "CiWorkflowUpdateRequest", + "title": "GameCenterLeaderboardSetImageUpdateRequest", "properties": { "data": { "type": "object", @@ -90363,7 +110943,7 @@ "type": { "type": "string", "enum": [ - "ciWorkflows" + "gameCenterLeaderboardSetImages" ] }, "id": { @@ -90372,92 +110952,8 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "branchStartCondition": { - "$ref": "#/components/schemas/CiBranchStartCondition" - }, - "tagStartCondition": { - "$ref": "#/components/schemas/CiTagStartCondition" - }, - "pullRequestStartCondition": { - "$ref": "#/components/schemas/CiPullRequestStartCondition" - }, - "scheduledStartCondition": { - "$ref": "#/components/schemas/CiScheduledStartCondition" - }, - "actions": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiAction" - } - }, - "isEnabled": { - "type": "boolean" - }, - "isLockedForEditing": { - "type": "boolean" - }, - "clean": { + "uploaded": { "type": "boolean" - }, - "containerFilePath": { - "type": "string" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "xcodeVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciXcodeVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "macOsVersion": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciMacOsVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } } } } @@ -90472,14 +110968,14 @@ "data" ] }, - "CiXcodeVersion": { + "GameCenterLeaderboardSetLocalization": { "type": "object", - "title": "CiXcodeVersion", + "title": "GameCenterLeaderboardSetLocalization", "properties": { "type": { "type": "string", "enum": [ - "ciXcodeVersions" + "gameCenterLeaderboardSetLocalizations" ] }, "id": { @@ -90488,49 +110984,18 @@ "attributes": { "type": "object", "properties": { - "version": { + "locale": { "type": "string" }, "name": { "type": "string" - }, - "testDestinations": { - "type": "array", - "items": { - "type": "object", - "properties": { - "deviceTypeName": { - "type": "string" - }, - "deviceTypeIdentifier": { - "type": "string" - }, - "availableRuntimes": { - "type": "array", - "items": { - "type": "object", - "properties": { - "runtimeName": { - "type": "string" - }, - "runtimeIdentifier": { - "type": "string" - } - } - } - }, - "kind": { - "$ref": "#/components/schemas/CiTestDestinationKind" - } - } - } } } }, "relationships": { "type": "object", "properties": { - "macOsVersions": { + "gameCenterLeaderboardSet": { "type": "object", "properties": { "links": { @@ -90546,130 +111011,27 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "ciMacOsVersions" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "CiXcodeVersionsResponse": { - "type": "object", - "title": "CiXcodeVersionsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiXcodeVersion" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiMacOsVersion" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "CiXcodeVersionResponse": { - "type": "object", - "title": "CiXcodeVersionResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/CiXcodeVersion" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/CiMacOsVersion" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "CustomerReviewResponseV1": { - "type": "object", - "title": "CustomerReviewResponseV1", - "properties": { - "type": { - "type": "string", - "enum": [ - "customerReviewResponses" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "responseBody": { - "type": "string" - }, - "lastModifiedDate": { - "type": "string", - "format": "date-time" }, - "state": { - "type": "string", - "enum": [ - "PUBLISHED", - "PENDING_PUBLISH" - ] - } - } - }, - "relationships": { - "type": "object", - "properties": { - "review": { + "gameCenterLeaderboardSetImage": { "type": "object", "properties": { "links": { @@ -90691,7 +111053,7 @@ "type": { "type": "string", "enum": [ - "customerReviews" + "gameCenterLeaderboardSetImages" ] }, "id": { @@ -90704,30 +111066,71 @@ ] } } - } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "GameCenterLeaderboardSetLocalizationsResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImage" + } + ] } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "CustomerReviewResponseV1Response": { + "GameCenterLeaderboardSetLocalizationResponse": { "type": "object", - "title": "CustomerReviewResponseV1Response", + "title": "GameCenterLeaderboardSetLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/CustomerReviewResponseV1" + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/CustomerReview" + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetImage" + } + ] } }, "links": { @@ -90739,9 +111142,9 @@ "links" ] }, - "CustomerReviewResponseV1CreateRequest": { + "GameCenterLeaderboardSetLocalizationCreateRequest": { "type": "object", - "title": "CustomerReviewResponseV1CreateRequest", + "title": "GameCenterLeaderboardSetLocalizationCreateRequest", "properties": { "data": { "type": "object", @@ -90749,24 +111152,28 @@ "type": { "type": "string", "enum": [ - "customerReviewResponses" + "gameCenterLeaderboardSetLocalizations" ] }, "attributes": { "type": "object", "properties": { - "responseBody": { + "locale": { + "type": "string" + }, + "name": { "type": "string" } }, "required": [ - "responseBody" + "name", + "locale" ] }, "relationships": { "type": "object", "properties": { - "review": { + "gameCenterLeaderboardSet": { "type": "object", "properties": { "data": { @@ -90775,7 +111182,7 @@ "type": { "type": "string", "enum": [ - "customerReviews" + "gameCenterLeaderboardSets" ] }, "id": { @@ -90794,7 +111201,7 @@ } }, "required": [ - "review" + "gameCenterLeaderboardSet" ] } }, @@ -90809,14 +111216,49 @@ "data" ] }, - "CustomerReview": { + "GameCenterLeaderboardSetLocalizationUpdateRequest": { "type": "object", - "title": "CustomerReview", + "title": "GameCenterLeaderboardSetLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardSetMemberLocalization": { + "type": "object", + "title": "GameCenterLeaderboardSetMemberLocalization", "properties": { "type": { "type": "string", "enum": [ - "customerReviews" + "gameCenterLeaderboardSetMemberLocalizations" ] }, "id": { @@ -90825,33 +111267,18 @@ "attributes": { "type": "object", "properties": { - "rating": { - "type": "integer", - "maximum": 5, - "minimum": 1 - }, - "title": { - "type": "string" - }, - "body": { + "name": { "type": "string" }, - "reviewerNickname": { + "locale": { "type": "string" - }, - "createdDate": { - "type": "string", - "format": "date-time" - }, - "territory": { - "$ref": "#/components/schemas/TerritoryCode" } } }, "relationships": { "type": "object", "properties": { - "response": { + "gameCenterLeaderboardSet": { "type": "object", "properties": { "links": { @@ -90873,7 +111300,43 @@ "type": { "type": "string", "enum": [ - "customerReviewResponses" + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" ] }, "id": { @@ -90894,25 +111357,31 @@ } }, "required": [ - "links", "id", "type" ] }, - "CustomerReviewsResponse": { + "GameCenterLeaderboardSetMemberLocalizationsResponse": { "type": "object", - "title": "CustomerReviewsResponse", + "title": "GameCenterLeaderboardSetMemberLocalizationsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/CustomerReview" + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalization" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/CustomerReviewResponseV1" + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ] } }, "links": { @@ -90927,119 +111396,26 @@ "links" ] }, - "CustomerReviewResponse": { + "GameCenterLeaderboardSetMemberLocalizationResponse": { "type": "object", - "title": "CustomerReviewResponse", + "title": "GameCenterLeaderboardSetMemberLocalizationResponse", "properties": { "data": { - "$ref": "#/components/schemas/CustomerReview" + "$ref": "#/components/schemas/GameCenterLeaderboardSetMemberLocalization" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/CustomerReviewResponseV1" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "Device": { - "type": "object", - "title": "Device", - "properties": { - "type": { - "type": "string", - "enum": [ - "devices" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "platform": { - "$ref": "#/components/schemas/BundleIdPlatform" - }, - "udid": { - "type": "string" - }, - "deviceClass": { - "type": "string", - "enum": [ - "APPLE_WATCH", - "IPAD", - "IPHONE", - "IPOD", - "APPLE_TV", - "MAC" - ] - }, - "status": { - "type": "string", - "enum": [ - "ENABLED", - "DISABLED" - ] - }, - "model": { - "type": "string" - }, - "addedDate": { - "type": "string", - "format": "date-time" - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "DevicesResponse": { - "type": "object", - "title": "DevicesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Device" + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + } + ] } }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "DeviceResponse": { - "type": "object", - "title": "DeviceResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/Device" - }, "links": { "$ref": "#/components/schemas/DocumentLinks" } @@ -91049,9 +111425,9 @@ "links" ] }, - "DeviceCreateRequest": { + "GameCenterLeaderboardSetMemberLocalizationCreateRequest": { "type": "object", - "title": "DeviceCreateRequest", + "title": "GameCenterLeaderboardSetMemberLocalizationCreateRequest", "properties": { "data": { "type": "object", @@ -91059,7 +111435,7 @@ "type": { "type": "string", "enum": [ - "devices" + "gameCenterLeaderboardSetMemberLocalizations" ] }, "attributes": { @@ -91068,22 +111444,75 @@ "name": { "type": "string" }, - "platform": { - "$ref": "#/components/schemas/BundleIdPlatform" - }, - "udid": { + "locale": { "type": "string" } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterLeaderboardSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "gameCenterLeaderboard": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } }, "required": [ - "name", - "udid", - "platform" + "gameCenterLeaderboard", + "gameCenterLeaderboardSet" ] } }, "required": [ - "attributes", + "relationships", "type" ] } @@ -91092,9 +111521,9 @@ "data" ] }, - "DeviceUpdateRequest": { + "GameCenterLeaderboardSetMemberLocalizationUpdateRequest": { "type": "object", - "title": "DeviceUpdateRequest", + "title": "GameCenterLeaderboardSetMemberLocalizationUpdateRequest", "properties": { "data": { "type": "object", @@ -91102,7 +111531,7 @@ "type": { "type": "string", "enum": [ - "devices" + "gameCenterLeaderboardSetMemberLocalizations" ] }, "id": { @@ -91113,13 +111542,6 @@ "properties": { "name": { "type": "string" - }, - "status": { - "type": "string", - "enum": [ - "ENABLED", - "DISABLED" - ] } } } @@ -91134,100 +111556,270 @@ "data" ] }, - "DiagnosticLog": { + "GameCenterLeaderboardSetRelease": { "type": "object", - "title": "DiagnosticLog", + "title": "GameCenterLeaderboardSetRelease", "properties": { "type": { "type": "string", "enum": [ - "diagnosticLogs" + "gameCenterLeaderboardSetReleases" ] }, "id": { "type": "string" }, + "attributes": { + "type": "object", + "properties": { + "live": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardSet": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, "links": { "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "DiagnosticSignature": { + "GameCenterLeaderboardSetReleasesResponse": { "type": "object", - "title": "DiagnosticSignature", + "title": "GameCenterLeaderboardSetReleasesResponse", "properties": { - "type": { - "type": "string", - "enum": [ - "diagnosticSignatures" - ] + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + } }, - "id": { - "type": "string" + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + ] + } }, - "attributes": { + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetReleaseResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetReleaseResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetReleaseCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardSetReleaseCreateRequest", + "properties": { + "data": { "type": "object", "properties": { - "diagnosticType": { + "type": { "type": "string", "enum": [ - "DISK_WRITES", - "HANGS" + "gameCenterLeaderboardSetReleases" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "gameCenterLeaderboardSet": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "gameCenterDetail", + "gameCenterLeaderboardSet" ] - }, - "signature": { - "type": "string" - }, - "weight": { - "type": "number" } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "DiagnosticSignaturesResponse": { - "type": "object", - "title": "DiagnosticSignaturesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/DiagnosticSignature" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + }, + "required": [ + "relationships", + "type" + ] } }, "required": [ - "data", - "links" + "data" ] }, - "EndUserLicenseAgreement": { + "GameCenterLeaderboardSet": { "type": "object", - "title": "EndUserLicenseAgreement", + "title": "GameCenterLeaderboardSet", "properties": { "type": { "type": "string", "enum": [ - "endUserLicenseAgreements" + "gameCenterLeaderboardSets" ] }, "id": { @@ -91236,7 +111828,10 @@ "attributes": { "type": "object", "properties": { - "agreementText": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { "type": "string" } } @@ -91244,7 +111839,7 @@ "relationships": { "type": "object", "properties": { - "app": { + "gameCenterDetail": { "type": "object", "properties": { "links": { @@ -91266,7 +111861,7 @@ "type": { "type": "string", "enum": [ - "apps" + "gameCenterDetails" ] }, "id": { @@ -91280,7 +111875,79 @@ } } }, - "territories": { + "gameCenterGroup": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "groupLeaderboardSet": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "localizations": { "type": "object", "properties": { "links": { @@ -91307,7 +111974,91 @@ "type": { "type": "string", "enum": [ - "territories" + "gameCenterLeaderboardSetLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "gameCenterLeaderboards": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "releases": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSetReleases" ] }, "id": { @@ -91329,27 +112080,85 @@ } }, "required": [ - "links", "id", "type" ] }, - "EndUserLicenseAgreementResponse": { + "GameCenterLeaderboardSetsResponse": { "type": "object", - "title": "EndUserLicenseAgreementResponse", + "title": "GameCenterLeaderboardSetsResponse", "properties": { "data": { - "$ref": "#/components/schemas/EndUserLicenseAgreement" + "type": "array", + "items": { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + } }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/Territory" + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetResponse": { + "type": "object", + "title": "GameCenterLeaderboardSetResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSetRelease" } ] } @@ -91363,9 +112172,9 @@ "links" ] }, - "EndUserLicenseAgreementCreateRequest": { + "GameCenterLeaderboardSetCreateRequest": { "type": "object", - "title": "EndUserLicenseAgreementCreateRequest", + "title": "GameCenterLeaderboardSetCreateRequest", "properties": { "data": { "type": "object", @@ -91373,50 +112182,28 @@ "type": { "type": "string", "enum": [ - "endUserLicenseAgreements" + "gameCenterLeaderboardSets" ] }, "attributes": { "type": "object", "properties": { - "agreementText": { + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { "type": "string" } }, "required": [ - "agreementText" + "vendorIdentifier", + "referenceName" ] }, "relationships": { "type": "object", "properties": { - "app": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "territories": { + "gameCenterLeaderboards": { "type": "object", "properties": { "data": { @@ -91427,7 +112214,7 @@ "type": { "type": "string", "enum": [ - "territories" + "gameCenterLeaderboards" ] }, "id": { @@ -91447,8 +112234,7 @@ } }, "required": [ - "app", - "territories" + "gameCenterLeaderboards" ] } }, @@ -91463,9 +112249,9 @@ "data" ] }, - "EndUserLicenseAgreementUpdateRequest": { + "GameCenterLeaderboardSetUpdateRequest": { "type": "object", - "title": "EndUserLicenseAgreementUpdateRequest", + "title": "GameCenterLeaderboardSetUpdateRequest", "properties": { "data": { "type": "object", @@ -91473,7 +112259,7 @@ "type": { "type": "string", "enum": [ - "endUserLicenseAgreements" + "gameCenterLeaderboardSets" ] }, "id": { @@ -91482,41 +112268,10 @@ "attributes": { "type": "object", "properties": { - "agreementText": { + "referenceName": { "type": "string" } } - }, - "relationships": { - "type": "object", - "properties": { - "territories": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - } } }, "required": [ @@ -91529,14 +112284,14 @@ "data" ] }, - "GameCenterEnabledVersion": { + "GameCenterLeaderboard": { "type": "object", - "title": "GameCenterEnabledVersion", + "title": "GameCenterLeaderboard", "properties": { "type": { "type": "string", "enum": [ - "gameCenterEnabledVersions" + "gameCenterLeaderboards" ] }, "id": { @@ -91545,21 +112300,207 @@ "attributes": { "type": "object", "properties": { - "platform": { - "$ref": "#/components/schemas/Platform" + "defaultFormatter": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" }, - "versionString": { + "referenceName": { "type": "string" }, - "iconAsset": { - "$ref": "#/components/schemas/ImageAsset" + "vendorIdentifier": { + "type": "string" + }, + "submissionType": { + "type": "string", + "enum": [ + "BEST_SCORE", + "MOST_RECENT_SCORE" + ] + }, + "scoreSortType": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "scoreRangeStart": { + "type": "string", + "format": "number" + }, + "scoreRangeEnd": { + "type": "string", + "format": "number" + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time" + }, + "recurrenceDuration": { + "type": "string", + "format": "duration" + }, + "recurrenceRule": { + "type": "string" + }, + "archived": { + "type": "boolean" } } }, "relationships": { "type": "object", "properties": { - "compatibleVersions": { + "gameCenterDetail": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterGroup": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "groupLeaderboard": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardSets": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "localizations": { "type": "object", "properties": { "links": { @@ -91586,7 +112527,7 @@ "type": { "type": "string", "enum": [ - "gameCenterEnabledVersions" + "gameCenterLeaderboardLocalizations" ] }, "id": { @@ -91601,7 +112542,7 @@ } } }, - "app": { + "releases": { "type": "object", "properties": { "links": { @@ -91617,23 +112558,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardReleases" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -91644,19 +112591,18 @@ } }, "required": [ - "links", "id", "type" ] }, - "GameCenterEnabledVersionsResponse": { + "GameCenterLeaderboardsResponse": { "type": "object", - "title": "GameCenterEnabledVersionsResponse", + "title": "GameCenterLeaderboardsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/GameCenterEnabledVersion" + "$ref": "#/components/schemas/GameCenterLeaderboard" } }, "included": { @@ -91664,10 +112610,22 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/GameCenterEnabledVersion" + "$ref": "#/components/schemas/GameCenterDetail" }, { - "$ref": "#/components/schemas/App" + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" } ] } @@ -91684,6 +112642,276 @@ "links" ] }, + "GameCenterLeaderboardResponse": { + "type": "object", + "title": "GameCenterLeaderboardResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/GameCenterDetail" + }, + { + "$ref": "#/components/schemas/GameCenterGroup" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboard" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardSet" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardLocalization" + }, + { + "$ref": "#/components/schemas/GameCenterLeaderboardRelease" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardCreateRequest": { + "type": "object", + "title": "GameCenterLeaderboardCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "attributes": { + "type": "object", + "properties": { + "defaultFormatter": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "referenceName": { + "type": "string" + }, + "vendorIdentifier": { + "type": "string" + }, + "submissionType": { + "type": "string", + "enum": [ + "BEST_SCORE", + "MOST_RECENT_SCORE" + ] + }, + "scoreSortType": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "scoreRangeStart": { + "type": "string", + "format": "number" + }, + "scoreRangeEnd": { + "type": "string", + "format": "number" + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time" + }, + "recurrenceDuration": { + "type": "string", + "format": "duration" + }, + "recurrenceRule": { + "type": "string" + } + }, + "required": [ + "vendorIdentifier", + "submissionType", + "defaultFormatter", + "scoreSortType", + "referenceName" + ] + }, + "relationships": { + "type": "object", + "properties": { + "gameCenterDetail": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterDetails" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterGroup": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "gameCenterLeaderboardSets": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardUpdateRequest": { + "type": "object", + "title": "GameCenterLeaderboardUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "defaultFormatter": { + "$ref": "#/components/schemas/GameCenterLeaderboardFormatter" + }, + "referenceName": { + "type": "string" + }, + "submissionType": { + "type": "string", + "enum": [ + "BEST_SCORE", + "MOST_RECENT_SCORE" + ] + }, + "scoreSortType": { + "type": "string", + "enum": [ + "ASC", + "DESC" + ] + }, + "scoreRangeStart": { + "type": "string", + "format": "number" + }, + "scoreRangeEnd": { + "type": "string", + "format": "number" + }, + "recurrenceStartDate": { + "type": "string", + "format": "date-time" + }, + "recurrenceDuration": { + "type": "string", + "format": "duration" + }, + "recurrenceRule": { + "type": "string" + }, + "archived": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, "InAppPurchaseAppStoreReviewScreenshot": { "type": "object", "title": "InAppPurchaseAppStoreReviewScreenshot", @@ -91775,7 +113003,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -91987,7 +113214,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -92192,7 +113418,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -92280,251 +113505,7 @@ "type": { "type": "string", "enum": [ - "inAppPurchases" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "InAppPurchaseLocalizationsResponse": { - "type": "object", - "title": "InAppPurchaseLocalizationsResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InAppPurchaseLocalization" - } - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InAppPurchaseV2" - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "InAppPurchaseLocalizationResponse": { - "type": "object", - "title": "InAppPurchaseLocalizationResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/InAppPurchaseLocalization" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/InAppPurchaseV2" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "InAppPurchaseLocalizationCreateRequest": { - "type": "object", - "title": "InAppPurchaseLocalizationCreateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "inAppPurchaseLocalizations" - ] - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "locale": { - "type": "string" - }, - "description": { - "type": "string" - } - }, - "required": [ - "name", - "locale" - ] - }, - "relationships": { - "type": "object", - "properties": { - "inAppPurchaseV2": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "inAppPurchases" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "inAppPurchaseV2" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "InAppPurchaseLocalizationUpdateRequest": { - "type": "object", - "title": "InAppPurchaseLocalizationUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "inAppPurchaseLocalizations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - } - } - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "InAppPurchasePricePoint": { - "type": "object", - "title": "InAppPurchasePricePoint", - "properties": { - "type": { - "type": "string", - "enum": [ - "inAppPurchasePricePoints" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "customerPrice": { - "type": "string" - }, - "proceeds": { - "type": "string" - }, - "priceTier": { - "type": "string", - "deprecated": true - } - } - }, - "relationships": { - "type": "object", - "properties": { - "territory": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" + "inAppPurchases" ] }, "id": { @@ -92545,7 +113526,246 @@ } }, "required": [ - "links", + "id", + "type" + ] + }, + "InAppPurchaseLocalizationsResponse": { + "type": "object", + "title": "InAppPurchaseLocalizationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseLocalization" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseLocalizationResponse": { + "type": "object", + "title": "InAppPurchaseLocalizationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/InAppPurchaseLocalization" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/InAppPurchaseV2" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "InAppPurchaseLocalizationCreateRequest": { + "type": "object", + "title": "InAppPurchaseLocalizationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "locale": { + "type": "string" + }, + "description": { + "type": "string" + } + }, + "required": [ + "name", + "locale" + ] + }, + "relationships": { + "type": "object", + "properties": { + "inAppPurchaseV2": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "inAppPurchaseV2" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchaseLocalizationUpdateRequest": { + "type": "object", + "title": "InAppPurchaseLocalizationUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchaseLocalizations" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "description": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "InAppPurchasePricePoint": { + "type": "object", + "title": "InAppPurchasePricePoint", + "properties": { + "type": { + "type": "string", + "enum": [ + "inAppPurchasePricePoints" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "customerPrice": { + "type": "string" + }, + "proceeds": { + "type": "string" + }, + "priceTier": { + "type": "string", + "deprecated": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ "id", "type" ] @@ -92757,7 +113977,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -92779,9 +113998,6 @@ { "$ref": "#/components/schemas/Territory" }, - { - "$ref": "#/components/schemas/InAppPurchasePrice" - }, { "$ref": "#/components/schemas/InAppPurchasePrice" } @@ -93026,13 +114242,9 @@ } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] @@ -93206,13 +114418,9 @@ } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] @@ -93407,10 +114615,10 @@ } }, "required": [ - "links", "id", "type" - ] + ], + "deprecated": true }, "InAppPurchasesResponse": { "type": "object", @@ -93438,7 +114646,8 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, "InAppPurchaseResponse": { "type": "object", @@ -93460,7 +114669,8 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, "InAppPurchaseV2": { "type": "object", @@ -93500,7 +114710,8 @@ "type": "boolean" }, "availableInAllTerritories": { - "type": "boolean" + "type": "boolean", + "deprecated": true } } }, @@ -93778,7 +114989,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -93909,7 +115119,8 @@ "type": "boolean" }, "availableInAllTerritories": { - "type": "boolean" + "type": "boolean", + "deprecated": true } }, "required": [ @@ -93993,7 +115204,8 @@ "type": "boolean" }, "availableInAllTerritories": { - "type": "boolean" + "type": "boolean", + "deprecated": true } } } @@ -94046,20 +115258,16 @@ "type": "string" } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "PreReleaseVersion": { + "PrereleaseVersion": { "type": "object", - "title": "PreReleaseVersion", + "title": "PrereleaseVersion", "properties": { "type": { "type": "string", @@ -94169,7 +115377,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -94181,7 +115388,7 @@ "data": { "type": "array", "items": { - "$ref": "#/components/schemas/PreReleaseVersion" + "$ref": "#/components/schemas/PrereleaseVersion" } }, "included": { @@ -94209,12 +115416,12 @@ "links" ] }, - "PreReleaseVersionResponse": { + "PrereleaseVersionResponse": { "type": "object", - "title": "PreReleaseVersionResponse", + "title": "PrereleaseVersionResponse", "properties": { "data": { - "$ref": "#/components/schemas/PreReleaseVersion" + "$ref": "#/components/schemas/PrereleaseVersion" }, "included": { "type": "array", @@ -94432,7 +115639,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -94753,7 +115959,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -95077,7 +116282,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -95527,7 +116731,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -96058,7 +117261,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -96086,9 +117288,6 @@ { "$ref": "#/components/schemas/AppStoreVersion" }, - { - "$ref": "#/components/schemas/Actor" - }, { "$ref": "#/components/schemas/Actor" } @@ -96127,9 +117326,6 @@ { "$ref": "#/components/schemas/AppStoreVersion" }, - { - "$ref": "#/components/schemas/Actor" - }, { "$ref": "#/components/schemas/Actor" } @@ -96335,7 +117531,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -96525,7 +117720,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -96628,13 +117822,9 @@ }, "id": { "type": "string" - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] @@ -96792,7 +117982,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -96877,7 +118066,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -97018,7 +118206,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -97191,7 +118378,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -97351,7 +118537,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -97599,7 +118784,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -97772,7 +118956,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -97923,7 +119106,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -98105,13 +119287,9 @@ }, "id": { "type": "string" - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] @@ -98305,7 +119483,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -98632,7 +119809,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -99082,7 +120258,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -99333,7 +120508,6 @@ } }, "required": [ - "links", "id", "type" ] @@ -99513,13 +120687,9 @@ }, "id": { "type": "string" - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] @@ -99547,19 +120717,551 @@ "type": "string", "format": "date-time" }, - "expirationDate": { - "type": "string", - "format": "date" + "expirationDate": { + "type": "string", + "format": "date" + }, + "active": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "offerCode": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodesResponse": { + "type": "object", + "title": "SubscriptionOfferCodeOneTimeUseCodesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCode" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodeResponse": { + "type": "object", + "title": "SubscriptionOfferCodeOneTimeUseCodeResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCode" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodeCreateRequest": { + "type": "object", + "title": "SubscriptionOfferCodeOneTimeUseCodeCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodes" + ] + }, + "attributes": { + "type": "object", + "properties": { + "numberOfCodes": { + "type": "integer" + }, + "expirationDate": { + "type": "string", + "format": "date" + } + }, + "required": [ + "numberOfCodes", + "expirationDate" + ] + }, + "relationships": { + "type": "object", + "properties": { + "offerCode": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "offerCode" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionOfferCodeOneTimeUseCodeUpdateRequest": { + "type": "object", + "title": "SubscriptionOfferCodeOneTimeUseCodeUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "active": { + "type": "boolean" + } + } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionOfferCodePrice": { + "type": "object", + "title": "SubscriptionOfferCodePrice", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodePrices" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionPricePoint": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionOfferCodePriceInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodePrices" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionPricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + }, + "required": [ + "type" + ] + }, + "SubscriptionOfferCodePricesResponse": { + "type": "object", + "title": "SubscriptionOfferCodePricesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + } + }, + "included": { + "type": "array", + "items": { + "oneOf": [ + { + "$ref": "#/components/schemas/Territory" + }, + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + } + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionOfferCode": { + "type": "object", + "title": "SubscriptionOfferCode", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "customerEligibilities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionCustomerEligibility" + } + }, + "offerEligibility": { + "$ref": "#/components/schemas/SubscriptionOfferEligibility" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" + }, + "totalNumberOfCodes": { + "type": "integer" + }, + "active": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "oneTimeUseCodes": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeOneTimeUseCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } }, - "active": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "offerCode": { + "customCodes": { "type": "object", "properties": { "links": { @@ -99575,23 +121277,71 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodeCustomCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "prices": { + "type": "object", + "properties": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "subscriptionOfferCodes" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } } @@ -99602,25 +121352,37 @@ } }, "required": [ - "links", "id", "type" ] }, - "SubscriptionOfferCodeOneTimeUseCodesResponse": { + "SubscriptionOfferCodesResponse": { "type": "object", - "title": "SubscriptionOfferCodeOneTimeUseCodesResponse", + "title": "SubscriptionOfferCodesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + "$ref": "#/components/schemas/SubscriptionOfferCode" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionOfferCode" + "oneOf": [ + { + "$ref": "#/components/schemas/Subscription" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + } + ] } }, "links": { @@ -99635,17 +121397,30 @@ "links" ] }, - "SubscriptionOfferCodeOneTimeUseCodeResponse": { + "SubscriptionOfferCodeResponse": { "type": "object", - "title": "SubscriptionOfferCodeOneTimeUseCodeResponse", + "title": "SubscriptionOfferCodeResponse", "properties": { "data": { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + "$ref": "#/components/schemas/SubscriptionOfferCode" }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionOfferCode" + "oneOf": [ + { + "$ref": "#/components/schemas/Subscription" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + } + ] } }, "links": { @@ -99657,9 +121432,9 @@ "links" ] }, - "SubscriptionOfferCodeOneTimeUseCodeCreateRequest": { + "SubscriptionOfferCodeCreateRequest": { "type": "object", - "title": "SubscriptionOfferCodeOneTimeUseCodeCreateRequest", + "title": "SubscriptionOfferCodeCreateRequest", "properties": { "data": { "type": "object", @@ -99667,29 +121442,47 @@ "type": { "type": "string", "enum": [ - "subscriptionOfferCodeOneTimeUseCodes" + "subscriptionOfferCodes" ] }, "attributes": { "type": "object", "properties": { - "numberOfCodes": { - "type": "integer" + "name": { + "type": "string" }, - "expirationDate": { - "type": "string", - "format": "date" + "customerEligibilities": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionCustomerEligibility" + } + }, + "offerEligibility": { + "$ref": "#/components/schemas/SubscriptionOfferEligibility" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" } }, "required": [ - "numberOfCodes", - "expirationDate" + "duration", + "offerEligibility", + "name", + "numberOfPeriods", + "offerMode", + "customerEligibilities" ] }, "relationships": { "type": "object", "properties": { - "offerCode": { + "subscription": { "type": "object", "properties": { "data": { @@ -99698,7 +121491,7 @@ "type": { "type": "string", "enum": [ - "subscriptionOfferCodes" + "subscriptions" ] }, "id": { @@ -99714,10 +121507,40 @@ "required": [ "data" ] + }, + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodePrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] } }, "required": [ - "offerCode" + "subscription", + "prices" ] } }, @@ -99726,15 +121549,21 @@ "attributes", "type" ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionOfferCodePriceInlineCreate" + } } }, "required": [ "data" ] }, - "SubscriptionOfferCodeOneTimeUseCodeUpdateRequest": { + "SubscriptionOfferCodeUpdateRequest": { "type": "object", - "title": "SubscriptionOfferCodeOneTimeUseCodeUpdateRequest", + "title": "SubscriptionOfferCodeUpdateRequest", "properties": { "data": { "type": "object", @@ -99742,7 +121571,7 @@ "type": { "type": "string", "enum": [ - "subscriptionOfferCodeOneTimeUseCodes" + "subscriptionOfferCodes" ] }, "id": { @@ -99767,19 +121596,33 @@ "data" ] }, - "SubscriptionOfferCodePrice": { + "SubscriptionPricePoint": { "type": "object", - "title": "SubscriptionOfferCodePrice", + "title": "SubscriptionPricePoint", "properties": { "type": { "type": "string", "enum": [ - "subscriptionOfferCodePrices" + "subscriptionPricePoints" ] }, "id": { "type": "string" }, + "attributes": { + "type": "object", + "properties": { + "customerPrice": { + "type": "string" + }, + "proceeds": { + "type": "string" + }, + "proceedsYear2": { + "type": "string" + } + } + }, "relationships": { "type": "object", "properties": { @@ -99818,42 +121661,6 @@ ] } } - }, - "subscriptionPricePoint": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPricePoints" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } } } }, @@ -99862,100 +121669,41 @@ } }, "required": [ - "links", "id", "type" ] }, - "SubscriptionOfferCodePriceInlineCreate": { + "SubscriptionPricePointInlineCreate": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "subscriptionOfferCodePrices" + "subscriptionPricePoints" ] }, "id": { "type": "string" - }, - "relationships": { - "type": "object", - "properties": { - "territory": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "subscriptionPricePoint": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPricePoints" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } } }, "required": [ "type" ] }, - "SubscriptionOfferCodePricesResponse": { + "SubscriptionPricePointsResponse": { "type": "object", - "title": "SubscriptionOfferCodePricesResponse", + "title": "SubscriptionPricePointsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + "$ref": "#/components/schemas/SubscriptionPricePoint" } }, "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Territory" - }, - { - "$ref": "#/components/schemas/SubscriptionPricePoint" - } - ] + "$ref": "#/components/schemas/Territory" } }, "links": { @@ -99970,14 +121718,36 @@ "links" ] }, - "SubscriptionOfferCode": { + "SubscriptionPricePointResponse": { "type": "object", - "title": "SubscriptionOfferCode", + "title": "SubscriptionPricePointResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionPricePoint" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionPrice": { + "type": "object", + "title": "SubscriptionPrice", "properties": { "type": { "type": "string", "enum": [ - "subscriptionOfferCodes" + "subscriptionPrices" ] }, "id": { @@ -99986,31 +121756,11 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "customerEligibilities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubscriptionCustomerEligibility" - } - }, - "offerEligibility": { - "$ref": "#/components/schemas/SubscriptionOfferEligibility" - }, - "duration": { - "$ref": "#/components/schemas/SubscriptionOfferDuration" - }, - "offerMode": { - "$ref": "#/components/schemas/SubscriptionOfferMode" - }, - "numberOfPeriods": { - "type": "integer" - }, - "totalNumberOfCodes": { - "type": "integer" + "startDate": { + "type": "string", + "format": "date" }, - "active": { + "preserved": { "type": "boolean" } } @@ -100018,7 +121768,7 @@ "relationships": { "type": "object", "properties": { - "subscription": { + "territory": { "type": "object", "properties": { "links": { @@ -100040,7 +121790,7 @@ "type": { "type": "string", "enum": [ - "subscriptions" + "territories" ] }, "id": { @@ -100054,7 +121804,7 @@ } } }, - "oneTimeUseCodes": { + "subscriptionPricePoint": { "type": "object", "properties": { "links": { @@ -100070,136 +121820,148 @@ } } }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionOfferCodeOneTimeUseCodes" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionPriceInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPrices" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "startDate": { + "type": "string", + "format": "date" + }, + "preserveCurrentPrice": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "subscription": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } } }, - "customCodes": { + "territory": { "type": "object", "properties": { - "links": { + "data": { "type": "object", "properties": { - "self": { + "type": { "type": "string", - "format": "uri-reference" + "enum": [ + "territories" + ] }, - "related": { - "type": "string", - "format": "uri-reference" + "id": { + "type": "string" } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionOfferCodeCustomCodes" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + }, + "required": [ + "id", + "type" + ] } } }, - "prices": { + "subscriptionPricePoint": { "type": "object", "properties": { - "links": { + "data": { "type": "object", "properties": { - "self": { + "type": { "type": "string", - "format": "uri-reference" + "enum": [ + "subscriptionPricePoints" + ] }, - "related": { - "type": "string", - "format": "uri-reference" + "id": { + "type": "string" } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionOfferCodePrices" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } + }, + "required": [ + "id", + "type" + ] } } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", - "id", "type" ] }, - "SubscriptionOfferCodesResponse": { + "SubscriptionPricesResponse": { "type": "object", - "title": "SubscriptionOfferCodesResponse", + "title": "SubscriptionPricesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionOfferCode" + "$ref": "#/components/schemas/SubscriptionPrice" } }, "included": { @@ -100207,16 +121969,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Subscription" - }, - { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" - }, - { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + "$ref": "#/components/schemas/Territory" }, { - "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + "$ref": "#/components/schemas/SubscriptionPricePoint" } ] } @@ -100233,28 +121989,22 @@ "links" ] }, - "SubscriptionOfferCodeResponse": { + "SubscriptionPriceResponse": { "type": "object", - "title": "SubscriptionOfferCodeResponse", + "title": "SubscriptionPriceResponse", "properties": { "data": { - "$ref": "#/components/schemas/SubscriptionOfferCode" + "$ref": "#/components/schemas/SubscriptionPrice" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/Subscription" - }, - { - "$ref": "#/components/schemas/SubscriptionOfferCodeOneTimeUseCode" - }, - { - "$ref": "#/components/schemas/SubscriptionOfferCodeCustomCode" + "$ref": "#/components/schemas/Territory" }, { - "$ref": "#/components/schemas/SubscriptionOfferCodePrice" + "$ref": "#/components/schemas/SubscriptionPricePoint" } ] } @@ -100268,9 +122018,9 @@ "links" ] }, - "SubscriptionOfferCodeCreateRequest": { + "SubscriptionPriceCreateRequest": { "type": "object", - "title": "SubscriptionOfferCodeCreateRequest", + "title": "SubscriptionPriceCreateRequest", "properties": { "data": { "type": "object", @@ -100278,42 +122028,20 @@ "type": { "type": "string", "enum": [ - "subscriptionOfferCodes" + "subscriptionPrices" ] }, "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "customerEligibilities": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubscriptionCustomerEligibility" - } - }, - "offerEligibility": { - "$ref": "#/components/schemas/SubscriptionOfferEligibility" - }, - "duration": { - "$ref": "#/components/schemas/SubscriptionOfferDuration" - }, - "offerMode": { - "$ref": "#/components/schemas/SubscriptionOfferMode" + "startDate": { + "type": "string", + "format": "date" }, - "numberOfPeriods": { - "type": "integer" + "preserveCurrentPrice": { + "type": "boolean" } - }, - "required": [ - "duration", - "offerEligibility", - "name", - "numberOfPeriods", - "offerMode", - "customerEligibilities" - ] + } }, "relationships": { "type": "object", @@ -100344,29 +122072,49 @@ "data" ] }, - "prices": { + "territory": { "type": "object", "properties": { "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionOfferCodePrices" - ] - }, - "id": { - "type": "string" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] }, - "required": [ - "id", - "type" - ] - } + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionPricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } }, "required": [ @@ -100376,54 +122124,12 @@ }, "required": [ "subscription", - "prices" + "subscriptionPricePoint" ] } }, "required": [ "relationships", - "attributes", - "type" - ] - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubscriptionOfferCodePriceInlineCreate" - } - } - }, - "required": [ - "data" - ] - }, - "SubscriptionOfferCodeUpdateRequest": { - "type": "object", - "title": "SubscriptionOfferCodeUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionOfferCodes" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "active": { - "type": "boolean" - } - } - } - }, - "required": [ - "id", "type" ] } @@ -100432,33 +122138,19 @@ "data" ] }, - "SubscriptionPricePoint": { + "SubscriptionPromotionalOfferPrice": { "type": "object", - "title": "SubscriptionPricePoint", + "title": "SubscriptionPromotionalOfferPrice", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPricePoints" + "subscriptionPromotionalOfferPrices" ] }, "id": { "type": "string" }, - "attributes": { - "type": "object", - "properties": { - "customerPrice": { - "type": "string" - }, - "proceeds": { - "type": "string" - }, - "proceedsYear2": { - "type": "string" - } - } - }, "relationships": { "type": "object", "properties": { @@ -100497,50 +122189,140 @@ ] } } + }, + "subscriptionPricePoint": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", "id", "type" ] }, - "SubscriptionPricePointInlineCreate": { + "SubscriptionPromotionalOfferPriceInlineCreate": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPricePoints" + "subscriptionPromotionalOfferPrices" ] }, "id": { "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "territory": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionPricePoint": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPricePoints" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } } }, "required": [ "type" ] }, - "SubscriptionPricePointsResponse": { + "SubscriptionPromotionalOfferPricesResponse": { "type": "object", - "title": "SubscriptionPricePointsResponse", + "title": "SubscriptionPromotionalOfferPricesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionPricePoint" + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/Territory" + "oneOf": [ + { + "$ref": "#/components/schemas/Territory" + }, + { + "$ref": "#/components/schemas/SubscriptionPricePoint" + } + ] } }, "links": { @@ -100555,36 +122337,14 @@ "links" ] }, - "SubscriptionPricePointResponse": { - "type": "object", - "title": "SubscriptionPricePointResponse", - "properties": { - "data": { - "$ref": "#/components/schemas/SubscriptionPricePoint" - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Territory" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "SubscriptionPrice": { + "SubscriptionPromotionalOffer": { "type": "object", - "title": "SubscriptionPrice", + "title": "SubscriptionPromotionalOffer", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPrices" + "subscriptionPromotionalOffers" ] }, "id": { @@ -100593,19 +122353,27 @@ "attributes": { "type": "object", "properties": { - "startDate": { - "type": "string", - "format": "date" + "name": { + "type": "string" }, - "preserved": { - "type": "boolean" + "offerCode": { + "type": "string" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" } } }, "relationships": { "type": "object", "properties": { - "territory": { + "subscription": { "type": "object", "properties": { "links": { @@ -100627,7 +122395,7 @@ "type": { "type": "string", "enum": [ - "territories" + "subscriptions" ] }, "id": { @@ -100641,7 +122409,7 @@ } } }, - "subscriptionPricePoint": { + "prices": { "type": "object", "properties": { "links": { @@ -100657,23 +122425,29 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPricePoints" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -100684,18 +122458,17 @@ } }, "required": [ - "links", "id", "type" ] }, - "SubscriptionPriceInlineCreate": { + "SubscriptionPromotionalOfferInlineCreate": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPrices" + "subscriptionPromotionalOffers" ] }, "id": { @@ -100704,14 +122477,29 @@ "attributes": { "type": "object", "properties": { - "startDate": { - "type": "string", - "format": "date" + "name": { + "type": "string" }, - "preserveCurrentPrice": { - "type": "boolean" + "offerCode": { + "type": "string" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" } - } + }, + "required": [ + "duration", + "offerCode", + "name", + "numberOfPeriods", + "offerMode" + ] }, "relationships": { "type": "object", @@ -100739,49 +122527,29 @@ } } }, - "territory": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "subscriptionPricePoint": { + "prices": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPricePoints" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } } @@ -100789,17 +122557,18 @@ } }, "required": [ + "attributes", "type" ] }, - "SubscriptionPricesResponse": { + "SubscriptionPromotionalOffersResponse": { "type": "object", - "title": "SubscriptionPricesResponse", + "title": "SubscriptionPromotionalOffersResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionPrice" + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" } }, "included": { @@ -100807,10 +122576,10 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Territory" + "$ref": "#/components/schemas/Subscription" }, { - "$ref": "#/components/schemas/SubscriptionPricePoint" + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" } ] } @@ -100827,22 +122596,22 @@ "links" ] }, - "SubscriptionPriceResponse": { + "SubscriptionPromotionalOfferResponse": { "type": "object", - "title": "SubscriptionPriceResponse", + "title": "SubscriptionPromotionalOfferResponse", "properties": { "data": { - "$ref": "#/components/schemas/SubscriptionPrice" + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/Territory" + "$ref": "#/components/schemas/Subscription" }, { - "$ref": "#/components/schemas/SubscriptionPricePoint" + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" } ] } @@ -100856,9 +122625,9 @@ "links" ] }, - "SubscriptionPriceCreateRequest": { + "SubscriptionPromotionalOfferCreateRequest": { "type": "object", - "title": "SubscriptionPriceCreateRequest", + "title": "SubscriptionPromotionalOfferCreateRequest", "properties": { "data": { "type": "object", @@ -100866,20 +122635,35 @@ "type": { "type": "string", "enum": [ - "subscriptionPrices" + "subscriptionPromotionalOffers" ] }, "attributes": { "type": "object", "properties": { - "startDate": { - "type": "string", - "format": "date" + "name": { + "type": "string" }, - "preserveCurrentPrice": { - "type": "boolean" + "offerCode": { + "type": "string" + }, + "duration": { + "$ref": "#/components/schemas/SubscriptionOfferDuration" + }, + "offerMode": { + "$ref": "#/components/schemas/SubscriptionOfferMode" + }, + "numberOfPeriods": { + "type": "integer" } - } + }, + "required": [ + "duration", + "offerCode", + "name", + "numberOfPeriods", + "offerMode" + ] }, "relationships": { "type": "object", @@ -100910,49 +122694,29 @@ "data" ] }, - "territory": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - }, - "subscriptionPricePoint": { + "prices": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPricePoints" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } }, "required": [ @@ -100962,28 +122726,99 @@ }, "required": [ "subscription", - "subscriptionPricePoint" + "prices" ] } }, "required": [ "relationships", + "attributes", "type" ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPriceInlineCreate" + } } }, "required": [ "data" ] }, - "SubscriptionPromotionalOfferPrice": { + "SubscriptionPromotionalOfferUpdateRequest": { "type": "object", - "title": "SubscriptionPromotionalOfferPrice", + "title": "SubscriptionPromotionalOfferUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOffers" + ] + }, + "id": { + "type": "string" + }, + "relationships": { + "type": "object", + "properties": { + "prices": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionPromotionalOfferPrices" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferPriceInlineCreate" + } + } + }, + "required": [ + "data" + ] + }, + "SubscriptionSubmission": { + "type": "object", + "title": "SubscriptionSubmission", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPromotionalOfferPrices" + "subscriptionSubmissions" ] }, "id": { @@ -100992,7 +122827,7 @@ "relationships": { "type": "object", "properties": { - "territory": { + "subscription": { "type": "object", "properties": { "links": { @@ -101014,7 +122849,7 @@ "type": { "type": "string", "enum": [ - "territories" + "subscriptions" ] }, "id": { @@ -101027,80 +122862,226 @@ ] } } + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "SubscriptionSubmissionResponse": { + "type": "object", + "title": "SubscriptionSubmissionResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/SubscriptionSubmission" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Subscription" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "SubscriptionSubmissionCreateRequest": { + "type": "object", + "title": "SubscriptionSubmissionCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionSubmissions" + ] }, - "subscriptionPricePoint": { + "relationships": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { + "subscription": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPricePoints" + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "id": { - "type": "string" } }, "required": [ - "id", - "type" + "data" ] } - } + }, + "required": [ + "subscription" + ] } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" + }, + "required": [ + "relationships", + "type" + ] } }, "required": [ - "links", - "id", - "type" + "data" ] }, - "SubscriptionPromotionalOfferPriceInlineCreate": { + "Subscription": { "type": "object", + "title": "Subscription", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPromotionalOfferPrices" + "subscriptions" ] }, "id": { "type": "string" }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "productId": { + "type": "string" + }, + "familySharable": { + "type": "boolean" + }, + "state": { + "type": "string", + "enum": [ + "MISSING_METADATA", + "READY_TO_SUBMIT", + "WAITING_FOR_REVIEW", + "IN_REVIEW", + "DEVELOPER_ACTION_NEEDED", + "PENDING_BINARY_APPROVAL", + "APPROVED", + "DEVELOPER_REMOVED_FROM_SALE", + "REMOVED_FROM_SALE", + "REJECTED" + ] + }, + "subscriptionPeriod": { + "type": "string", + "enum": [ + "ONE_WEEK", + "ONE_MONTH", + "TWO_MONTHS", + "THREE_MONTHS", + "SIX_MONTHS", + "ONE_YEAR" + ] + }, + "reviewNote": { + "type": "string" + }, + "groupLevel": { + "type": "integer" + }, + "availableInAllTerritories": { + "type": "boolean", + "deprecated": true + } + } + }, "relationships": { "type": "object", "properties": { - "territory": { + "subscriptionLocalizations": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionLocalizations" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + } + }, + "appStoreReviewScreenshot": { "type": "object", "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, "data": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "territories" + "subscriptionAppStoreReviewScreenshots" ] }, "id": { @@ -101114,16 +123095,29 @@ } } }, - "subscriptionPricePoint": { + "group": { "type": "object", "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, "data": { "type": "object", "properties": { "type": { "type": "string", "enum": [ - "subscriptionPricePoints" + "subscriptionGroups" ] }, "id": { @@ -101136,86 +123130,8 @@ ] } } - } - } - } - }, - "required": [ - "type" - ] - }, - "SubscriptionPromotionalOfferPricesResponse": { - "type": "object", - "title": "SubscriptionPromotionalOfferPricesResponse", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" - } - }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/Territory" - }, - { - "$ref": "#/components/schemas/SubscriptionPricePoint" - } - ] - } - }, - "links": { - "$ref": "#/components/schemas/PagedDocumentLinks" - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - } - }, - "required": [ - "data", - "links" - ] - }, - "SubscriptionPromotionalOffer": { - "type": "object", - "title": "SubscriptionPromotionalOffer", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPromotionalOffers" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "offerCode": { - "type": "string" - }, - "duration": { - "$ref": "#/components/schemas/SubscriptionOfferDuration" - }, - "offerMode": { - "$ref": "#/components/schemas/SubscriptionOfferMode" }, - "numberOfPeriods": { - "type": "integer" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "subscription": { + "introductoryOffers": { "type": "object", "properties": { "links": { @@ -101231,27 +123147,33 @@ } } }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptions" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } } }, - "prices": { + "promotionalOffers": { "type": "object", "properties": { "links": { @@ -101278,7 +123200,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPromotionalOfferPrices" + "subscriptionPromotionalOffers" ] }, "id": { @@ -101292,87 +123214,68 @@ } } } - } - } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" - } - }, - "required": [ - "links", - "id", - "type" - ] - }, - "SubscriptionPromotionalOfferInlineCreate": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPromotionalOffers" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "offerCode": { - "type": "string" - }, - "duration": { - "$ref": "#/components/schemas/SubscriptionOfferDuration" - }, - "offerMode": { - "$ref": "#/components/schemas/SubscriptionOfferMode" }, - "numberOfPeriods": { - "type": "integer" - } - }, - "required": [ - "duration", - "offerCode", - "name", - "numberOfPeriods", - "offerMode" - ] - }, - "relationships": { - "type": "object", - "properties": { - "subscription": { + "offerCodes": { "type": "object", "properties": { - "data": { + "links": { "type": "object", "properties": { - "type": { + "self": { "type": "string", - "enum": [ - "subscriptions" - ] + "format": "uri-reference" }, - "id": { - "type": "string" + "related": { + "type": "string", + "format": "uri-reference" } - }, - "required": [ - "id", - "type" - ] + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionOfferCodes" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } } }, "prices": { "type": "object", "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + }, "data": { "type": "array", "items": { @@ -101381,7 +123284,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPromotionalOfferPrices" + "subscriptionPrices" ] }, "id": { @@ -101395,23 +123298,98 @@ } } } + }, + "promotedPurchase": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "subscriptionAvailability": { + "type": "object", + "properties": { + "links": { + "type": "object", + "properties": { + "self": { + "type": "string", + "format": "uri-reference" + }, + "related": { + "type": "string", + "format": "uri-reference" + } + } + }, + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } } } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "attributes", + "id", "type" ] }, - "SubscriptionPromotionalOffersResponse": { + "SubscriptionsResponse": { "type": "object", - "title": "SubscriptionPromotionalOffersResponse", + "title": "SubscriptionsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + "$ref": "#/components/schemas/Subscription" } }, "included": { @@ -101419,10 +123397,31 @@ "items": { "oneOf": [ { - "$ref": "#/components/schemas/Subscription" + "$ref": "#/components/schemas/SubscriptionLocalization" }, { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCode" + }, + { + "$ref": "#/components/schemas/SubscriptionPrice" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionAvailability" } ] } @@ -101439,22 +123438,43 @@ "links" ] }, - "SubscriptionPromotionalOfferResponse": { + "SubscriptionResponse": { "type": "object", - "title": "SubscriptionPromotionalOfferResponse", + "title": "SubscriptionResponse", "properties": { "data": { - "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + "$ref": "#/components/schemas/Subscription" }, "included": { "type": "array", "items": { "oneOf": [ { - "$ref": "#/components/schemas/Subscription" + "$ref": "#/components/schemas/SubscriptionLocalization" }, { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferPrice" + "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" + }, + { + "$ref": "#/components/schemas/SubscriptionGroup" + }, + { + "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionPromotionalOffer" + }, + { + "$ref": "#/components/schemas/SubscriptionOfferCode" + }, + { + "$ref": "#/components/schemas/SubscriptionPrice" + }, + { + "$ref": "#/components/schemas/PromotedPurchase" + }, + { + "$ref": "#/components/schemas/SubscriptionAvailability" } ] } @@ -101468,9 +123488,9 @@ "links" ] }, - "SubscriptionPromotionalOfferCreateRequest": { + "SubscriptionCreateRequest": { "type": "object", - "title": "SubscriptionPromotionalOfferCreateRequest", + "title": "SubscriptionCreateRequest", "properties": { "data": { "type": "object", @@ -101478,7 +123498,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPromotionalOffers" + "subscriptions" ] }, "attributes": { @@ -101487,31 +123507,43 @@ "name": { "type": "string" }, - "offerCode": { + "productId": { "type": "string" }, - "duration": { - "$ref": "#/components/schemas/SubscriptionOfferDuration" + "familySharable": { + "type": "boolean" }, - "offerMode": { - "$ref": "#/components/schemas/SubscriptionOfferMode" + "subscriptionPeriod": { + "type": "string", + "enum": [ + "ONE_WEEK", + "ONE_MONTH", + "TWO_MONTHS", + "THREE_MONTHS", + "SIX_MONTHS", + "ONE_YEAR" + ] }, - "numberOfPeriods": { + "reviewNote": { + "type": "string" + }, + "groupLevel": { "type": "integer" + }, + "availableInAllTerritories": { + "type": "boolean", + "deprecated": true } }, "required": [ - "duration", - "offerCode", - "name", - "numberOfPeriods", - "offerMode" + "productId", + "name" ] }, "relationships": { "type": "object", "properties": { - "subscription": { + "group": { "type": "object", "properties": { "data": { @@ -101520,24 +123552,118 @@ "type": { "type": "string", "enum": [ - "subscriptions" + "subscriptionGroups" ] }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + } + }, + "required": [ + "group" + ] + } + }, + "required": [ + "relationships", + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "SubscriptionUpdateRequest": { + "type": "object", + "title": "SubscriptionUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptions" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "familySharable": { + "type": "boolean" + }, + "subscriptionPeriod": { + "type": "string", + "enum": [ + "ONE_WEEK", + "ONE_MONTH", + "TWO_MONTHS", + "THREE_MONTHS", + "SIX_MONTHS", + "ONE_YEAR" + ] + }, + "reviewNote": { + "type": "string" + }, + "groupLevel": { + "type": "integer" + }, + "availableInAllTerritories": { + "type": "boolean", + "deprecated": true + } + } + }, + "relationships": { + "type": "object", + "properties": { + "introductoryOffers": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "subscriptionIntroductoryOffers" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } - }, - "required": [ - "data" - ] + } }, - "prices": { + "promotionalOffers": { "type": "object", "properties": { "data": { @@ -101548,7 +123674,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPromotionalOfferPrices" + "subscriptionPromotionalOffers" ] }, "id": { @@ -101561,54 +123687,8 @@ ] } } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "subscription", - "prices" - ] - } - }, - "required": [ - "relationships", - "attributes", - "type" - ] - }, - "included": { - "type": "array", - "items": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferPriceInlineCreate" - } - } - }, - "required": [ - "data" - ] - }, - "SubscriptionPromotionalOfferUpdateRequest": { - "type": "object", - "title": "SubscriptionPromotionalOfferUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPromotionalOffers" - ] - }, - "id": { - "type": "string" - }, - "relationships": { - "type": "object", - "properties": { + } + }, "prices": { "type": "object", "properties": { @@ -101620,7 +123700,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPromotionalOfferPrices" + "subscriptionPrices" ] }, "id": { @@ -101646,7 +123726,17 @@ "included": { "type": "array", "items": { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferPriceInlineCreate" + "oneOf": [ + { + "$ref": "#/components/schemas/SubscriptionPromotionalOfferInlineCreate" + }, + { + "$ref": "#/components/schemas/SubscriptionPriceInlineCreate" + }, + { + "$ref": "#/components/schemas/SubscriptionIntroductoryOfferInlineCreate" + } + ] } } }, @@ -101654,23 +123744,165 @@ "data" ] }, - "SubscriptionSubmission": { + "Territory": { "type": "object", - "title": "SubscriptionSubmission", + "title": "Territory", "properties": { "type": { "type": "string", "enum": [ - "subscriptionSubmissions" + "territories" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "currency": { + "type": "string" + } + } + } + }, + "required": [ + "id", + "type" + ] + }, + "TerritoryInlineCreate": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "territories" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "type" + ] + }, + "TerritoriesResponse": { + "type": "object", + "title": "TerritoriesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "TerritoryResponse": { + "type": "object", + "title": "TerritoryResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Territory" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "TerritoryAvailability": { + "type": "object", + "title": "TerritoryAvailability", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" ] }, "id": { "type": "string" }, + "attributes": { + "type": "object", + "properties": { + "available": { + "type": "boolean" + }, + "releaseDate": { + "type": "string", + "format": "date" + }, + "preOrderEnabled": { + "type": "boolean" + }, + "preOrderPublishDate": { + "type": "string", + "format": "date" + }, + "contentStatuses": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "AVAILABLE", + "AVAILABLE_FOR_PREORDER_ON_DATE", + "PROCESSING_TO_NOT_AVAILABLE", + "PROCESSING_TO_AVAILABLE", + "PROCESSING_TO_PRE_ORDER", + "AVAILABLE_FOR_SALE_UNRELEASED_APP", + "PREORDER_ON_UNRELEASED_APP", + "AVAILABLE_FOR_PREORDER", + "MISSING_RATING", + "CANNOT_SELL_RESTRICTED_RATING", + "BRAZIL_REQUIRED_TAX_ID", + "MISSING_GRN", + "UNVERIFIED_GRN", + "CANNOT_SELL_SEVENTEEN_PLUS_APPS", + "CANNOT_SELL_SEXUALLY_EXPLICIT", + "CANNOT_SELL_NON_IOS_GAMES", + "CANNOT_SELL_SEVENTEEN_PLUS_GAMES", + "CANNOT_SELL_FREQUENT_INTENSE_GAMBLING", + "CANNOT_SELL_CASINO", + "CANNOT_SELL_CASINO_WITHOUT_GRAC", + "CANNOT_SELL_CASINO_WITHOUT_AGE_VERIFICATION", + "CANNOT_SELL_FREQUENT_INTENSE_ALCOHOL_TOBACCO_DRUGS", + "CANNOT_SELL_FREQUENT_INTENSE_VIOLENCE", + "CANNOT_SELL_FREQUENT_INTENSE_SEXUAL_CONTENT_NUDITY", + "CANNOT_SELL_INFREQUENT_MILD_ALCOHOL_TOBACCO_DRUGS", + "CANNOT_SELL_INFREQUENT_MILD_SEXUAL_CONTENT_NUDITY", + "CANNOT_SELL_ADULT_ONLY", + "CANNOT_SELL_FREQUENT_INTENSE", + "CANNOT_SELL_FREQUENT_INTENSE_WITHOUT_GRAC", + "CANNOT_SELL_GAMBLING_CONTESTS", + "CANNOT_SELL_GAMBLING", + "CANNOT_SELL_CONTESTS", + "CANNOT_SELL" + ] + } + } + } + }, "relationships": { "type": "object", "properties": { - "subscription": { + "territory": { "type": "object", "properties": { "links": { @@ -101692,7 +123924,7 @@ "type": { "type": "string", "enum": [ - "subscriptions" + "territories" ] }, "id": { @@ -101713,22 +123945,66 @@ } }, "required": [ - "links", "id", "type" ] }, - "SubscriptionSubmissionResponse": { + "TerritoryAvailabilityInlineCreate": { "type": "object", - "title": "SubscriptionSubmissionResponse", + "properties": { + "type": { + "type": "string", + "enum": [ + "territoryAvailabilities" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "type" + ] + }, + "TerritoryAvailabilitiesResponse": { + "type": "object", + "title": "TerritoryAvailabilitiesResponse", "properties": { "data": { - "$ref": "#/components/schemas/SubscriptionSubmission" + "type": "array", + "items": { + "$ref": "#/components/schemas/TerritoryAvailability" + } }, "included": { "type": "array", "items": { - "$ref": "#/components/schemas/Subscription" + "$ref": "#/components/schemas/Territory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "TerritoryAvailabilityResponse": { + "type": "object", + "title": "TerritoryAvailabilityResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/TerritoryAvailability" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Territory" } }, "links": { @@ -101740,9 +124016,9 @@ "links" ] }, - "SubscriptionSubmissionCreateRequest": { + "TerritoryAvailabilityUpdateRequest": { "type": "object", - "title": "SubscriptionSubmissionCreateRequest", + "title": "TerritoryAvailabilityUpdateRequest", "properties": { "data": { "type": "object", @@ -101750,46 +124026,30 @@ "type": { "type": "string", "enum": [ - "subscriptionSubmissions" + "territoryAvailabilities" ] }, - "relationships": { + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "subscription": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] + "available": { + "type": "boolean" + }, + "releaseDate": { + "type": "string", + "format": "date" + }, + "preOrderEnabled": { + "type": "boolean" } - }, - "required": [ - "subscription" - ] + } } }, "required": [ - "relationships", + "id", "type" ] } @@ -101798,14 +124058,14 @@ "data" ] }, - "Subscription": { + "UserInvitation": { "type": "object", - "title": "Subscription", + "title": "UserInvitation", "properties": { "type": { "type": "string", "enum": [ - "subscriptions" + "userInvitations" ] }, "id": { @@ -101814,212 +124074,38 @@ "attributes": { "type": "object", "properties": { - "name": { - "type": "string" - }, - "productId": { - "type": "string" - }, - "familySharable": { - "type": "boolean" - }, - "state": { - "type": "string", - "enum": [ - "MISSING_METADATA", - "READY_TO_SUBMIT", - "WAITING_FOR_REVIEW", - "IN_REVIEW", - "DEVELOPER_ACTION_NEEDED", - "PENDING_BINARY_APPROVAL", - "APPROVED", - "DEVELOPER_REMOVED_FROM_SALE", - "REMOVED_FROM_SALE", - "REJECTED" - ] - }, - "subscriptionPeriod": { + "email": { "type": "string", - "enum": [ - "ONE_WEEK", - "ONE_MONTH", - "TWO_MONTHS", - "THREE_MONTHS", - "SIX_MONTHS", - "ONE_YEAR" - ] + "format": "email" }, - "reviewNote": { + "firstName": { "type": "string" }, - "groupLevel": { - "type": "integer" - }, - "availableInAllTerritories": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "subscriptionLocalizations": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionLocalizations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "appStoreReviewScreenshot": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionAppStoreReviewScreenshots" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } + "lastName": { + "type": "string" }, - "group": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionGroups" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } + "expirationDate": { + "type": "string", + "format": "date-time" }, - "introductoryOffers": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionIntroductoryOffers" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRole" } }, - "promotionalOffers": { + "allAppsVisible": { + "type": "boolean" + }, + "provisioningAllowed": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "visibleApps": { "type": "object", "properties": { "links": { @@ -102046,7 +124132,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPromotionalOffers" + "apps" ] }, "id": { @@ -102060,50 +124146,199 @@ } } } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "UserInvitationsResponse": { + "type": "object", + "title": "UserInvitationsResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserInvitation" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserInvitationResponse": { + "type": "object", + "title": "UserInvitationResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/UserInvitation" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserInvitationCreateRequest": { + "type": "object", + "title": "UserInvitationCreateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "userInvitations" + ] }, - "offerCodes": { + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } + "email": { + "type": "string", + "format": "email" }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" + "firstName": { + "type": "string" }, - "data": { + "lastName": { + "type": "string" + }, + "roles": { "type": "array", "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionOfferCodes" + "$ref": "#/components/schemas/UserRole" + } + }, + "allAppsVisible": { + "type": "boolean" + }, + "provisioningAllowed": { + "type": "boolean" + } + }, + "required": [ + "firstName", + "lastName", + "roles", + "email" + ] + }, + "relationships": { + "type": "object", + "properties": { + "visibleApps": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" ] - }, - "id": { - "type": "string" } - }, - "required": [ - "id", - "type" - ] + } } } } + } + }, + "required": [ + "attributes", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "User": { + "type": "object", + "title": "User", + "properties": { + "type": { + "type": "string", + "enum": [ + "users" + ] + }, + "id": { + "type": "string" + }, + "attributes": { + "type": "object", + "properties": { + "username": { + "type": "string" + }, + "firstName": { + "type": "string" + }, + "lastName": { + "type": "string" + }, + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRole" + } }, - "prices": { + "allAppsVisible": { + "type": "boolean" + }, + "provisioningAllowed": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "visibleApps": { "type": "object", "properties": { "links": { @@ -102130,7 +124365,7 @@ "type": { "type": "string", "enum": [ - "subscriptionPrices" + "apps" ] }, "id": { @@ -102144,132 +124379,369 @@ } } } + } + } + }, + "links": { + "$ref": "#/components/schemas/ResourceLinks" + } + }, + "required": [ + "id", + "type" + ] + }, + "UsersResponse": { + "type": "object", + "title": "UsersResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserResponse": { + "type": "object", + "title": "UserResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/User" + }, + "included": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" + } + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "UserUpdateRequest": { + "type": "object", + "title": "UserUpdateRequest", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "users" + ] }, - "promotedPurchase": { + "id": { + "type": "string" + }, + "attributes": { "type": "object", "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } + "roles": { + "type": "array", + "items": { + "$ref": "#/components/schemas/UserRole" } }, - "data": { + "allAppsVisible": { + "type": "boolean" + }, + "provisioningAllowed": { + "type": "boolean" + } + } + }, + "relationships": { + "type": "object", + "properties": { + "visibleApps": { "type": "object", "properties": { - "type": { - "type": "string", - "enum": [ - "promotedPurchases" - ] - }, - "id": { - "type": "string" + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } } - }, - "required": [ - "id", - "type" - ] + } } } + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppCategoryWithoutIncludesResponse": { + "type": "object", + "title": "AppCategoryWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppCategory" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppCategoriesWithoutIncludesResponse": { + "type": "object", + "title": "AppCategoriesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppCategory" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appStoreVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "AppWithoutIncludesResponse": { + "type": "object", + "title": "AppWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/PrereleaseVersion" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppEncryptionDeclarationBuildsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ], + "deprecated": true + }, + "AppPreviewSetAppPreviewsLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "id": { + "type": "string" + } }, - "subscriptionAvailability": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionAvailabilities" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } + "required": [ + "id", + "type" + ] } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "SubscriptionsResponse": { + "AppPreviewSetAppPreviewsLinkagesRequest": { "type": "object", - "title": "SubscriptionsResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/Subscription" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appPreviews" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "included": { + } + }, + "required": [ + "data" + ] + }, + "AppScreenshotSetAppScreenshotsLinkagesResponse": { + "type": "object", + "properties": { + "data": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/SubscriptionLocalization" - }, - { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" - }, - { - "$ref": "#/components/schemas/SubscriptionGroup" - }, - { - "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" - }, - { - "$ref": "#/components/schemas/SubscriptionPromotionalOffer" - }, - { - "$ref": "#/components/schemas/SubscriptionOfferCode" - }, - { - "$ref": "#/components/schemas/SubscriptionPrice" - }, - { - "$ref": "#/components/schemas/PromotedPurchase" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] }, - { - "$ref": "#/components/schemas/SubscriptionAvailability" + "id": { + "type": "string" } + }, + "required": [ + "id", + "type" ] } }, @@ -102285,46 +124757,41 @@ "links" ] }, - "SubscriptionResponse": { + "AppScreenshotSetAppScreenshotsLinkagesRequest": { "type": "object", - "title": "SubscriptionResponse", "properties": { "data": { - "$ref": "#/components/schemas/Subscription" - }, - "included": { "type": "array", "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/SubscriptionLocalization" - }, - { - "$ref": "#/components/schemas/SubscriptionAppStoreReviewScreenshot" - }, - { - "$ref": "#/components/schemas/SubscriptionGroup" - }, - { - "$ref": "#/components/schemas/SubscriptionIntroductoryOffer" - }, - { - "$ref": "#/components/schemas/SubscriptionPromotionalOffer" - }, - { - "$ref": "#/components/schemas/SubscriptionOfferCode" - }, - { - "$ref": "#/components/schemas/SubscriptionPrice" - }, - { - "$ref": "#/components/schemas/PromotedPurchase" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appScreenshots" + ] }, - { - "$ref": "#/components/schemas/SubscriptionAvailability" + "id": { + "type": "string" } + }, + "required": [ + "id", + "type" ] } + } + }, + "required": [ + "data" + ] + }, + "AgeRatingDeclarationWithoutIncludesResponse": { + "type": "object", + "title": "AgeRatingDeclarationWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersion" }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -102335,9 +124802,8 @@ "links" ] }, - "SubscriptionCreateRequest": { + "AppStoreVersionAppClipDefaultExperienceLinkageResponse": { "type": "object", - "title": "SubscriptionCreateRequest", "properties": { "data": { "type": "object", @@ -102345,85 +124811,45 @@ "type": { "type": "string", "enum": [ - "subscriptions" + "appClipDefaultExperiences" ] }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "productId": { - "type": "string" - }, - "familySharable": { - "type": "boolean" - }, - "subscriptionPeriod": { - "type": "string", - "enum": [ - "ONE_WEEK", - "ONE_MONTH", - "TWO_MONTHS", - "THREE_MONTHS", - "SIX_MONTHS", - "ONE_YEAR" - ] - }, - "reviewNote": { - "type": "string" - }, - "groupLevel": { - "type": "integer" - }, - "availableInAllTerritories": { - "type": "boolean" - } - }, - "required": [ - "productId", - "name" + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionAppClipDefaultExperienceLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "appClipDefaultExperiences" ] }, - "relationships": { - "type": "object", - "properties": { - "group": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionGroups" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - } - }, - "required": [ - "group" - ] + "id": { + "type": "string" } }, "required": [ - "relationships", - "attributes", + "id", "type" ] } @@ -102432,9 +124858,62 @@ "data" ] }, - "SubscriptionUpdateRequest": { + "AppStoreVersionLocalizationsWithoutIncludesResponse": { + "type": "object", + "title": "AppStoreVersionLocalizationsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/AppStoreVersion" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionPhasedReleaseWithoutIncludesResponse": { + "type": "object", + "title": "AppStoreVersionPhasedReleaseWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/AppStoreVersion" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildWithoutIncludesResponse": { + "type": "object", + "title": "BuildWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/BuildBetaDetail" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionBuildLinkageResponse": { "type": "object", - "title": "SubscriptionUpdateRequest", "properties": { "data": { "type": "object", @@ -102442,125 +124921,11 @@ "type": { "type": "string", "enum": [ - "subscriptions" + "builds" ] }, "id": { "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "familySharable": { - "type": "boolean" - }, - "subscriptionPeriod": { - "type": "string", - "enum": [ - "ONE_WEEK", - "ONE_MONTH", - "TWO_MONTHS", - "THREE_MONTHS", - "SIX_MONTHS", - "ONE_YEAR" - ] - }, - "reviewNote": { - "type": "string" - }, - "groupLevel": { - "type": "integer" - }, - "availableInAllTerritories": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "introductoryOffers": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionIntroductoryOffers" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "promotionalOffers": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPromotionalOffers" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - }, - "prices": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "subscriptionPrices" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - } } }, "required": [ @@ -102568,83 +124933,103 @@ "type" ] }, - "included": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/components/schemas/SubscriptionPromotionalOfferInlineCreate" - }, - { - "$ref": "#/components/schemas/SubscriptionPriceInlineCreate" - }, - { - "$ref": "#/components/schemas/SubscriptionIntroductoryOfferInlineCreate" - } - ] - } + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppStoreVersionBuildLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } }, "required": [ "data" ] }, - "Territory": { + "RoutingAppCoverageWithoutIncludesResponse": { "type": "object", - "title": "Territory", + "title": "RoutingAppCoverageWithoutIncludesResponse", "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] - }, - "id": { - "type": "string" + "data": { + "$ref": "#/components/schemas/AppStoreVersion" }, - "attributes": { - "type": "object", - "properties": { - "currency": { - "type": "string" - } + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaAppLocalizationsWithoutIncludesResponse": { + "type": "object", + "title": "BetaAppLocalizationsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/App" } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "TerritoryInlineCreate": { + "BetaAppReviewDetailWithoutIncludesResponse": { "type": "object", + "title": "BetaAppReviewDetailWithoutIncludesResponse", "properties": { - "type": { - "type": "string", - "enum": [ - "territories" - ] + "data": { + "$ref": "#/components/schemas/App" }, - "id": { - "type": "string" + "links": { + "$ref": "#/components/schemas/DocumentLinks" } }, "required": [ - "type" + "data", + "links" ] }, - "TerritoriesResponse": { + "BetaGroupsWithoutIncludesResponse": { "type": "object", - "title": "TerritoriesResponse", + "title": "BetaGroupsWithoutIncludesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/Territory" + "$ref": "#/components/schemas/BetaTester" } }, "links": { @@ -102659,12 +125044,12 @@ "links" ] }, - "TerritoryResponse": { + "BetaLicenseAgreementWithoutIncludesResponse": { "type": "object", - "title": "TerritoryResponse", + "title": "BetaLicenseAgreementWithoutIncludesResponse", "properties": { "data": { - "$ref": "#/components/schemas/Territory" + "$ref": "#/components/schemas/App" }, "links": { "$ref": "#/components/schemas/DocumentLinks" @@ -102675,118 +125060,94 @@ "links" ] }, - "UserInvitation": { + "AppBetaTestersLinkagesRequest": { "type": "object", - "title": "UserInvitation", "properties": { - "type": { - "type": "string", - "enum": [ - "userInvitations" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "expirationDate": { - "type": "string", - "format": "date-time" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRole" + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" } }, - "allAppsVisible": { - "type": "boolean" - }, - "provisioningAllowed": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "visibleApps": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } + "required": [ + "id", + "type" + ] } - }, - "links": { - "$ref": "#/components/schemas/ResourceLinks" } }, "required": [ - "links", - "id", - "type" + "data" ] }, - "UserInvitationsResponse": { + "BuildsWithoutIncludesResponse": { "type": "object", - "title": "UserInvitationsResponse", + "title": "BuildsWithoutIncludesResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/UserInvitation" + "$ref": "#/components/schemas/PrereleaseVersion" } }, - "included": { + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "EndUserLicenseAgreementWithoutIncludesResponse": { + "type": "object", + "title": "EndUserLicenseAgreementWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/App" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "AppPreOrderWithoutIncludesResponse": { + "type": "object", + "title": "AppPreOrderWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/App" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "PreReleaseVersionsWithoutIncludesResponse": { + "type": "object", + "title": "PreReleaseVersionsWithoutIncludesResponse", + "properties": { + "data": { "type": "array", "items": { "$ref": "#/components/schemas/App" @@ -102804,21 +125165,35 @@ "links" ] }, - "UserInvitationResponse": { + "AppPromotedPurchasesLinkagesResponse": { "type": "object", - "title": "UserInvitationResponse", "properties": { "data": { - "$ref": "#/components/schemas/UserInvitation" - }, - "included": { "type": "array", "items": { - "$ref": "#/components/schemas/App" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -102826,204 +125201,144 @@ "links" ] }, - "UserInvitationCreateRequest": { + "AppPromotedPurchasesLinkagesRequest": { "type": "object", - "title": "UserInvitationCreateRequest", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "userInvitations" - ] - }, - "attributes": { - "type": "object", - "properties": { - "email": { - "type": "string", - "format": "email" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRole" - } - }, - "allAppsVisible": { - "type": "boolean" - }, - "provisioningAllowed": { - "type": "boolean" - } + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "promotedPurchases" + ] }, - "required": [ - "firstName", - "lastName", - "roles", - "email" - ] - }, - "relationships": { - "type": "object", - "properties": { - "visibleApps": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } + "id": { + "type": "string" } - } - }, - "required": [ - "attributes", - "type" - ] + }, + "required": [ + "id", + "type" + ] + } } }, "required": [ "data" ] }, - "User": { + "BetaTestersWithoutIncludesResponse": { "type": "object", - "title": "User", + "title": "BetaTestersWithoutIncludesResponse", "properties": { - "type": { - "type": "string", - "enum": [ - "users" - ] + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } }, - "id": { - "type": "string" + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" }, - "attributes": { - "type": "object", - "properties": { - "username": { - "type": "string" - }, - "firstName": { - "type": "string" - }, - "lastName": { - "type": "string" - }, - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRole" + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaGroupBetaTestersLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" } }, - "allAppsVisible": { - "type": "boolean" - }, - "provisioningAllowed": { - "type": "boolean" - } - } - }, - "relationships": { - "type": "object", - "properties": { - "visibleApps": { - "type": "object", - "properties": { - "links": { - "type": "object", - "properties": { - "self": { - "type": "string", - "format": "uri-reference" - }, - "related": { - "type": "string", - "format": "uri-reference" - } - } - }, - "meta": { - "$ref": "#/components/schemas/PagingInformation" - }, - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } + "required": [ + "id", + "type" + ] } }, "links": { - "$ref": "#/components/schemas/ResourceLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "links", - "id", - "type" + "data", + "links" ] }, - "UsersResponse": { + "BetaGroupBetaTestersLinkagesRequest": { "type": "object", - "title": "UsersResponse", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/User" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } - }, - "included": { + } + }, + "required": [ + "data" + ] + }, + "BetaGroupBuildsLinkagesResponse": { + "type": "object", + "properties": { + "data": { "type": "array", "items": { - "$ref": "#/components/schemas/App" + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] } }, "links": { @@ -103038,126 +125353,50 @@ "links" ] }, - "UserResponse": { + "BetaGroupBuildsLinkagesRequest": { "type": "object", - "title": "UserResponse", "properties": { "data": { - "$ref": "#/components/schemas/User" - }, - "included": { "type": "array", "items": { - "$ref": "#/components/schemas/App" - } - }, - "links": { - "$ref": "#/components/schemas/DocumentLinks" - } - }, - "required": [ - "data", - "links" - ] - }, - "UserUpdateRequest": { - "type": "object", - "title": "UserUpdateRequest", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "users" - ] - }, - "id": { - "type": "string" - }, - "attributes": { - "type": "object", - "properties": { - "roles": { - "type": "array", - "items": { - "$ref": "#/components/schemas/UserRole" - } - }, - "allAppsVisible": { - "type": "boolean" - }, - "provisioningAllowed": { - "type": "boolean" - } + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "builds" + ] + }, + "id": { + "type": "string" } }, - "relationships": { - "type": "object", - "properties": { - "visibleApps": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "apps" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - } - } - } - } - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } } }, "required": [ "data" ] }, - "AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageResponse": { + "AppsWithoutIncludesResponse": { "type": "object", + "title": "AppsWithoutIncludesResponse", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "type": "array", + "items": { + "$ref": "#/components/schemas/User" + } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -103165,33 +125404,43 @@ "links" ] }, - "AppClipDefaultExperienceReleaseWithAppStoreVersionLinkageRequest": { + "BetaTesterAppsLinkagesResponse": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appStoreVersions" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "apps" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "data" + "data", + "links" ] }, - "AppEncryptionDeclarationBuildsLinkagesRequest": { + "BetaTesterAppsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103202,7 +125451,7 @@ "type": { "type": "string", "enum": [ - "builds" + "apps" ] }, "id": { @@ -103218,10 +125467,9 @@ }, "required": [ "data" - ], - "deprecated": true + ] }, - "AppPreviewSetAppPreviewsLinkagesResponse": { + "BetaTesterBetaGroupsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103232,7 +125480,7 @@ "type": { "type": "string", "enum": [ - "appPreviews" + "betaGroups" ] }, "id": { @@ -103257,7 +125505,7 @@ "links" ] }, - "AppPreviewSetAppPreviewsLinkagesRequest": { + "BetaTesterBetaGroupsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103268,7 +125516,7 @@ "type": { "type": "string", "enum": [ - "appPreviews" + "betaGroups" ] }, "id": { @@ -103286,7 +125534,7 @@ "data" ] }, - "AppScreenshotSetAppScreenshotsLinkagesResponse": { + "BetaTesterBuildsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103297,7 +125545,7 @@ "type": { "type": "string", "enum": [ - "appScreenshots" + "builds" ] }, "id": { @@ -103322,7 +125570,7 @@ "links" ] }, - "AppScreenshotSetAppScreenshotsLinkagesRequest": { + "BetaTesterBuildsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103333,7 +125581,7 @@ "type": { "type": "string", "enum": [ - "appScreenshots" + "builds" ] }, "id": { @@ -103351,7 +125599,23 @@ "data" ] }, - "AppStoreVersionAppClipDefaultExperienceLinkageResponse": { + "AppEncryptionDeclarationWithoutIncludesResponse": { + "type": "object", + "title": "AppEncryptionDeclarationWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Build" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildAppEncryptionDeclarationLinkageResponse": { "type": "object", "properties": { "data": { @@ -103360,7 +125624,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appEncryptionDeclarations" ] }, "id": { @@ -103381,7 +125645,7 @@ "links" ] }, - "AppStoreVersionAppClipDefaultExperienceLinkageRequest": { + "BuildAppEncryptionDeclarationLinkageRequest": { "type": "object", "properties": { "data": { @@ -103390,7 +125654,7 @@ "type": { "type": "string", "enum": [ - "appClipDefaultExperiences" + "appEncryptionDeclarations" ] }, "id": { @@ -103407,7 +125671,259 @@ "data" ] }, - "AppStoreVersionBuildLinkageResponse": { + "BetaAppReviewSubmissionWithoutIncludesResponse": { + "type": "object", + "title": "BetaAppReviewSubmissionWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Build" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BetaBuildLocalizationsWithoutIncludesResponse": { + "type": "object", + "title": "BetaBuildLocalizationsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildBetaGroupsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaGroups" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "BuildBetaDetailWithoutIncludesResponse": { + "type": "object", + "title": "BuildBetaDetailWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Build" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildIconsWithoutIncludesResponse": { + "type": "object", + "title": "BuildIconsWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Build" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildIndividualTestersLinkagesResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "BuildIndividualTestersLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "betaTesters" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + } + }, + "required": [ + "data" + ] + }, + "PrereleaseVersionWithoutIncludesResponse": { + "type": "object", + "title": "PrereleaseVersionWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Build" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "BundleIdCapabilitiesWithoutIncludesResponse": { + "type": "object", + "title": "BundleIdCapabilitiesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BundleId" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "ProfilesWithoutIncludesResponse": { + "type": "object", + "title": "ProfilesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BundleId" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "TerritoriesWithoutIncludesResponse": { + "type": "object", + "title": "TerritoriesWithoutIncludesResponse", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/EndUserLicenseAgreement" + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAchievementGroupAchievementLinkageResponse": { "type": "object", "properties": { "data": { @@ -103416,7 +125932,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterAchievements" ] }, "id": { @@ -103437,7 +125953,7 @@ "links" ] }, - "AppStoreVersionBuildLinkageRequest": { + "GameCenterAchievementGroupAchievementLinkageRequest": { "type": "object", "properties": { "data": { @@ -103446,7 +125962,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterAchievements" ] }, "id": { @@ -103463,7 +125979,7 @@ "data" ] }, - "AppBetaTestersLinkagesRequest": { + "GameCenterAppVersionCompatibilityVersionsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103474,7 +125990,43 @@ "type": { "type": "string", "enum": [ - "betaTesters" + "gameCenterAppVersions" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterAppVersionCompatibilityVersionsLinkagesRequest": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterAppVersions" ] }, "id": { @@ -103492,7 +126044,7 @@ "data" ] }, - "AppPromotedPurchasesLinkagesResponse": { + "GameCenterDetailGameCenterAchievementsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103503,7 +126055,7 @@ "type": { "type": "string", "enum": [ - "promotedPurchases" + "gameCenterAchievements" ] }, "id": { @@ -103528,7 +126080,7 @@ "links" ] }, - "AppPromotedPurchasesLinkagesRequest": { + "GameCenterDetailGameCenterAchievementsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103539,7 +126091,7 @@ "type": { "type": "string", "enum": [ - "promotedPurchases" + "gameCenterAchievements" ] }, "id": { @@ -103557,7 +126109,7 @@ "data" ] }, - "BetaGroupBetaTestersLinkagesResponse": { + "GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103568,7 +126120,7 @@ "type": { "type": "string", "enum": [ - "betaTesters" + "gameCenterLeaderboardSets" ] }, "id": { @@ -103593,7 +126145,7 @@ "links" ] }, - "BetaGroupBetaTestersLinkagesRequest": { + "GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103604,7 +126156,7 @@ "type": { "type": "string", "enum": [ - "betaTesters" + "gameCenterLeaderboardSets" ] }, "id": { @@ -103622,7 +126174,7 @@ "data" ] }, - "BetaGroupBuildsLinkagesResponse": { + "GameCenterDetailGameCenterLeaderboardsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103633,7 +126185,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterLeaderboards" ] }, "id": { @@ -103658,7 +126210,7 @@ "links" ] }, - "BetaGroupBuildsLinkagesRequest": { + "GameCenterDetailGameCenterLeaderboardsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103669,7 +126221,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterLeaderboards" ] }, "id": { @@ -103687,7 +126239,7 @@ "data" ] }, - "BetaTesterAppsLinkagesResponse": { + "GameCenterEnabledVersionCompatibleVersionsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103698,7 +126250,7 @@ "type": { "type": "string", "enum": [ - "apps" + "gameCenterEnabledVersions" ] }, "id": { @@ -103721,9 +126273,10 @@ "required": [ "data", "links" - ] + ], + "deprecated": true }, - "BetaTesterAppsLinkagesRequest": { + "GameCenterEnabledVersionCompatibleVersionsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103734,7 +126287,7 @@ "type": { "type": "string", "enum": [ - "apps" + "gameCenterEnabledVersions" ] }, "id": { @@ -103750,9 +126303,10 @@ }, "required": [ "data" - ] + ], + "deprecated": true }, - "BetaTesterBetaGroupsLinkagesResponse": { + "GameCenterGroupGameCenterAchievementsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103763,7 +126317,7 @@ "type": { "type": "string", "enum": [ - "betaGroups" + "gameCenterAchievements" ] }, "id": { @@ -103788,7 +126342,7 @@ "links" ] }, - "BetaTesterBetaGroupsLinkagesRequest": { + "GameCenterGroupGameCenterAchievementsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103799,7 +126353,7 @@ "type": { "type": "string", "enum": [ - "betaGroups" + "gameCenterAchievements" ] }, "id": { @@ -103817,7 +126371,7 @@ "data" ] }, - "BetaTesterBuildsLinkagesResponse": { + "GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103828,7 +126382,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterLeaderboardSets" ] }, "id": { @@ -103853,7 +126407,7 @@ "links" ] }, - "BetaTesterBuildsLinkagesRequest": { + "GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103864,7 +126418,7 @@ "type": { "type": "string", "enum": [ - "builds" + "gameCenterLeaderboardSets" ] }, "id": { @@ -103882,29 +126436,35 @@ "data" ] }, - "BuildAppEncryptionDeclarationLinkageResponse": { + "GameCenterGroupGameCenterLeaderboardsLinkagesResponse": { "type": "object", "properties": { "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEncryptionDeclarations" - ] + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "required": [ + "id", + "type" + ] + } }, "links": { - "$ref": "#/components/schemas/DocumentLinks" + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ @@ -103912,33 +126472,7 @@ "links" ] }, - "BuildAppEncryptionDeclarationLinkageRequest": { - "type": "object", - "properties": { - "data": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "appEncryptionDeclarations" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] - } - }, - "required": [ - "data" - ] - }, - "BuildBetaGroupsLinkagesRequest": { + "GameCenterGroupGameCenterLeaderboardsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -103949,7 +126483,7 @@ "type": { "type": "string", "enum": [ - "betaGroups" + "gameCenterLeaderboards" ] }, "id": { @@ -103967,7 +126501,7 @@ "data" ] }, - "BuildIndividualTestersLinkagesResponse": { + "GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse": { "type": "object", "properties": { "data": { @@ -103978,7 +126512,7 @@ "type": { "type": "string", "enum": [ - "betaTesters" + "gameCenterLeaderboards" ] }, "id": { @@ -104003,7 +126537,7 @@ "links" ] }, - "BuildIndividualTestersLinkagesRequest": { + "GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest": { "type": "object", "properties": { "data": { @@ -104014,7 +126548,7 @@ "type": { "type": "string", "enum": [ - "betaTesters" + "gameCenterLeaderboards" ] }, "id": { @@ -104032,28 +126566,142 @@ "data" ] }, - "GameCenterEnabledVersionCompatibleVersionsLinkagesResponse": { + "GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboardSets" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "GameCenterLeaderboardGroupLeaderboardLinkageResponse": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "GameCenterLeaderboardGroupLeaderboardLinkageRequest": { + "type": "object", + "properties": { + "data": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "gameCenterLeaderboards" + ] + }, + "id": { + "type": "string" + } + }, + "required": [ + "id", + "type" + ] + } + }, + "required": [ + "data" + ] + }, + "BundleIdWithoutIncludesResponse": { + "type": "object", + "title": "BundleIdWithoutIncludesResponse", + "properties": { + "data": { + "$ref": "#/components/schemas/Profile" + }, + "links": { + "$ref": "#/components/schemas/DocumentLinks" + } + }, + "required": [ + "data", + "links" + ] + }, + "CertificatesWithoutIncludesResponse": { "type": "object", + "title": "CertificatesWithoutIncludesResponse", "properties": { "data": { "type": "array", "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "gameCenterEnabledVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "$ref": "#/components/schemas/Profile" } }, "links": { @@ -104068,33 +126716,26 @@ "links" ] }, - "GameCenterEnabledVersionCompatibleVersionsLinkagesRequest": { + "DevicesWithoutIncludesResponse": { "type": "object", + "title": "DevicesWithoutIncludesResponse", "properties": { "data": { "type": "array", "items": { - "type": "object", - "properties": { - "type": { - "type": "string", - "enum": [ - "gameCenterEnabledVersions" - ] - }, - "id": { - "type": "string" - } - }, - "required": [ - "id", - "type" - ] + "$ref": "#/components/schemas/Profile" } + }, + "links": { + "$ref": "#/components/schemas/PagedDocumentLinks" + }, + "meta": { + "$ref": "#/components/schemas/PagingInformation" } }, "required": [ - "data" + "data", + "links" ] }, "SubscriptionIntroductoryOffersLinkagesResponse": { @@ -104415,10 +127056,7 @@ "type": "string", "format": "uri-reference" } - }, - "required": [ - "self" - ] + } }, "AppClipAction": { "type": "string", @@ -105121,6 +127759,29 @@ } } }, + "GameCenterLeaderboardFormatter": { + "type": "string", + "enum": [ + "INTEGER", + "DECIMAL_POINT_1_PLACE", + "DECIMAL_POINT_2_PLACE", + "DECIMAL_POINT_3_PLACE", + "ELAPSED_TIME_MILLISECOND", + "ELAPSED_TIME_MINUTE", + "ELAPSED_TIME_SECOND", + "MONEY_POUND_DECIMAL", + "MONEY_POUND", + "MONEY_DOLLAR_DECIMAL", + "MONEY_DOLLAR", + "MONEY_EURO_DECIMAL", + "MONEY_EURO", + "MONEY_FRANC_DECIMAL", + "MONEY_FRANC", + "MONEY_KRONER_DECIMAL", + "MONEY_KRONER", + "MONEY_YEN" + ] + }, "HttpHeader": { "type": "object", "properties": { diff --git a/Sources/OpenAPI/create-api.yml b/Sources/OpenAPI/create-api.yml new file mode 100644 index 00000000..26c53674 --- /dev/null +++ b/Sources/OpenAPI/create-api.yml @@ -0,0 +1,44 @@ +# Different components that CreateAPI should generate. +generate: [entities, paths, enums] +# The name of the module that the generated sources will be part of. +module: "AppStoreConnect_Swift_SDK" +# Access level modifier for all generated declarations +access: public +# Add @available(*, deprecated) attribute to deprecated types and properties +annotateDeprecations: true +# Change the style of indentation. Supported values: ["spaces", "tabs"] +indentation: tabs +# Parses dates (e.g. "2021-09-29") using NaiveDate (https://github.com/CreateAPI/NaiveDate) +useNaiveDate: false +# Overrides file header comment +fileHeaderComment: "// Generated by Create API\n// https://github.com/CreateAPI/CreateAPI" +# Options used when generating comments. +commentOptions: [title, description, example, externalDocumentation, capitalized] + +paths: + # The style used when generating path definitions + style: rest + # Generate response headers using https://github.com/CreateAPI/HTTPHeaders + includeResponseHeaders: true + # The types to import, by default uses "Get" (https://github.com/CreateAPI/Get) + imports: [] + # Inline simple requests, like the ones with a single parameter + inlineSimpleRequests: true + # Inline query parameters for simple requests instead of generating a Parameter type + inlineSimpleQueryParameters: true + # The threshold of query parameters to inline when using `inlineSimpleQueryParameters`. + simpleQueryParametersThreshold: 2 + # Remove redundant paths if possible + removeRedundantPaths: true + # The namespace type for all generated paths + namespace: "APIEndpoint" + # Adds known types to Apple specific content-types. + overriddenBodyTypes: + application/vnd.apple.diagnostic-logs+json: DiagnosticLogs + application/vnd.apple.xcode-metrics+json: XcodeMetrics + +entities: + # Uses a single StringCodingKey type allowing string literals to be used in the place of individual CodingKey enum types + optimizeCodingKeys: true + # Automatically generate Identifiable conformance for entities that include an id property. + includeIdentifiableConformance: true From 842b147da48b8b84709011808f643abf15c4ae71 Mon Sep 17 00:00:00 2001 From: Nicolas Kick Date: Tue, 24 Oct 2023 20:25:58 +0200 Subject: [PATCH 2/2] manually fix Platform.visionOs --- Sources/OpenAPI/Generated/Entities/Platform.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/OpenAPI/Generated/Entities/Platform.swift b/Sources/OpenAPI/Generated/Entities/Platform.swift index 3c92100a..ded772f1 100644 --- a/Sources/OpenAPI/Generated/Entities/Platform.swift +++ b/Sources/OpenAPI/Generated/Entities/Platform.swift @@ -7,4 +7,5 @@ public enum Platform: String, Codable, CaseIterable { case ios = "IOS" case macOs = "MAC_OS" case tvOs = "TV_OS" + case visionOs = "VISION_OS" // VisionOS manually added since version 3.0 of Apple's OpenAPI spec fails to include it. Reported in FB13208526 27/9/2023. }