diff --git a/Sources/OpenAPI/Generated/Entities/Actor.swift b/Sources/OpenAPI/Generated/Entities/Actor.swift index 0b804dc5..8ccf1012 100644 --- a/Sources/OpenAPI/Generated/Entities/Actor.swift +++ b/Sources/OpenAPI/Generated/Entities/Actor.swift @@ -9,7 +9,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 +56,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 +68,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 +76,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/AgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift index d67ccb70..ad6d7b65 100644 --- a/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclaration.swift @@ -9,7 +9,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 +170,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 +182,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 +190,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/AgeRatingDeclarationWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationWithoutIncludesResponse.swift new file mode 100644 index 00000000..47afbdc9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AgeRatingDeclarationWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4c4c80ee 100644 --- a/Sources/OpenAPI/Generated/Entities/App.swift +++ b/Sources/OpenAPI/Generated/Entities/App.swift @@ -10,7 +10,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 +81,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 +108,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 +1866,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 +2010,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 +2035,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 +2065,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 +2095,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 +2114,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 +2123,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..e2fca490 100644 --- a/Sources/OpenAPI/Generated/Entities/AppAvailability.swift +++ b/Sources/OpenAPI/Generated/Entities/AppAvailability.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/AppAvailabilityV2.swift b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2.swift new file mode 100644 index 00000000..7ad97156 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2.swift @@ -0,0 +1,154 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..2b026baf --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2CreateRequest.swift @@ -0,0 +1,186 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..440668ad --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppAvailabilityV2Response.swift @@ -0,0 +1,33 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/AppCategoriesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCategoriesWithoutIncludesResponse.swift new file mode 100644 index 00000000..6bc37d4d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppCategoriesWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..d4f81dfd 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCategory.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCategory.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/AppCategoryWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppCategoryWithoutIncludesResponse.swift new file mode 100644 index 00000000..0b7547e1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppCategoryWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..2f1820ec 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClip.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClip.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/AppClipAdvancedExperience.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift index 8dd7bd16..93730892 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperience.swift @@ -10,7 +10,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 +566,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 +580,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 +589,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/AppClipAdvancedExperienceImage.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift index 326b412b..d5675400 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceImage.swift @@ -9,7 +9,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 +53,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 +65,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 +73,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/AppClipAdvancedExperienceLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift index 80945430..5d2e6a73 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAdvancedExperienceLocalization.swift @@ -9,7 +9,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 +40,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 +51,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 +58,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/AppClipAppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift index 3dd86ada..907aaa68 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipAppStoreReviewDetail.swift @@ -10,7 +10,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 +122,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 +136,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 +145,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/AppClipDefaultExperience.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift index e2f67fd4..27b9c2af 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperience.swift @@ -10,7 +10,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 +348,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 +362,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 +371,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/AppClipDefaultExperienceLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift index 84cb5a12..25e247af 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDefaultExperienceLocalization.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/AppClipDomainStatus.swift b/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift index d1088ab4..5fc4df45 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipDomainStatus.swift @@ -9,7 +9,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 +85,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 +96,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 +103,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/AppClipHeaderImage.swift b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift index 631b9bfe..8d494999 100644 --- a/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppClipHeaderImage.swift @@ -10,7 +10,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 +142,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 +156,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 +165,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/AppCustomProductPage.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift index 38f00d0d..eff60aee 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPage.swift @@ -10,7 +10,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 +208,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 +222,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 +231,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/AppCustomProductPageLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift index 0e334149..531c1855 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageLocalization.swift @@ -10,7 +10,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 +282,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 +296,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 +305,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/AppCustomProductPageVersion.swift b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift index 8556c418..b9dec6a8 100644 --- a/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppCustomProductPageVersion.swift @@ -10,7 +10,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 +215,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 +229,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 +238,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/AppEncryptionDeclaration.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift index af846433..925c40be 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclaration.swift @@ -10,7 +10,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 +333,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 +347,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 +356,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/AppEncryptionDeclarationDocument.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift index 8501260f..735e5970 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationDocument.swift @@ -9,7 +9,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 +57,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 +69,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 +77,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/AppEncryptionDeclarationWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationWithoutIncludesResponse.swift new file mode 100644 index 00000000..74a631ac --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppEncryptionDeclarationWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/AppEvent.swift b/Sources/OpenAPI/Generated/Entities/AppEvent.swift index d07326fe..1a2d4128 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEvent.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEvent.swift @@ -10,7 +10,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 +265,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 +279,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 +288,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/AppEventLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift index 956fea8d..5fcd2791 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventLocalization.swift @@ -10,7 +10,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 +290,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 +304,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 +313,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/AppEventScreenshot.swift b/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift index c34b453e..15af82c0 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventScreenshot.swift @@ -10,7 +10,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 +146,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 +160,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 +169,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/AppEventVideoClip.swift b/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift index 3d231b7e..707001c2 100644 --- a/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift +++ b/Sources/OpenAPI/Generated/Entities/AppEventVideoClip.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/AppInfo.swift b/Sources/OpenAPI/Generated/Entities/AppInfo.swift index c6ab8fd1..8a9561d6 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfo.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfo.swift @@ -10,7 +10,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 +749,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 +763,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 +772,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..425db281 100644 --- a/Sources/OpenAPI/Generated/Entities/AppInfoLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppInfoLocalization.swift @@ -10,7 +10,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 +142,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 +156,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 +165,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/AppPreOrder.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift index 9d0e835b..6e5d6b55 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrder.swift @@ -10,7 +10,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 +126,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 +140,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 +149,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/AppPreOrderWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppPreOrderWithoutIncludesResponse.swift new file mode 100644 index 00000000..945052b6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppPreOrderWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..6c223be4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreview.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreview.swift @@ -10,7 +10,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 +154,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 +168,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 +177,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/AppPreviewSet.swift b/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift index 0ba53115..ed3b0e73 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPreviewSet.swift @@ -10,7 +10,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 +348,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 +362,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 +371,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/AppPrice.swift b/Sources/OpenAPI/Generated/Entities/AppPrice.swift index a4503749..11cfb7f1 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPrice.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPrice.swift @@ -10,7 +10,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 +178,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 +190,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 +198,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/AppPricePoint.swift b/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift index 99cfc926..7ae1557e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePoint.swift @@ -11,7 +11,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 +201,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 +215,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 +224,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/AppPricePointV2.swift b/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift index 5944d964..6d1a2178 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointV2.swift @@ -11,7 +11,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 +274,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 +287,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 +295,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..e0e8bb0f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPricePointV3.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPricePointV3.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/AppPriceSchedule.swift b/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift index 93bc73a4..3f6e305b 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceSchedule.swift @@ -9,7 +9,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 +333,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 +345,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 +353,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/AppPriceTier.swift b/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift index 5b0d71dd..315b8384 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceTier.swift @@ -10,7 +10,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 +110,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 +122,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 +130,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/AppPriceV2.swift b/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift index f7ef560f..2b33adef 100644 --- a/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift +++ b/Sources/OpenAPI/Generated/Entities/AppPriceV2.swift @@ -10,7 +10,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 +203,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 +216,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 +224,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/AppResponse.swift b/Sources/OpenAPI/Generated/Entities/AppResponse.swift index 06a22f6f..77e118d4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppResponse.swift @@ -12,10 +12,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 +36,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,6 +89,8 @@ 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 { @@ -95,10 +101,11 @@ public struct AppResponse: Codable { 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 +125,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..ff711899 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshot.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/AppScreenshotSet.swift b/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift index e8ab8d89..62820752 100644 --- a/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift +++ b/Sources/OpenAPI/Generated/Entities/AppScreenshotSet.swift @@ -10,7 +10,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 +348,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 +362,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 +371,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/AppStoreReviewAttachment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift index c86adec5..ec07fe6e 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewAttachment.swift @@ -10,7 +10,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 +138,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 +152,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 +161,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/AppStoreReviewDetail.swift b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift index ab3cc8f9..60cba06c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreReviewDetail.swift @@ -10,7 +10,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 +228,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 +242,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 +251,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/AppStoreVersion.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift index 83eeab6d..740eb900 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersion.swift @@ -10,7 +10,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 +910,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 +924,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 +933,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/AppStoreVersionExperiment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift index 44ffdd7a..547f52e5 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperiment.swift @@ -11,7 +11,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 +233,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 +247,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 +256,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/AppStoreVersionExperimentTreatment.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift index 064ec775..78835b13 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatment.swift @@ -10,7 +10,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 +286,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 +300,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 +309,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/AppStoreVersionExperimentTreatmentLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift index 46c4850a..35848741 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentTreatmentLocalization.swift @@ -10,7 +10,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 +278,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 +292,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 +301,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/AppStoreVersionExperimentV2.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift index dbcd4dd5..9e61201a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionExperimentV2.swift @@ -10,7 +10,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 +388,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 +402,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 +411,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/AppStoreVersionLocalization.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift index e299d2df..20daa2c4 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalization.swift @@ -10,7 +10,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 +302,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 +316,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 +325,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/AppStoreVersionLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift new file mode 100644 index 00000000..a92479e1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionLocalizationsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..47f69c95 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedRelease.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedRelease.swift @@ -9,7 +9,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 +45,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 +57,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 +65,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/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift new file mode 100644 index 00000000..e6ead943 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPhasedReleaseWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..34b2c40f 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotion.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionPromotion.swift @@ -8,29 +8,25 @@ 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/AppStoreVersionReleaseRequest.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift index dce25e0a..6d112a9c 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionReleaseRequest.swift @@ -8,29 +8,25 @@ 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/AppStoreVersionSubmission.swift b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift index a6840ae7..f3cde84a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/AppStoreVersionSubmission.swift @@ -10,7 +10,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 +104,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 +116,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 +124,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/AppWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/AppWithoutIncludesResponse.swift new file mode 100644 index 00000000..aa39473a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..0d1b006a 100644 --- a/Sources/OpenAPI/Generated/Entities/AppsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/AppsResponse.swift @@ -12,10 +12,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 +36,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,6 +89,8 @@ 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 { @@ -95,10 +101,11 @@ public struct AppsResponse: Codable { 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 +125,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..edb8f145 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/AppsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e6bbf046 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocation.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocation.swift @@ -10,7 +10,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 +126,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 +140,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 +149,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/BetaAppClipInvocationLocalization.swift b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift index c223f631..e015d0ee 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppClipInvocationLocalization.swift @@ -9,7 +9,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 +37,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 +49,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 +57,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/BetaAppLocalization.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift index 44551591..71d65c33 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalization.swift @@ -10,7 +10,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 +142,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 +156,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 +165,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/BetaAppLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsWithoutIncludesResponse.swift new file mode 100644 index 00000000..8c1470f8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaAppLocalizationsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..b38d1c72 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetail.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/BetaAppReviewDetailWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailWithoutIncludesResponse.swift new file mode 100644 index 00000000..7b0904ca --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewDetailWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/BetaAppReviewSubmission.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift index ce7f4b08..70fbe76c 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmission.swift @@ -10,7 +10,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 +126,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 +140,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 +149,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/BetaAppReviewSubmissionWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionWithoutIncludesResponse.swift new file mode 100644 index 00000000..60dffc57 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaAppReviewSubmissionWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/BetaBuildLocalization.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift index bfd724d5..e4ccc3b8 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalization.swift @@ -10,7 +10,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 +126,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 +140,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 +149,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/BetaBuildLocalizationsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsWithoutIncludesResponse.swift new file mode 100644 index 00000000..fe534a32 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaBuildLocalizationsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..ddeb219d 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaGroup.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaGroup.swift @@ -10,7 +10,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 +318,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 +332,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 +341,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/BetaGroupsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift new file mode 100644 index 00000000..589c4223 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaGroupsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/BetaLicenseAgreement.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift index c413c3b0..0a0c68ed 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreement.swift @@ -10,7 +10,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 +122,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 +136,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 +145,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/BetaLicenseAgreementWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementWithoutIncludesResponse.swift new file mode 100644 index 00000000..ad683389 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaLicenseAgreementWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/BetaTester.swift b/Sources/OpenAPI/Generated/Entities/BetaTester.swift index 0b08eeb9..f19d515b 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTester.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTester.swift @@ -10,7 +10,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 +294,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 +308,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 +317,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/BetaTesterInvitation.swift b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift index 2eead3ab..5b805ac7 100644 --- a/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift +++ b/Sources/OpenAPI/Generated/Entities/BetaTesterInvitation.swift @@ -8,29 +8,25 @@ 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/BetaTestersWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift new file mode 100644 index 00000000..3ce6e55f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BetaTestersWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/Build.swift b/Sources/OpenAPI/Generated/Entities/Build.swift index 06bc8bf5..88460d9e 100644 --- a/Sources/OpenAPI/Generated/Entities/Build.swift +++ b/Sources/OpenAPI/Generated/Entities/Build.swift @@ -10,7 +10,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 +929,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 +943,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 +952,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/BuildBetaDetail.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift index b635631f..f4bef2f4 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetail.swift @@ -10,7 +10,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 +130,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 +144,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 +153,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/BuildBetaDetailWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift new file mode 100644 index 00000000..35cbeffa --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaDetailWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/BuildBetaNotification.swift b/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift index 27c7662e..213b2742 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBetaNotification.swift @@ -8,29 +8,25 @@ 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/BuildBundle.swift b/Sources/OpenAPI/Generated/Entities/BuildBundle.swift index ad90f18d..dd3a8770 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBundle.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBundle.swift @@ -10,7 +10,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 +420,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 +433,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 +441,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..9f64afca 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildBundleFileSize.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildBundleFileSize.swift @@ -9,7 +9,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 +44,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 +55,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 +62,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/BuildIcon.swift b/Sources/OpenAPI/Generated/Entities/BuildIcon.swift index e46a2082..9fe5c313 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildIcon.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildIcon.swift @@ -9,7 +9,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 +40,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 +51,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 +58,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/BuildIconsWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildIconsWithoutIncludesResponse.swift new file mode 100644 index 00000000..074b909f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildIconsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/BuildResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildResponse.swift index 9861fdc5..026b1bb3 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildResponse.swift @@ -12,7 +12,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 +26,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) { @@ -56,7 +56,7 @@ public struct BuildResponse: Codable { 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/BuildWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BuildWithoutIncludesResponse.swift new file mode 100644 index 00000000..bdd6b386 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4939a672 100644 --- a/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/BuildsResponse.swift @@ -12,7 +12,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 +26,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) { @@ -56,7 +56,7 @@ public struct BuildsResponse: Codable { 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..a09cc070 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BuildsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4e821882 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleID.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleID.swift @@ -10,7 +10,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 +290,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 +304,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 +313,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/BundleIDCapabilitiesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesWithoutIncludesResponse.swift new file mode 100644 index 00000000..102f3ce0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapabilitiesWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..6981c362 100644 --- a/Sources/OpenAPI/Generated/Entities/BundleIDCapability.swift +++ b/Sources/OpenAPI/Generated/Entities/BundleIDCapability.swift @@ -9,7 +9,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 +37,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 +49,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 +57,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/BundleIDWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/BundleIDWithoutIncludesResponse.swift new file mode 100644 index 00000000..d0169492 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/BundleIDWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/Certificate.swift b/Sources/OpenAPI/Generated/Entities/Certificate.swift index 03846560..fdc90c52 100644 --- a/Sources/OpenAPI/Generated/Entities/Certificate.swift +++ b/Sources/OpenAPI/Generated/Entities/Certificate.swift @@ -9,7 +9,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 +57,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 +69,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 +77,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/CertificatesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/CertificatesWithoutIncludesResponse.swift new file mode 100644 index 00000000..d07ae383 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/CertificatesWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/CiArtifact.swift b/Sources/OpenAPI/Generated/Entities/CiArtifact.swift index 39608030..fc954e92 100644 --- a/Sources/OpenAPI/Generated/Entities/CiArtifact.swift +++ b/Sources/OpenAPI/Generated/Entities/CiArtifact.swift @@ -9,7 +9,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 +54,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 +66,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 +74,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/CiBuildAction.swift b/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift index de6d4924..4229257d 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildAction.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/CiBuildRun.swift b/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift index 60178d60..fc55fac2 100644 --- a/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift +++ b/Sources/OpenAPI/Generated/Entities/CiBuildRun.swift @@ -10,7 +10,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 +622,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 +636,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 +645,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/CiIssue.swift b/Sources/OpenAPI/Generated/Entities/CiIssue.swift index af2e93ea..946a034f 100644 --- a/Sources/OpenAPI/Generated/Entities/CiIssue.swift +++ b/Sources/OpenAPI/Generated/Entities/CiIssue.swift @@ -9,7 +9,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 +52,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 +64,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 +72,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/CiMacOsVersion.swift b/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift index 3dcaf50f..ef74b45b 100644 --- a/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/CiMacOsVersion.swift @@ -10,7 +10,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 +130,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 +144,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 +153,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/CiProduct.swift b/Sources/OpenAPI/Generated/Entities/CiProduct.swift index ecb0fe43..dd78a277 100644 --- a/Sources/OpenAPI/Generated/Entities/CiProduct.swift +++ b/Sources/OpenAPI/Generated/Entities/CiProduct.swift @@ -10,7 +10,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 +287,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 +301,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 +310,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/CiTestResult.swift b/Sources/OpenAPI/Generated/Entities/CiTestResult.swift index 7d6493aa..d1119332 100644 --- a/Sources/OpenAPI/Generated/Entities/CiTestResult.swift +++ b/Sources/OpenAPI/Generated/Entities/CiTestResult.swift @@ -9,7 +9,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 +87,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 +99,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 +107,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/CiWorkflow.swift b/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift index 7ae070de..6f8bb158 100644 --- a/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift +++ b/Sources/OpenAPI/Generated/Entities/CiWorkflow.swift @@ -10,7 +10,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 +388,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 +402,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 +411,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/CiXcodeVersion.swift b/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift index 38c02b87..ab08476b 100644 --- a/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/CiXcodeVersion.swift @@ -10,7 +10,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 +186,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 +200,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 +209,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/CustomerReview.swift b/Sources/OpenAPI/Generated/Entities/CustomerReview.swift index d397971c..5d9911e3 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReview.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReview.swift @@ -10,7 +10,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 +142,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 +156,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 +165,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/CustomerReviewResponseV1.swift b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift index 5b5eb8cf..d4f21466 100644 --- a/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift +++ b/Sources/OpenAPI/Generated/Entities/CustomerReviewResponseV1.swift @@ -10,7 +10,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 +135,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 +149,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 +158,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/Device.swift b/Sources/OpenAPI/Generated/Entities/Device.swift index 6180c586..19522de9 100644 --- a/Sources/OpenAPI/Generated/Entities/Device.swift +++ b/Sources/OpenAPI/Generated/Entities/Device.swift @@ -9,7 +9,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 +71,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 +83,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 +91,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/DevicesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/DevicesWithoutIncludesResponse.swift new file mode 100644 index 00000000..3a2ec74a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/DevicesWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e1b07497 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticLog.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticLog.swift @@ -8,29 +8,25 @@ 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/DiagnosticSignature.swift b/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift index b00192cf..d98657a4 100644 --- a/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift +++ b/Sources/OpenAPI/Generated/Entities/DiagnosticSignature.swift @@ -9,7 +9,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 +45,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 +56,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 +63,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/EndAppAvailabilityPreOrder.swift b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrder.swift new file mode 100644 index 00000000..f0004715 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrder.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..5845d134 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderCreateRequest.swift @@ -0,0 +1,112 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..7346da94 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndAppAvailabilityPreOrderResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..d2c27141 100644 --- a/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreement.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/EndUserLicenseAgreementWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementWithoutIncludesResponse.swift new file mode 100644 index 00000000..1f401d35 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/EndUserLicenseAgreementWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/GameCenterAchievement.swift b/Sources/OpenAPI/Generated/Entities/GameCenterAchievement.swift new file mode 100644 index 00000000..98d5ea57 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievement.swift @@ -0,0 +1,474 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..45669d6b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementCreateRequest.swift @@ -0,0 +1,198 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..05f37b13 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..c9e2b532 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementGroupAchievementLinkageResponse.swift @@ -0,0 +1,54 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..bcb59d1f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImage.swift @@ -0,0 +1,166 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..118d1b56 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageCreateRequest.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..0833d7ca --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageResponse.swift @@ -0,0 +1,33 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..f2f03428 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementImageUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..b10bdaa9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalization.swift @@ -0,0 +1,236 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..25fa2517 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationCreateRequest.swift @@ -0,0 +1,146 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..b0c87cd2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..469911b9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationUpdateRequest.swift @@ -0,0 +1,80 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..233f2c7b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementLocalizationsResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..33f8eb8a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementRelease.swift @@ -0,0 +1,224 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..f2efe6b3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseCreateRequest.swift @@ -0,0 +1,160 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..601d6769 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleaseResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..701e741b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementReleasesResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..1a1e264b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementResponse.swift @@ -0,0 +1,69 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..3339d83d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementUpdateRequest.swift @@ -0,0 +1,88 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..3ea0d2f1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAchievementsResponse.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..047cccf3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersion.swift @@ -0,0 +1,228 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..52eee0e7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..94743252 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCompatibilityVersionsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..04b7ae87 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionCreateRequest.swift @@ -0,0 +1,112 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..9a2e7ce7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..5c2e1bf5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..aca289e5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterAppVersionsResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..28caa234 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetail.swift @@ -0,0 +1,922 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..d09a212c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailCreateRequest.swift @@ -0,0 +1,134 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..49ebf80a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e14221ea --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterAchievementsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..56a2970d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..eb82b5ae --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardSetsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..7ee23a6e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..2dad2374 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailGameCenterLeaderboardsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..478aa05e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailResponse.swift @@ -0,0 +1,85 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..7ac84e20 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailUpdateRequest.swift @@ -0,0 +1,234 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..c0c76b0d --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterDetailsResponse.swift @@ -0,0 +1,88 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..80b78896 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersion.swift @@ -5,12 +5,12 @@ 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 +208,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 +221,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 +229,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..3488a830 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesRequest.swift @@ -5,6 +5,7 @@ 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..16efd355 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionCompatibleVersionsLinkagesResponse.swift @@ -5,6 +5,7 @@ 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..7fa19003 100644 --- a/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/GameCenterEnabledVersionsResponse.swift @@ -5,6 +5,7 @@ import Foundation +@available(*, deprecated, message: "Deprecated") public struct GameCenterEnabledVersionsResponse: Codable { public var data: [GameCenterEnabledVersion] public var included: [IncludedItem]? diff --git a/Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift b/Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift new file mode 100644 index 00000000..d0682112 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroup.swift @@ -0,0 +1,388 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..2cd0d4fb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupCreateRequest.swift @@ -0,0 +1,68 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..9a661334 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..5b68bd30 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterAchievementsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..3a96ed2e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..f82451ba --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardSetsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..f18c820f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..3b46a2d7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupGameCenterLeaderboardsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..b7a7bbad --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupResponse.swift @@ -0,0 +1,65 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..bb833858 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..ba621171 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterGroupsResponse.swift @@ -0,0 +1,68 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..9f48e448 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboard.swift @@ -0,0 +1,582 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..872e3e2c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardCreateRequest.swift @@ -0,0 +1,276 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..7d5e75e6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardFormatter.swift @@ -0,0 +1,27 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..a873ad16 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..12d6f932 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardGroupLeaderboardLinkageResponse.swift @@ -0,0 +1,54 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e9230e80 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImage.swift @@ -0,0 +1,166 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..a5d095b3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageCreateRequest.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e9440666 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageResponse.swift @@ -0,0 +1,33 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..aabdb051 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardImageUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..d24d850e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalization.swift @@ -0,0 +1,240 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..c6cd448c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationCreateRequest.swift @@ -0,0 +1,150 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..abecc410 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..cb1bc177 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationUpdateRequest.swift @@ -0,0 +1,84 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..174741f2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardLocalizationsResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..64322396 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardRelease.swift @@ -0,0 +1,224 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..89e84ba7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseCreateRequest.swift @@ -0,0 +1,160 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..ea48c7a5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleaseResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..73c9f593 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardReleasesResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..6b33a7d1 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardResponse.swift @@ -0,0 +1,73 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..450d1dcb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSet.swift @@ -0,0 +1,536 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..9988c773 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetCreateRequest.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..3ce92c17 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..2b50c25b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesResponse.swift @@ -0,0 +1,58 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..16859960 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest.swift @@ -0,0 +1,50 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..2afac96f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetGroupLeaderboardSetLinkageResponse.swift @@ -0,0 +1,54 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..8b485b4f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImage.swift @@ -0,0 +1,166 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..ed083c0f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageCreateRequest.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..90414a80 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageResponse.swift @@ -0,0 +1,33 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..abd74377 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetImageUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..acedb3e4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalization.swift @@ -0,0 +1,228 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..3c83369c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationCreateRequest.swift @@ -0,0 +1,138 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..a3842acb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..81ad2f0f --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..30f9fe1c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetLocalizationsResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..cb570656 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalization.swift @@ -0,0 +1,228 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..106f9679 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationCreateRequest.swift @@ -0,0 +1,186 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..855c2f0a --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..ce893c7c --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..0b35b4f0 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetMemberLocalizationsResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..191b5e50 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetRelease.swift @@ -0,0 +1,224 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4b20aefb --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseCreateRequest.swift @@ -0,0 +1,160 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..01770bd7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleaseResponse.swift @@ -0,0 +1,57 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..50062aef --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetReleasesResponse.swift @@ -0,0 +1,60 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..a04d3278 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetResponse.swift @@ -0,0 +1,73 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..f28abac5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetUpdateRequest.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4ca6742b --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardSetsResponse.swift @@ -0,0 +1,76 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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..42b37d41 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardUpdateRequest.swift @@ -0,0 +1,118 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..1107be74 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/GameCenterLeaderboardsResponse.swift @@ -0,0 +1,76 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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: "Failed to intialize `oneOf`") + } + } + + 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/InAppPurchase.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift index 736fda78..c596605e 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchase.swift @@ -5,12 +5,13 @@ 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 +169,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 +183,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 +192,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..b829f595 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAppStoreReviewScreenshot.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/InAppPurchaseAvailability.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift index 62751dc9..92204264 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseAvailability.swift @@ -10,7 +10,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 +126,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 +140,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 +149,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/InAppPurchaseContent.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift index 5f6f98a8..f4e6f3ab 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseContent.swift @@ -10,7 +10,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 +134,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 +148,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 +157,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/InAppPurchaseLocalization.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift index 6fe3adff..f3092e8e 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseLocalization.swift @@ -10,7 +10,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 +141,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 +155,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 +164,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/InAppPurchasePrice.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift index 6ab056ab..6b05f345 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePrice.swift @@ -10,7 +10,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 +203,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 +216,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 +224,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/InAppPurchasePricePoint.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift index fe60a4a1..8fe321dc 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePricePoint.swift @@ -10,7 +10,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 +130,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 +143,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 +151,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/InAppPurchasePriceSchedule.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift index 5f9e3242..6f2b979d 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasePriceSchedule.swift @@ -9,7 +9,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 +333,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 +345,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 +353,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/InAppPurchaseResponse.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift index 99114a5a..752f23f1 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseResponse.swift @@ -5,8 +5,11 @@ 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/InAppPurchaseSubmission.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift index 9603c569..ff6d64ce 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseSubmission.swift @@ -9,7 +9,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 +102,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 +113,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 +120,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/InAppPurchaseV2.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift index f7230335..05ca4bd5 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2.swift @@ -10,7 +10,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 +24,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 +603,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 +617,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 +626,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..3196fa39 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2CreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2CreateRequest.swift @@ -23,6 +23,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/InAppPurchaseV2UpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift index a0ca36fe..b06a8898 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchaseV2UpdateRequest.swift @@ -21,6 +21,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..99ba8319 100644 --- a/Sources/OpenAPI/Generated/Entities/InAppPurchasesResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/InAppPurchasesResponse.swift @@ -5,6 +5,7 @@ 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/PerfPowerMetric.swift b/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift index 2473e956..cc5cc491 100644 --- a/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift +++ b/Sources/OpenAPI/Generated/Entities/PerfPowerMetric.swift @@ -9,7 +9,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 +54,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 +65,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 +72,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/PreReleaseVersionsResponse.swift b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift index 12b200b7..20f01495 100644 --- a/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsResponse.swift @@ -6,7 +6,7 @@ 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? @@ -35,7 +35,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 +44,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..546d2ff9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/PreReleaseVersionsWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..c47d0a79 100644 --- a/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersion.swift @@ -5,12 +5,12 @@ 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 +204,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 +218,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 +227,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..5a44ef35 100644 --- a/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionResponse.swift @@ -5,9 +5,9 @@ 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 @@ -35,7 +35,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 +43,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..85aa8db5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/PrereleaseVersionWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/Profile.swift b/Sources/OpenAPI/Generated/Entities/Profile.swift index 598036d1..c9fe2aef 100644 --- a/Sources/OpenAPI/Generated/Entities/Profile.swift +++ b/Sources/OpenAPI/Generated/Entities/Profile.swift @@ -10,7 +10,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 +328,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 +342,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 +351,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/ProfilesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/ProfilesWithoutIncludesResponse.swift new file mode 100644 index 00000000..44eb18a5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/ProfilesWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..284fc659 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchase.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchase.swift @@ -10,7 +10,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 +289,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 +303,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 +312,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/PromotedPurchaseImage.swift b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift index b7213352..55b75696 100644 --- a/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift +++ b/Sources/OpenAPI/Generated/Entities/PromotedPurchaseImage.swift @@ -10,7 +10,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 +160,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 +174,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 +183,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/ResourceLinks.swift b/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift index 66698678..55fc43c2 100644 --- a/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift +++ b/Sources/OpenAPI/Generated/Entities/ResourceLinks.swift @@ -6,19 +6,19 @@ 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..2f8f018c 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmission.swift @@ -10,7 +10,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 +440,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 +454,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 +463,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/ReviewSubmissionItem.swift b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift index 54327432..54d335b7 100644 --- a/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift +++ b/Sources/OpenAPI/Generated/Entities/ReviewSubmissionItem.swift @@ -10,7 +10,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 +426,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 +440,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 +449,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/RoutingAppCoverage.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift index b15f0964..3ed427df 100644 --- a/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverage.swift @@ -10,7 +10,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 +138,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 +152,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 +161,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/RoutingAppCoverageWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageWithoutIncludesResponse.swift new file mode 100644 index 00000000..edbdf081 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/RoutingAppCoverageWithoutIncludesResponse.swift @@ -0,0 +1,29 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..262a9776 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTesterV2.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTesterV2.swift @@ -9,7 +9,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 +65,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 +77,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 +85,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/SandboxTestersClearPurchaseHistoryRequestV2.swift b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift index d7065e38..156f72fe 100644 --- a/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift +++ b/Sources/OpenAPI/Generated/Entities/SandboxTestersClearPurchaseHistoryRequestV2.swift @@ -8,29 +8,25 @@ 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/ScmGitReference.swift b/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift index 9c885df5..ccb0d953 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmGitReference.swift @@ -10,7 +10,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 +134,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 +148,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 +157,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/ScmProvider.swift b/Sources/OpenAPI/Generated/Entities/ScmProvider.swift index 62052e54..0f48467d 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmProvider.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmProvider.swift @@ -9,7 +9,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 +37,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 +49,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 +57,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/ScmPullRequest.swift b/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift index 73d4c9d9..98c18109 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmPullRequest.swift @@ -10,7 +10,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 +162,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 +176,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 +185,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/ScmRepository.swift b/Sources/OpenAPI/Generated/Entities/ScmRepository.swift index ba63cf3d..6529c1d5 100644 --- a/Sources/OpenAPI/Generated/Entities/ScmRepository.swift +++ b/Sources/OpenAPI/Generated/Entities/ScmRepository.swift @@ -10,7 +10,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 +212,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 +226,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 +235,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/Subscription.swift b/Sources/OpenAPI/Generated/Entities/Subscription.swift index d044b893..35bce989 100644 --- a/Sources/OpenAPI/Generated/Entities/Subscription.swift +++ b/Sources/OpenAPI/Generated/Entities/Subscription.swift @@ -10,7 +10,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 +24,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 +785,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 +799,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 +808,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..bb0ff11a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshot.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAppStoreReviewScreenshot.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/SubscriptionAvailability.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift index e0df7588..baf8196a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionAvailability.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/SubscriptionCreateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift index d4f31a83..42ec3493 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionCreateRequest.swift @@ -24,6 +24,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/SubscriptionGracePeriod.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift index 35958c50..d894f7fe 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGracePeriod.swift @@ -9,7 +9,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 +50,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 +62,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 +70,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/SubscriptionGroup.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift index 11c780e9..9777fef2 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroup.swift @@ -10,7 +10,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 +204,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 +218,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 +227,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/SubscriptionGroupLocalization.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift index c46cd530..d567c72d 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupLocalization.swift @@ -10,7 +10,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 +141,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 +155,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 +164,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/SubscriptionGroupSubmission.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift index 08dcf997..cae33e5d 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionGroupSubmission.swift @@ -8,29 +8,25 @@ 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/SubscriptionIntroductoryOffer.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift index 65c84d09..5b79f50a 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionIntroductoryOffer.swift @@ -10,7 +10,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 +286,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 +300,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 +309,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/SubscriptionLocalization.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift index 291ec254..6b76ab4b 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionLocalization.swift @@ -10,7 +10,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 +141,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 +155,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 +164,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/SubscriptionOfferCode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift index dcc59309..b02c0d64 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCode.swift @@ -10,7 +10,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 +384,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 +398,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 +407,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/SubscriptionOfferCodeCustomCode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift index 2e23544f..ab12fa31 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeCustomCode.swift @@ -10,7 +10,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 +138,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 +152,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 +161,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/SubscriptionOfferCodeOneTimeUseCode.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift index ac209927..c91302b7 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCode.swift @@ -10,7 +10,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 +134,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 +148,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 +157,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/SubscriptionOfferCodeOneTimeUseCodeValue.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift index d963f733..8e1d633c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodeOneTimeUseCodeValue.swift @@ -8,29 +8,25 @@ 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/SubscriptionOfferCodePrice.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift index 74a70b3f..26f4fbd0 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionOfferCodePrice.swift @@ -9,7 +9,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 +176,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 +187,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 +194,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/SubscriptionPrice.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift index 8be759f7..59dc844c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPrice.swift @@ -10,7 +10,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 +200,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 +214,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 +223,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/SubscriptionPricePoint.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift index 2021409e..d8bc08dd 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPricePoint.swift @@ -10,7 +10,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 +130,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 +144,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 +153,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/SubscriptionPromotionalOffer.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift index d5f754b3..dba06c69 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOffer.swift @@ -10,7 +10,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 +216,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 +230,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 +239,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/SubscriptionPromotionalOfferPrice.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift index 1cb067e9..023a502c 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionPromotionalOfferPrice.swift @@ -9,7 +9,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 +176,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 +187,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 +194,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/SubscriptionSubmission.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift index 2658f18b..72975bb7 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionSubmission.swift @@ -9,7 +9,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 +102,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 +113,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 +120,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/SubscriptionUpdateRequest.swift b/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift index 11d31a1d..2ac55cd7 100644 --- a/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift +++ b/Sources/OpenAPI/Generated/Entities/SubscriptionUpdateRequest.swift @@ -25,6 +25,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 { diff --git a/Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift b/Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift new file mode 100644 index 00000000..bf6820a8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoriesWithoutIncludesResponse.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..9b327a5a 100644 --- a/Sources/OpenAPI/Generated/Entities/Territory.swift +++ b/Sources/OpenAPI/Generated/Entities/Territory.swift @@ -9,7 +9,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 +32,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 +43,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 +50,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..f7d7d042 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilitiesResponse.swift @@ -0,0 +1,36 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..584da223 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailability.swift @@ -0,0 +1,202 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..865f4fd6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityInlineCreate.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..aded6291 --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityResponse.swift @@ -0,0 +1,33 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..ea0bd85e --- /dev/null +++ b/Sources/OpenAPI/Generated/Entities/TerritoryAvailabilityUpdateRequest.swift @@ -0,0 +1,80 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/User.swift b/Sources/OpenAPI/Generated/Entities/User.swift index cc5393fb..9bd1c77c 100644 --- a/Sources/OpenAPI/Generated/Entities/User.swift +++ b/Sources/OpenAPI/Generated/Entities/User.swift @@ -10,7 +10,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 +146,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 +160,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 +169,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..2c74deb4 100644 --- a/Sources/OpenAPI/Generated/Entities/UserInvitation.swift +++ b/Sources/OpenAPI/Generated/Entities/UserInvitation.swift @@ -10,7 +10,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 +150,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 +164,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 +173,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/Paths/PathsV1AppCategoriesWithIDParent.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift index 537a161f..50ae937f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDParent.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppCategories.WithID { /// Path: `/v1/appCategories/{id}/parent` public let path: String - public func get(fieldsAppCategories: [FieldsAppCategories]? = nil) -> Request { + public func get(fieldsAppCategories: [FieldsAppCategories]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAppCategories)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift index 1de1ea0b..116389b4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppCategoriesWithIDSubcategories.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppCategories.WithID { /// Path: `/v1/appCategories/{id}/subcategories` public let path: String - public func get(fieldsAppCategories: [FieldsAppCategories]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsAppCategories: [FieldsAppCategories]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAppCategories, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift index 919d95f1..6960c5c9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppClipDefaultExperiencesWithIDReleaseWithAppStoreVersion.swift @@ -38,6 +38,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -115,6 +116,7 @@ extension APIEndpoint.V1.AppClipDefaultExperiences.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -134,6 +136,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/PathsV1AppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift index 6cd0e765..6fb8673c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarations.swift @@ -78,6 +78,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -97,6 +98,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..9bb65af6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithID.swift @@ -68,6 +68,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -87,6 +88,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..9cf7712a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppEncryptionDeclarationsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { /// Path: `/v1/appEncryptionDeclarations/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.AppEncryptionDeclarations.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift index e212fbf1..563d137b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift @@ -30,6 +30,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/PathsV1AppStoreVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift index 9ab4d9cd..8b66afc0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithID.swift @@ -75,6 +75,7 @@ extension APIEndpoint.V1.AppStoreVersions { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift index 42ad1325..deaa842b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAgeRatingDeclaration.swift @@ -16,7 +16,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { public let path: String @available(*, deprecated, message: "Deprecated") - public func get(fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil) -> Request { + public func get(fieldsAgeRatingDeclarations: [FieldsAgeRatingDeclarations]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAgeRatingDeclarations)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift index 37ab6547..0590e5f7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionExperimentsV2.swift @@ -94,6 +94,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +114,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..20fda8bd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionLocalizations.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/appStoreVersionLocalizations` public let path: String - public func get(fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsAppStoreVersionLocalizations: [FieldsAppStoreVersionLocalizations]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAppStoreVersionLocalizations, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift index 80e7bd9d..4e2a68a9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDAppStoreVersionPhasedRelease.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/appStoreVersionPhasedRelease` public let path: String - public func get(fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil) -> Request { + public func get(fieldsAppStoreVersionPhasedReleases: [FieldsAppStoreVersionPhasedReleases]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAppStoreVersionPhasedReleases)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift index a33127c8..1224dbb6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDBuild.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift index 6a9201e2..d89609a0 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppStoreVersionsWithIDRoutingAppCoverage.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.AppStoreVersions.WithID { /// Path: `/v1/appStoreVersions/{id}/routingAppCoverage` public let path: String - public func get(fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil) -> Request { + public func get(fieldsRoutingAppCoverages: [FieldsRoutingAppCoverages]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsRoutingAppCoverages)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift index 5c7e4a45..02171238 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Apps.swift @@ -33,6 +33,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 +59,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 +123,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -139,6 +143,7 @@ extension APIEndpoint.V1 { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -164,6 +169,7 @@ extension APIEndpoint.V1 { public enum Include: String, Codable, CaseIterable { case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appStoreVersionExperimentsV2 @@ -176,6 +182,7 @@ extension APIEndpoint.V1 { case builds case ciProduct case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -200,6 +207,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 +382,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 +503,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 +533,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 +547,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 +573,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 +612,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 +638,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..29de6cc6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithID.swift @@ -23,6 +23,7 @@ extension APIEndpoint.V1.Apps { 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 +49,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 +76,7 @@ extension APIEndpoint.V1.Apps { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -92,6 +96,7 @@ extension APIEndpoint.V1.Apps { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -117,6 +122,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 +135,7 @@ extension APIEndpoint.V1.Apps { case builds case ciProduct case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -153,6 +160,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 +335,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 +456,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 +486,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 +516,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 +545,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 +571,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]") diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift index 44ca03f1..f6a97c95 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppAvailability.swift @@ -36,6 +36,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -55,6 +56,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..bd7686d6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppClips.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +59,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..b7a54ae6 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppCustomProductPages.swift @@ -49,6 +49,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -68,6 +69,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..6e342105 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppEncryptionDeclarations.swift @@ -0,0 +1,178 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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/PathsV1AppsWithIDAppInfos.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift index 3e8dbf71..eacdfba8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppInfos.swift @@ -86,6 +86,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -105,6 +106,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..74892ac3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPricePoints.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +59,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..4a80679e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppPriceSchedule.swift @@ -47,6 +47,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -66,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/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift index ba97aac3..f6d4452b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersionExperimentsV2.swift @@ -94,6 +94,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +114,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..5e417782 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDAppStoreVersions.swift @@ -71,6 +71,7 @@ extension APIEndpoint.V1.Apps.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -148,6 +149,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -167,6 +169,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/PathsV1AppsWithIDBetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift index 2a094e14..30b5adf3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppLocalizations.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaAppLocalizations` public let path: String - public func get(fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBetaAppLocalizations: [FieldsBetaAppLocalizations]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaAppLocalizations, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift index e2157554..d521a3cd 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaAppReviewDetail.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaAppReviewDetail` public let path: String - public func get(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil) -> Request { + public func get(fieldsBetaAppReviewDetails: [FieldsBetaAppReviewDetails]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaAppReviewDetails)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift index 6774b3be..212399b4 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaGroups.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaGroups` public let path: String - public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaGroups, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift index f54f5eca..f3a06641 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBetaLicenseAgreement.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/betaLicenseAgreement` public let path: String - public func get(fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil) -> Request { + public func get(fieldsBetaLicenseAgreements: [FieldsBetaLicenseAgreements]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaLicenseAgreements)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift index bb1ca229..7f078086 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDBuilds.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift index 27ba13f6..874b1d08 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDCiProduct.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -62,6 +63,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/PathsV1AppsWithIDEndUserLicenseAgreement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift index 40a2d904..77591030 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDEndUserLicenseAgreement.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/endUserLicenseAgreement` public let path: String - public func get(fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil) -> Request { + public func get(fieldsEndUserLicenseAgreements: [FieldsEndUserLicenseAgreements]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsEndUserLicenseAgreements)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift new file mode 100644 index 00000000..ef527706 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterDetail.swift @@ -0,0 +1,241 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..2fe1af70 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDGameCenterEnabledVersions.swift @@ -15,6 +15,7 @@ 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) } @@ -53,6 +54,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -72,6 +74,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..ebb9caff 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDInAppPurchases.swift @@ -59,6 +59,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -78,6 +79,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/PathsV1AppsWithIDPreOrder.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift index 1d2d7f86..ed4e3de7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreOrder.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/preOrder` public let path: String - public func get(fieldsAppPreOrders: [FieldsAppPreOrders]? = nil) -> Request { + public func get(fieldsAppPreOrders: [FieldsAppPreOrders]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAppPreOrders)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift index 9e2c4d7b..934ec01b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPreReleaseVersions.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Apps.WithID { /// Path: `/v1/apps/{id}/preReleaseVersions` public let path: String - public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsPreReleaseVersions, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift index 7ed3f317..469f0fa1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPricePoints.swift @@ -46,6 +46,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -65,6 +66,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..68a8c7b2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDPrices.swift @@ -35,6 +35,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -54,6 +55,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/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift new file mode 100644 index 00000000..c04afe9b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsAppEncryptionDeclarations.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift new file mode 100644 index 00000000..a2519918 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDRelationshipsGameCenterDetail.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/PathsV1AppsWithIDReviewSubmissions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift index 165d64a2..d67af72b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1AppsWithIDReviewSubmissions.swift @@ -94,6 +94,7 @@ extension APIEndpoint.V1.Apps.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +114,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/PathsV1BetaAppLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift index 6ca91239..2f9588f5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizations.swift @@ -45,6 +45,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -64,6 +65,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/PathsV1BetaAppLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift index 3fff0ae5..9c47e225 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithID.swift @@ -42,6 +42,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -61,6 +62,7 @@ extension APIEndpoint.V1.BetaAppLocalizations { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift index bce0a2d4..8812db2e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppLocalizationsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { /// Path: `/v1/betaAppLocalizations/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.BetaAppLocalizations.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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/PathsV1BetaAppReviewDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift index f74f3300..14ff2389 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetails.swift @@ -46,6 +46,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -65,6 +66,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..ad7c54bc 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithID.swift @@ -44,6 +44,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -63,6 +64,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift index 83dc90d6..68c6e07e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewDetailsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { /// Path: `/v1/betaAppReviewDetails/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.BetaAppReviewDetails.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift index 574144f6..c33f9e04 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaAppReviewSubmissionsWithIDBuild.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaAppReviewSubmissions.WithID { /// Path: `/v1/betaAppReviewSubmissions/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift index de6b22a3..cff2d967 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaBuildLocalizationsWithIDBuild.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaBuildLocalizations.WithID { /// Path: `/v1/betaBuildLocalizations/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift index 4f8b2f10..5ce23f78 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroups.swift @@ -86,6 +86,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -105,6 +106,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/PathsV1BetaGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift index 2e70c086..f0ded7e1 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithID.swift @@ -65,6 +65,7 @@ extension APIEndpoint.V1.BetaGroups { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -84,6 +85,7 @@ extension APIEndpoint.V1.BetaGroups { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift index b257de76..cadf91f5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { /// Path: `/v1/betaGroups/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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..b4d01755 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBetaTesters.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { /// Path: `/v1/betaGroups/{id}/betaTesters` public let path: String - public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaTesters, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift index 5f39b125..737af7ee 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaGroupsWithIDBuilds.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaGroups.WithID { /// Path: `/v1/betaGroups/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift index 750d3c51..9acc91f3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreements.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +59,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..a5f829e5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithID.swift @@ -37,6 +37,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -56,6 +57,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift index 842b97c8..53ebca9a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaLicenseAgreementsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { /// Path: `/v1/betaLicenseAgreements/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.BetaLicenseAgreements.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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/PathsV1BetaTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift index 8097c8b7..223c8ba5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTesters.swift @@ -75,6 +75,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -94,6 +95,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/PathsV1BetaTestersWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift index aa93f41e..762c0cd9 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithID.swift @@ -49,6 +49,7 @@ extension APIEndpoint.V1.BetaTesters { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -68,6 +69,7 @@ extension APIEndpoint.V1.BetaTesters { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift index 549f678d..d9c91481 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDApps.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { /// Path: `/v1/betaTesters/{id}/apps` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps, limit)) } @@ -30,6 +30,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -49,6 +50,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..ffca6b1f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBetaGroups.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBetaGroups.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { /// Path: `/v1/betaTesters/{id}/betaGroups` public let path: String - public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBetaGroups: [FieldsBetaGroups]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaGroups, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift index 5aa431a2..7e84b798 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BetaTestersWithIDBuilds.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BetaTesters.WithID { /// Path: `/v1/betaTesters/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift index 9fc4907d..bdde42e2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildBetaDetailsWithIDBuild.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BuildBetaDetails.WithID { /// Path: `/v1/buildBetaDetails/{id}/build` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift index 15a9c7f7..0649e765 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Builds.swift @@ -225,6 +225,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -244,6 +245,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..f7bbc313 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithID.swift @@ -176,6 +176,7 @@ extension APIEndpoint.V1.Builds { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -195,6 +196,7 @@ extension APIEndpoint.V1.Builds { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift index e35aabe7..91ad7936 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.Builds.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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..e33bcaac 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppEncryptionDeclaration.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppEncryptionDeclaration.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/appEncryptionDeclaration` public let path: String - public func get(fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil) -> Request { + public func get(fieldsAppEncryptionDeclarations: [FieldsAppEncryptionDeclarations]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsAppEncryptionDeclarations)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift index b95067f5..1483927e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDAppStoreVersion.swift @@ -38,6 +38,7 @@ extension APIEndpoint.V1.Builds.WithID { public enum FieldsAppStoreVersionExperiments: String, Codable, CaseIterable { case app + case appStoreVersion case appStoreVersionExperimentTreatments case controlVersions case endDate @@ -115,6 +116,7 @@ extension APIEndpoint.V1.Builds.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -134,6 +136,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..edc8b9a8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaAppReviewSubmission.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaAppReviewSubmission.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/betaAppReviewSubmission` public let path: String - public func get(fieldsBetaAppReviewSubmissions: [FieldsBetaAppReviewSubmissions]? = nil) -> Request { + public func get(fieldsBetaAppReviewSubmissions: [FieldsBetaAppReviewSubmissions]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaAppReviewSubmissions)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift index 726d2386..7d011c1b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBetaBuildLocalizations.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/betaBuildLocalizations` public let path: String - public func get(fieldsBetaBuildLocalizations: [FieldsBetaBuildLocalizations]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBetaBuildLocalizations: [FieldsBetaBuildLocalizations]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaBuildLocalizations, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift index 22ae14b0..1c8c28ec 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDBuildBetaDetail.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/buildBetaDetail` public let path: String - public func get(fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? = nil) -> Request { + public func get(fieldsBuildBetaDetails: [FieldsBuildBetaDetails]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuildBetaDetails)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift index e5701ef8..0ec3f04f 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIcons.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/icons` public let path: String - public func get(fieldsBuildIcons: [FieldsBuildIcons]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBuildIcons: [FieldsBuildIcons]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuildIcons, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift index 34dec637..6f44803c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDIndividualTesters.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/individualTesters` public let path: String - public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBetaTesters: [FieldsBetaTesters]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBetaTesters, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift index 721b9773..5c48d462 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BuildsWithIDPreReleaseVersion.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Builds.WithID { /// Path: `/v1/builds/{id}/preReleaseVersion` public let path: String - public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil) -> Request { + public func get(fieldsPreReleaseVersions: [FieldsPreReleaseVersions]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsPreReleaseVersions)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift index 05bab460..ba192ae3 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDs.swift @@ -93,6 +93,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -112,6 +113,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/PathsV1BundleIDsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift index d4586e9e..679ae689 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithID.swift @@ -68,6 +68,7 @@ extension APIEndpoint.V1.BundleIDs { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -87,6 +88,7 @@ extension APIEndpoint.V1.BundleIDs { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift index 7b694aec..779dd07c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { /// Path: `/v1/bundleIds/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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..7420ef78 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDBundleIDCapabilities.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDBundleIDCapabilities.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { /// Path: `/v1/bundleIds/{id}/bundleIdCapabilities` public let path: String - public func get(fieldsBundleIDCapabilities: [FieldsBundleIDCapabilities]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBundleIDCapabilities: [FieldsBundleIDCapabilities]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBundleIDCapabilities, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift index 050e8794..1e7e178d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1BundleIDsWithIDProfiles.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.BundleIDs.WithID { /// Path: `/v1/bundleIds/{id}/profiles` public let path: String - public func get(fieldsProfiles: [FieldsProfiles]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsProfiles: [FieldsProfiles]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsProfiles, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift index f20495d8..10435f1e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiBuildRunsWithIDBuilds.swift @@ -201,6 +201,7 @@ extension APIEndpoint.V1.CiBuildRuns.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -220,6 +221,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/PathsV1CiProducts.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift index 2c651b33..559c7e9e 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProducts.swift @@ -102,6 +102,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -121,6 +122,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..ca3fd9d8 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithID.swift @@ -94,6 +94,7 @@ extension APIEndpoint.V1.CiProducts { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -113,6 +114,7 @@ extension APIEndpoint.V1.CiProducts { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift index 64dcb704..abbfb858 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1CiProductsWithIDApp.swift @@ -21,6 +21,7 @@ extension APIEndpoint.V1.CiProducts.WithID { 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 +43,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 +79,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 +151,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -151,6 +171,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -262,10 +283,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 +380,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 +417,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 +430,7 @@ extension APIEndpoint.V1.CiProducts.WithID { case builds case ciProduct case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 @@ -387,8 +443,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 +467,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 +495,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 +517,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/PathsV1EndAppAvailabilityPreOrders.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndAppAvailabilityPreOrders.swift new file mode 100644 index 00000000..bc8299b4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndAppAvailabilityPreOrders.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift index 56b2ea82..3eed0711 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1EndUserLicenseAgreementsWithIDTerritories.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.EndUserLicenseAgreements.WithID { /// Path: `/v1/endUserLicenseAgreements/{id}/territories` public let path: String - public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsTerritories: [FieldsTerritories]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsTerritories, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift new file mode 100644 index 00000000..37f92f2c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImages.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift new file mode 100644 index 00000000..f854fca3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementImagesWithID.swift @@ -0,0 +1,51 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(fieldsGameCenterAchievementImages, include)) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift new file mode 100644 index 00000000..8487c408 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizations.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift new file mode 100644 index 00000000..8967bcbb --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithID.swift @@ -0,0 +1,91 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift new file mode 100644 index 00000000..56dd3cda --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievement.swift @@ -0,0 +1,118 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..3e90e65e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDGameCenterAchievementImage.swift @@ -0,0 +1,65 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..40c1dcbc --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..6462c2db --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievement.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..19ccfdef --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementLocalizationsWithIDRelationshipsGameCenterAchievementImage.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..502bef08 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleases.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift new file mode 100644 index 00000000..d8469f33 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementReleasesWithID.swift @@ -0,0 +1,44 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(fieldsGameCenterAchievementReleases, include)) + } + + 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 { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift new file mode 100644 index 00000000..983f8f03 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievements.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift new file mode 100644 index 00000000..2d34699f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithID.swift @@ -0,0 +1,96 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift new file mode 100644 index 00000000..6c19bedb --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDGroupAchievement.swift @@ -0,0 +1,118 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..7f1342ab --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDLocalizations.swift @@ -0,0 +1,86 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..3e3baa44 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..6211277c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsGroupAchievement.swift @@ -0,0 +1,26 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path) + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterAchievementGroupAchievementLinkageRequest) -> Request { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift new file mode 100644 index 00000000..b45540e8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsLocalizations.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..6b82fc36 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDRelationshipsReleases.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..948c8d3b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAchievementsWithIDReleases.swift @@ -0,0 +1,95 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..03b7c231 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersions.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift new file mode 100644 index 00000000..ec52e66b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithID.swift @@ -0,0 +1,83 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift new file mode 100644 index 00000000..32b51543 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDAppStoreVersion.swift @@ -0,0 +1,282 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..8920b08e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDCompatibilityVersions.swift @@ -0,0 +1,85 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..1b62ec24 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..5372f350 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsAppStoreVersion.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..1dd4c57c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterAppVersionsWithIDRelationshipsCompatibilityVersions.swift @@ -0,0 +1,36 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .post(path, body: body) + } + + public func delete(_ body: AppStoreConnect_Swift_SDK.GameCenterAppVersionCompatibilityVersionsLinkagesRequest) -> Request { + .delete(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift new file mode 100644 index 00000000..205c833b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetails.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift new file mode 100644 index 00000000..5c7fa50e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithID.swift @@ -0,0 +1,195 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift new file mode 100644 index 00000000..f38bb00c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDAchievementReleases.swift @@ -0,0 +1,95 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..475d7d32 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAchievements.swift @@ -0,0 +1,130 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..960dee75 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterAppVersions.swift @@ -0,0 +1,85 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..ef68ee1e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterGroup.swift @@ -0,0 +1,139 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..b2298aab --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboardSets.swift @@ -0,0 +1,149 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..6f836a53 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDGameCenterLeaderboards.swift @@ -0,0 +1,155 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..5926e779 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardReleases.swift @@ -0,0 +1,101 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..2f064ad7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDLeaderboardSetReleases.swift @@ -0,0 +1,92 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..16e5b563 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..5a97c7ea --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsAchievementReleases.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..a5ab9b52 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAchievements.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift new file mode 100644 index 00000000..1da3a3a8 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterAppVersions.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4a44f582 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterGroup.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e462645f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboardSets.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift new file mode 100644 index 00000000..3075b283 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsGameCenterLeaderboards.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift new file mode 100644 index 00000000..2ff50ac6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardReleases.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..7baf77a2 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterDetailsWithIDRelationshipsLeaderboardSetReleases.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift index 4d8ea155..ce0b2732 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDCompatibleVersions.swift @@ -15,6 +15,7 @@ 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) } @@ -54,6 +55,7 @@ extension APIEndpoint.V1.GameCenterEnabledVersions.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -73,6 +75,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/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift index 8ebc9168..1f9f09c5 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterEnabledVersionsWithIDRelationshipsCompatibleVersions.swift @@ -15,6 +15,7 @@ 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)) } @@ -25,14 +26,17 @@ 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) } + @available(*, deprecated, message: "Deprecated") public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { .patch(path, body: body) } + @available(*, deprecated, message: "Deprecated") public func delete(_ body: AppStoreConnect_Swift_SDK.GameCenterEnabledVersionCompatibleVersionsLinkagesRequest) -> Request { .delete(path, body: body) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift new file mode 100644 index 00000000..37b8f389 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroups.swift @@ -0,0 +1,149 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift new file mode 100644 index 00000000..2b3eaead --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithID.swift @@ -0,0 +1,147 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift new file mode 100644 index 00000000..15753b3a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterAchievements.swift @@ -0,0 +1,130 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..357764df --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterDetails.swift @@ -0,0 +1,247 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..ea9eb687 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboardSets.swift @@ -0,0 +1,149 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..e473071b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDGameCenterLeaderboards.swift @@ -0,0 +1,155 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..4e3b3ff4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e14b51c5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterAchievements.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift new file mode 100644 index 00000000..41dd73e6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterDetails.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..610bb7e4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboardSets.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift new file mode 100644 index 00000000..ee003d0b --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterGroupsWithIDRelationshipsGameCenterLeaderboards.swift @@ -0,0 +1,32 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift new file mode 100644 index 00000000..144c8d70 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImages.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift new file mode 100644 index 00000000..6af7cb14 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardImagesWithID.swift @@ -0,0 +1,51 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(fieldsGameCenterLeaderboardImages, include)) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift new file mode 100644 index 00000000..1f3cf4b3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizations.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift new file mode 100644 index 00000000..09b8fe53 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithID.swift @@ -0,0 +1,75 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift new file mode 100644 index 00000000..d1d6067c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDGameCenterLeaderboardImage.swift @@ -0,0 +1,66 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..72016ef3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..c8514328 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardLocalizationsWithIDRelationshipsGameCenterLeaderboardImage.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..8e368954 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleases.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift new file mode 100644 index 00000000..a77faeac --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardReleasesWithID.swift @@ -0,0 +1,44 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(fieldsGameCenterLeaderboardReleases, include)) + } + + 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 { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift new file mode 100644 index 00000000..64dbe639 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImages.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift new file mode 100644 index 00000000..877918ad --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetImagesWithID.swift @@ -0,0 +1,51 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(fieldsGameCenterLeaderboardSetImages, include)) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift new file mode 100644 index 00000000..6f3965b7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizations.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift new file mode 100644 index 00000000..ede87c98 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithID.swift @@ -0,0 +1,72 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift new file mode 100644 index 00000000..6522744a --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDGameCenterLeaderboardSetImage.swift @@ -0,0 +1,63 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..63bd4ce7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..a7ee882f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetLocalizationsWithIDRelationshipsGameCenterLeaderboardSetImage.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..54332f1e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizations.swift @@ -0,0 +1,101 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters.asQuery) + } + + 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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift new file mode 100644 index 00000000..49d46dd6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithID.swift @@ -0,0 +1,26 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift new file mode 100644 index 00000000..fc42dc3f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboard.swift @@ -0,0 +1,143 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..b324fbd9 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDGameCenterLeaderboardSet.swift @@ -0,0 +1,140 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..5cd0dcca --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..6eb93817 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboard.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e707a685 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetMemberLocalizationsWithIDRelationshipsGameCenterLeaderboardSet.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..7759c05c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleases.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift new file mode 100644 index 00000000..1567fa7d --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetReleasesWithID.swift @@ -0,0 +1,44 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(fieldsGameCenterLeaderboardSetReleases, include)) + } + + 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 { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift new file mode 100644 index 00000000..01f78946 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSets.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift new file mode 100644 index 00000000..1e99e6b3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithID.swift @@ -0,0 +1,118 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift new file mode 100644 index 00000000..18edcb78 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGameCenterLeaderboards.swift @@ -0,0 +1,155 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..c2d9fa4f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDGroupLeaderboardSet.swift @@ -0,0 +1,140 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..fa6769a4 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDLocalizations.swift @@ -0,0 +1,81 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..bd94f591 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..e015ef34 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGameCenterLeaderboards.swift @@ -0,0 +1,40 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: makeGetQuery(limit)) + } + + 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 { + .post(path, body: body) + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest) -> Request { + .patch(path, body: body) + } + + public func delete(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGameCenterLeaderboardsLinkagesRequest) -> Request { + .delete(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift new file mode 100644 index 00000000..147a75f5 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsGroupLeaderboardSet.swift @@ -0,0 +1,26 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path) + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardSetGroupLeaderboardSetLinkageRequest) -> Request { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift new file mode 100644 index 00000000..31f9a47f --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsLocalizations.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..4f03ac88 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDRelationshipsReleases.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..54e3d34c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardSetsWithIDReleases.swift @@ -0,0 +1,92 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..87235952 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboards.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift new file mode 100644 index 00000000..c15c0b22 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithID.swift @@ -0,0 +1,107 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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 { + .patch(path, body: body) + } + + public var delete: Request { + .delete(path) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift new file mode 100644 index 00000000..c3ff3039 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDGroupLeaderboard.swift @@ -0,0 +1,143 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..ab594bcb --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDLocalizations.swift @@ -0,0 +1,93 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..cff112c6 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..29dd755c --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsGroupLeaderboard.swift @@ -0,0 +1,26 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path) + } + + public func patch(_ body: AppStoreConnect_Swift_SDK.GameCenterLeaderboardGroupLeaderboardLinkageRequest) -> Request { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift new file mode 100644 index 00000000..17c170c3 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsLocalizations.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..b728fe3e --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDRelationshipsReleases.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..b115274d --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1GameCenterLeaderboardsWithIDReleases.swift @@ -0,0 +1,101 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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/PathsV1InAppPurchasesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift index 6380e40f..aee88731 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1InAppPurchasesWithID.swift @@ -15,6 +15,7 @@ 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) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift index 5059c113..5f92301d 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersions.swift @@ -69,6 +69,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -88,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/PathsV1PreReleaseVersionsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift index efde5525..20af2949 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithID.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.PreReleaseVersions { /// Path: `/v1/preReleaseVersions/{id}` public let path: String - public func get(parameters: GetParameters? = nil) -> Request { + public func get(parameters: GetParameters? = nil) -> Request { .get(path, query: parameters?.asQuery) } @@ -42,6 +42,7 @@ extension APIEndpoint.V1.PreReleaseVersions { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -61,6 +62,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..925fc08b 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDApp.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { /// Path: `/v1/preReleaseVersions/{id}/app` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps)) } @@ -29,6 +29,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -48,6 +49,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..a5f6e519 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDBuilds.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1PreReleaseVersionsWithIDBuilds.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.PreReleaseVersions.WithID { /// Path: `/v1/preReleaseVersions/{id}/builds` public let path: String - public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsBuilds: [FieldsBuilds]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBuilds, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift index 3fbf549d..3f1e8574 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDBundleID.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Profiles.WithID { /// Path: `/v1/profiles/{id}/bundleId` public let path: String - public func get(fieldsBundleIDs: [FieldsBundleIDs]? = nil) -> Request { + public func get(fieldsBundleIDs: [FieldsBundleIDs]? = nil) -> Request { .get(path, query: makeGetQuery(fieldsBundleIDs)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift index 041ff72a..ae994697 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDCertificates.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Profiles.WithID { /// Path: `/v1/profiles/{id}/certificates` public let path: String - public func get(fieldsCertificates: [FieldsCertificates]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsCertificates: [FieldsCertificates]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsCertificates, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift index 28b04dd7..22ead73a 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ProfilesWithIDDevices.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Profiles.WithID { /// Path: `/v1/profiles/{id}/devices` public let path: String - public func get(fieldsDevices: [FieldsDevices]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsDevices: [FieldsDevices]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsDevices, limit)) } diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift index d469a667..ace113d2 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1ReviewSubmissionsWithIDItems.swift @@ -30,6 +30,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/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift index 586695e6..d618de61 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1SubscriptionOfferCodeOneTimeUseCodesWithID.swift @@ -15,41 +15,28 @@ 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 { + .get(path, query: makeGetQuery(fieldsSubscriptionOfferCodeOneTimeUseCodes, include)) } - 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 { diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift new file mode 100644 index 00000000..e3905045 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilities.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..51e60208 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV1TerritoryAvailabilitiesWithID.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .patch(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift index fd1f5300..61017306 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitations.swift @@ -72,6 +72,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -91,6 +92,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/PathsV1UserInvitationsWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift index bb1b268c..1305c6ed 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithID.swift @@ -44,6 +44,7 @@ extension APIEndpoint.V1.UserInvitations { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -63,6 +64,7 @@ extension APIEndpoint.V1.UserInvitations { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift index 2f2ca0e0..d088cee7 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UserInvitationsWithIDVisibleApps.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.UserInvitations.WithID { /// Path: `/v1/userInvitations/{id}/visibleApps` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps, limit)) } @@ -30,6 +30,7 @@ extension APIEndpoint.V1.UserInvitations.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -49,6 +50,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..8ac4d63c 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1Users.swift @@ -71,6 +71,7 @@ extension APIEndpoint.V1 { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -90,6 +91,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..ca8c7293 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithID.swift @@ -43,6 +43,7 @@ extension APIEndpoint.V1.Users { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -62,6 +63,7 @@ extension APIEndpoint.V1.Users { case contentRightsDeclaration case customerReviews case endUserLicenseAgreement + case gameCenterDetail case gameCenterEnabledVersions case inAppPurchases case inAppPurchasesV2 diff --git a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift index 051cec9a..3248c0ee 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV1UsersWithIDVisibleApps.swift @@ -15,7 +15,7 @@ extension APIEndpoint.V1.Users.WithID { /// Path: `/v1/users/{id}/visibleApps` public let path: String - public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { + public func get(fieldsApps: [FieldsApps]? = nil, limit: Int? = nil) -> Request { .get(path, query: makeGetQuery(fieldsApps, limit)) } @@ -30,6 +30,7 @@ extension APIEndpoint.V1.Users.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -49,6 +50,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/PathsV2AppAvailabilities.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilities.swift new file mode 100644 index 00000000..0afa70c7 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilities.swift @@ -0,0 +1,22 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .post(path, body: body) + } + } +} diff --git a/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift new file mode 100644 index 00000000..6ac07f74 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithID.swift @@ -0,0 +1,64 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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..858993da --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationships.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..932ea952 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDRelationshipsTerritoryAvailabilities.swift @@ -0,0 +1,18 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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..f6c4ee08 --- /dev/null +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppAvailabilitiesWithIDTerritoryAvailabilities.swift @@ -0,0 +1,62 @@ +// Generated by Create API +// https://github.com/CreateAPI/CreateAPI +// +// swiftlint:disable all + +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 { + .get(path, query: parameters?.asQuery) + } + + 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/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift index 68191fb3..74df6047 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV2AppStoreVersionExperimentsWithIDAppStoreVersionExperimentTreatments.swift @@ -29,6 +29,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/PathsV3AppPricePointsWithIDEqualizations.swift b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift index 72d4a92e..7d0c0292 100644 --- a/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift +++ b/Sources/OpenAPI/Generated/Paths/PathsV3AppPricePointsWithIDEqualizations.swift @@ -39,6 +39,7 @@ extension APIEndpoint.V3.AppPricePoints.WithID { case appAvailability case appClips case appCustomProductPages + case appEncryptionDeclarations case appEvents case appInfos case appPricePoints @@ -58,6 +59,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/app_store_connect_api_2.3_openapi.json b/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json index d0ce5904..9b978adb 100644 --- a/Sources/OpenAPI/app_store_connect_api_2.3_openapi.json +++ b/Sources/OpenAPI/app_store_connect_api_2.3_openapi.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": {